-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leaflet awesome markers support #258
Comments
Hi, you're right, that old example is not working as expected. I will solve that in a few days, it will not be a harder one, but I would like to restyle the example. Thanks for reporting |
I finally managed to solve this, it was an easy one. I have reworked the example to make it working again, you can see the new version here: http://tombatossals.github.io/angular-leaflet-directive/examples/markers-update-example.html About the AwesomeMarkers management, I have to document this a little but now you must declare an icon as an AwesomeMarker like this:
|
Thank You for solving this issue, but i found that icon of awesome marker does not display (may be I'm doing something wrong) and changing marker message to ""(empty) work some kind of buggy in Your example. |
@zolotyx the demo uses icon cofee which is invalid. I tried with other ones and it works fine. |
Hi, I have updated the demo, now it works better: http://tombatossals.github.io/angular-leaflet-directive/examples/markers-update-example.html |
I spend quite a view time to find this thread. Would you please add the example above to the examples page http://tombatossals.github.io/angular-leaflet-directive/#!/examples/simple-map ? |
@tombatossals Is there a way to use Awesome markers while using geojson to bring the markers in? I don't see anyway to style the icons when they come via geojson. |
Probably a bit too late but I recently released this to help people use geojson and font awesome markers together. Hope it helps. |
We still have an issue displaying font-awesome icons. It seems to me that the className and prefix is not set by the icon type in the angular-leaflet-directive. I've modified leaflet.awesome-markes.js to use 'fa' as default prefix instead of 'glyphicon' to make it work. |
@nweis Can you please share how you did this? I'm getting a class not found error and pretty sure it's tied to this. |
Sure - I've modified leaflet.awesome-markers.js as follows:
|
Thanks! On Thu, Mar 19, 2015 at 7:16 AM, nweis [email protected] wrote:
|
Glad to help. :) |
Which color format should I use? I get the color value from the server and I don't have the color name so I can't to set the color. let marker = { |
Take a look at the new icons example: |
@tombatossals I think you need to add the prefix fa or else it'll depend on and use bootstrap glyphicons. |
I'm having difficulties resizing the marker. This is the code I have. Any idea.. someone |
…ed example markers-update. Thanks to @zolotyx for notify the problem here: tombatossals/angular-leaflet-directive#258
Leaflet awesome markers do not work, even in given example.
http://tombatossals.github.io/angular-leaflet-directive/examples/markers-update-example.html
In this example many other features do not work (popup message, draggable can not be turned off)
The text was updated successfully, but these errors were encountered: