angularjs-google-maps icon indicating copy to clipboard operation
angularjs-google-maps copied to clipboard

Custom Markers with Fonts Awesome

Open andreadompe opened this issue 7 years ago • 4 comments

Hi All, i need to use font awesome like markers, the only way i found is

  <ng-map center="44.706662,7.6703199" zoom="10">
    <custom-marker position="NewYork">
      <i class="fa fa-truck" aria-hidden="true"></i>
    </custom-marker>
  </ng-map>

But on the map the icon is duplicated image

This is my plunker https://plnkr.co/edit/rbUSp01ZpdS4s1KTA1AN?p=preview

How can i do?

Please help me.

andreadompe avatar Jul 10 '17 11:07 andreadompe

@andreadompe : were you able to find a fix for this ? Thanks.

wholeinsoul avatar Jul 27 '17 23:07 wholeinsoul

Plz do like this, and always have a wrapper div when you deal with Angular html.

    <custom-marker position="NewYork">
      <div>
        <i class="fa fa-truck" aria-hidden="true"></i>
      </div>
    </custom-marker>

allenhwkim avatar Jul 28 '17 02:07 allenhwkim

I'm sorry for hijacking this, but I have a similar issue; except I also use a ng-repeat. Below is my code. Is it not supported?

<custom-marker ng-repeat="prop in props" position="{{prop.lat}},{{prop.lon}}" title="{{prop.name}}">
     <div>
       <i class="fa fa-print" aria-hidden="true"></i>
     </div>
</custom-marker>

Regards,

kartagis avatar Oct 19 '17 13:10 kartagis

I fixed it by using the code like above, and I'm not sure why it didn't work at the time of my comment.

kartagis avatar Oct 20 '17 07:10 kartagis