Javascript 使用cordova谷歌地图插件和angular/ionic
有人知道在使用离子框架时如何在控制器内部使用“plugin.google.maps”吗 我需要处理对标记的点击(plugin.google.maps.event.MARKER\u CLICK),并弹出一些信息(在地图之外),所以我不能停留在“run”方法中 “controllers.js”: 谢谢Javascript 使用cordova谷歌地图插件和angular/ionic,javascript,angularjs,google-maps,cordova,ionic,Javascript,Angularjs,Google Maps,Cordova,Ionic,有人知道在使用离子框架时如何在控制器内部使用“plugin.google.maps”吗 我需要处理对标记的点击(plugin.google.maps.event.MARKER\u CLICK),并弹出一些信息(在地图之外),所以我不能停留在“run”方法中 “controllers.js”: 谢谢 PS:我在这里也问了这个问题:应该这样做:在div setmap.setClickable(false)内 关闭后,设置map.setClickable(true) 此外,请确保正确收听单击事件 希
PS:我在这里也问了这个问题:应该这样做:在div set
map.setClickable(false)
内
关闭后,设置map.setClickable(true)
此外,请确保正确收听单击事件
希望这有帮助。当你在Android amulator中没有安装google play服务,或者你在浏览器中运行应用程序时,你会遇到这个错误,插件是本地的,只能在设备上工作…我没有成功地编辑我的帖子说“嗨!”!
.controller('GetShopsCtrl', function($scope, $http) {
var div = document.getElementById("map_canvas");
var map = plugin.google.maps.Map.getMap();
})
ReferenceError: plugin is not defined