Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
After release 2.0.0-rc.16 google maps does not display initially
-
I have been using google maps integrated nicely with the onsen.io 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-template(id="walking_geo") ons-page(ons-show="walking.onShowMap(main.store)" ons-destroy="walking.onDestroyMap()") div(id='walkMap')
and the javascript:
var vm = this; vm.lat = ....; vm.lng = ....; vm.onShowMap = function(store) { var mapElement = document.getElementById("walkMap"); var latlng = new google.maps.LatLng(vm.lat, 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.overlay.setMap(map); map.geocoder = new google.maps.Geocoder(); vm.map = 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?
Thanks,
Aaron