Custom icon only works on ui-gmap-markers and not a singular marker
Trying to use a custom icon, but can only get it working when using <ui-gmap-markers>. I can see it working on your example, which is confusing as I don't see the difference/cause.
I've created a simple plnkr with both, which highlights the issue: http://plnkr.co/edit/6tKWteGE6iu0pEY9d21F?p=preview
+1
+1
If you set the icon inside options, it works for ui-gmap-marker: http://plnkr.co/edit/2JxtGRoc3jcbf4hM0AA8?p=preview
I can probably look at this, it's a simple model issue.
@solidspark thanks
+1, I am also seeing the icon attribute not working on the marker directive. I have to use options for it. A fix to bring the implementation back to matching the documentation is much appreciated.
wow, I wasted a lot of time on this. How do I vote that this is a priority?
Why not just use markers?
marker = 1 marker = 2+
Anyway, as I said before, set the icon inside options. If you just update the documentation, so that would be ok.
Yes, markers work great for this. I just couldn't find it in the docs.
I am sure this fix is dead simple; is anyone else still looking into the code base for this?
Problem code is either in here https://github.com/angular-ui/angular-google-maps/blob/master/src/coffee/directives/api/models/child/marker-child-model.coffee
or here
https://github.com/angular-ui/angular-google-maps/blob/master/src/coffee/directives/api/marker.coffee
I don't really care whether custom icon path is defined in marker.icon or marker.option.icon.
It looks so trivial that this undocumented "feature" results in hours of ![]()
lol, I am putting the lines out there so some one else can work on this besides me. So keep banging your head while you wait. Or attempt to solve the issue. I am just trying to help while many complain.
While your at it document the problem on the wiki, and or website which you can contribute to.
perhaps this issue can be closed
I can make it work with singular, just got to do it. It's not hard , just gotta find the time.
So leave it open as an enhancement.
:+1:
Check your closing element its markers not marker :)
<ui-gmap-marker idKey="marker.id" coords="marker.coords" icon="marker.icon"></ui-gmap-markers>