Angular-google-maps: Custom Markers

Created on 12 Feb 2016  路  14Comments  路  Source: SebastianM/angular-google-maps

It will be nice to be able to create custom markers....
https://developers.google.com/maps/tutorials/customizing/custom-markers

important AgmMarker feature-request

Most helpful comment

Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?

All 14 comments

@SebastianM
You can define a custom via a custom URL like this:

```

Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?

can we define icon based on local path from our /assets/images/ path for example instead of an actual httpurl type?

@rushstrike Sure. Just make sure the path is relative to your index.html file, i.e. iconUrl="assets/images/marker.jpg"

Is it possible to insert some marker options like size?

Yes, I think it could be a good thing to add height and width to the markers. It would be useful to be able to adapt the size of the markers to the size of the screen, like on smartphones.

I have an issue, when i trie to customise the marker with [iconUrl] directive it goes hidden

note : the png file is in the same folder as the html file

The same folder as the html file is not correct path. Try to open the developer tools > network tab in your browser and search for the location where the browser is looking for the .png file. Probably it should be located somewhere in the root of you application or in the assets or images folder.

thanks :D

Is it now possible to add size?

Is there a possibility to customize that image icon used as a Marker with CSS ?

@bholben Is this possible now? "Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maneesht picture maneesht  路  3Comments

nthonymiller picture nthonymiller  路  4Comments

matishw picture matishw  路  3Comments

ostapch picture ostapch  路  4Comments

alexweber picture alexweber  路  4Comments