angularjs-google-maps

(angularjs-google-maps) ng-click inside marker

只谈情不闲聊 提交于 2019-12-23 16:14:24
问题 This question is about angularjs-google-maps , https://github.com/allenhwkim/angularjs-google-maps Is there a way to use ng-click on a marker to set a variable like this? (the value of 1 is hard-coded for testing purposes). Clicking the marker currently does not seem to trigger the ng-click. <marker ng-repeat="instance in common.instances" position="[{{instance.lat}},{{instance.lng}}]" ng-click="common.selectedinstance = 1"> </marker> 回答1: From their document, https://developers.google.com

AngularJS Google Map Directive - Error while displaying InfoWindow on Marker Click event

时光怂恿深爱的人放手 提交于 2019-12-12 03:47:58
问题 I am developing a AgngularJs Google Map application (using AngularJS Google Map Directive) to show the current location using Marker and display the coordinates in an InfoWindow when the Marker icon is clicked. HTML: <ui-gmap-google-map center="map.center" zoom="map.zoom" options="options"> <ui-gmap-marker coords="vm.marker.coords" options="vm.marker.options" events="vm.marker.events" idkey="vm.marker.id"> </ui-gmap-marker> <ui-gmap-window show="false" coords="vm.infoWin.coords" options="vm

Using ng-repeat with markers in ngMap

隐身守侯 提交于 2019-11-28 20:54:19
I want to use ngMap to add Google Maps to my app. The demos are "static" in the sense that they have only hard coded HTML. I want my code to be "dynamic" in the sense that it will periodically ask a server to look in its database and return me a bunch of coordinates to plot, which will change with time. I hope that that is clear; if not, please ask for more detail. I modified the ngmap markers demo to generate some random lat/long coordinates every two seconds (rather than going to my server, as my final app will). Please see the Plunk . There are no errors in the console, and it seems that

Google maps for AngularJS

本秂侑毒 提交于 2019-11-28 16:23:31
I am very new to AngularJS and I am trying to use https://github.com/angular-ui/angular-google-maps . I am just trying to get the map to render on my page but I am getting an error message and I don't know what it means. Any help with understanding this error message would be appreciated. I've created a plunk here: github.com/twdean/plunk Here is the Error in the browser: Error: [$compile:multidir] Multiple directives [googleMap, markers] asking for new/isolated scope on: <google-map center="center" draggable="true" zoom="zoom" markers="markers" mark-click="true" style="height: 400px"> http:/

Google maps for AngularJS

感情迁移 提交于 2019-11-27 19:59:42
问题 I am very new to AngularJS and I am trying to use https://github.com/angular-ui/angular-google-maps. I am just trying to get the map to render on my page but I am getting an error message and I don't know what it means. Any help with understanding this error message would be appreciated. I've created a plunk here: github.com/twdean/plunk Here is the Error in the browser: Error: [$compile:multidir] Multiple directives [googleMap, markers] asking for new/isolated scope on: <google-map center=