ng-map

NgMap cluster change markers colors after zoom

最后都变了- 提交于 2019-12-02 20:51:06
问题 I want to change the color of the markers. I'm using ng-map to display the map. I'm also using the cluster option in this library. My problem: I'm able to change the marker color and I can see that, but once I begin zooming, the markers color change to the default one (red color). This is my code: <ng-map zoom-to-include-markers="auto" id="map" map-type-id="ROADMAP" street-view-control-options="{position: 'LEFT_CENTER'}"> <marker ng-repeat="p in paths" position="{{p.positions}}" icon="{{p

NgMap cluster change markers colors after zoom

两盒软妹~` 提交于 2019-12-02 08:57:59
I want to change the color of the markers. I'm using ng-map to display the map. I'm also using the cluster option in this library. My problem: I'm able to change the marker color and I can see that, but once I begin zooming, the markers color change to the default one (red color). This is my code: <ng-map zoom-to-include-markers="auto" id="map" map-type-id="ROADMAP" street-view-control-options="{position: 'LEFT_CENTER'}"> <marker ng-repeat="p in paths" position="{{p.positions}}" icon="{{p.icon}}"></marker> </ng-map> This is the cluster code: NgMap.getMap().then(function (map) { for (var i = 0;

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