I'm using ng-map
in my web application. In the map view, I display different positions using marker
. I want to change the color of each marker depending the filed isOpned
that I have inside the object from where I get the positions. I tried to add background-color
style to my marker but nothing happened.
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}}"></marker>
</ng-map>