sigma-geosistemas / Leaflet.awesome-markers

Colorful, iconic & retina-proof markers for Leaflet, based on the Font Awesome/Twitter Bootstrap icons.
MIT License
42 stars 20 forks source link

hex colors for marker backgrounds #10

Open atsepkov opened 7 years ago

atsepkov commented 7 years ago

I noticed that you introduced square icons to your fork, something that wasn't available in the original version. However, it seems like both versions have the same limitation in number of colors being limited due to the fact that markers are rendered from sprites. This limitation, however, does not exist for the foreground icons, which use fonts.

What if instead of using sprites, the library would define the background marker as a font as well (currently with 2 marker types: round and square) and render it behind behind the foreground icon via css? That way the user can use any of the 16 million available colors for the background.

george-silva commented 7 years ago

Great Idea @atsepkov .

Can you contribute?

cazacugmihai commented 7 years ago

+1

AlexGreg commented 6 years ago

it'll be nice if we can put the map-marker icon

I'll dig a bit these days on how to implement it. any suggestions are welcomed

AlexGreg commented 6 years ago

this is a result of how it might be. Btw, it needs some improvement, but what I know for sure is that proceeding in that direction will have some drawbacks:

BananaAcid commented 5 years ago

.. svgs could solve that issue as well ..