After release 2.0.0-rc.16 google maps does not display initially

  • I have been using google maps integrated nicely with the framework. But, when I updated to 2.0.0-rc.16 the map does not show initially. I can roll back to 2.0.0-rc.15 and the map does appear initially. I can’t figure out what is the culprit.

    The HTML code follows:

      ons-page(ons-show="walking.onShowMap(" ons-destroy="walking.onDestroyMap()")

    and the javascript:

    var vm = this; = ....; vm.lng = ....;
    vm.onShowMap = function(store) {
      var mapElement = document.getElementById("walkMap");
      var latlng = new google.maps.LatLng(, vm.lng);
      myOptions = {zoom: 13, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP}
      var map = new google.maps.Map(mapElement, myOptions);
      map.overlay = new google.maps.OverlayView();
      map.overlay.draw = function () { };
      map.geocoder = new google.maps.Geocoder(); = map;

    Any idea on what change caused this issue? Looking at the changes nothing pops out to me. I looked at the console logs and the other difference I see is in rc.15 there are a lot of tile gets (PNG) which do not appear in the rc.16. Any ideals on internal breakpoints to set within ONSEN?



Log in to reply