Tag:

Meteor GoogleMaps.load()不适用于iOS的Iron

我正在用Meteor在页面上加载一个带有标记的简单地图。 我正在使用GoogleMaps包和Iron 。 地图显示在我的浏览器正确,但是当我尝试了iOS模拟器(iPhone 6 / iOS 8.3)它只是从来没有加载:它是自动运行,系统返回false在GoogleMaps.loaded() … 另一方面, Geolocation正确地返回一个位置。 以下是我设置的存储库以查看整个问题: https : //github.com/Loschcode/meteor-iron-google-maps-issue 重要的行可能是GoogleMaps包安装程序: # # Helpers # Template.GeoMap.helpers { geolocationError: => error = Geolocation.error() return error and error.message mapOptions: => latLng = Geolocation.latLng() if (Meteor.isCordova) alert(GoogleMaps.loaded()) # Initialize the map once we have the latLng. if GoogleMaps.loaded() and latLng if (Meteor.isCordova) alert('GoogleMaps.loaded') […]