-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add option for simple text or numbers on markers #31
Comments
It's not that difficult to implement this for yourself. I achieved this by modifying few lines of code somewhere around line 182 . Modify this according to your needs.
and at line 140 you will find var iconOptions. again modify this according to your needs.
|
I failed trying a similar modification; I want to add a directive to the innerHTML by adding an option svgDefs at line 140 and using options.svgDefs in line 182. I added the svgDefs option on creating the Icon: |
Problem solved! It worked that way, I had only a build problem. I'll fork the project to imnplement the changes. |
Good to know it worked for you. |
That kind of support was added to the extra markers plugin:
https://github.com/coryasilva/Leaflet.ExtraMarkers
But clearly vector markers are the way to go-
The text was updated successfully, but these errors were encountered: