javascript - Leaflet Awesome-Markers (Adding Numbers) -


i using leaflet.awesome-markers plugin leafletjs.

i have implemented correctly, i'd able use numbers 0 - 9 represent markers.

here's js fiddle implementation show how plugin behaves.

http://jsfiddle.net/fulvio/vpzu4/200/

the plugin allows use of font-awesome icons , glyph icons (both of course, not offer 0 - 9 numbers icons. argh!)

the documentation mentions ability use extraclasses , wondering whether point me in right direction how leverage in order display numbers rather icons or whether there way achieve this.

thanks in advance help.

update:

thanks comment @can.

the author of awesome-markers got tree added looking awesome-markers numbers/letters sure grab unminified js.

instead of using awesome-markers plugin, follow article on creating numbered markers in leaflet:

http://charliecroom.com/index.php/web/numbered-markers-in-leaflet

the associated gist here:

https://gist.github.com/comp615/2288108

an simple example of how work follows:

// text letters instead of numbers if that's more appropriate var marker = new l.marker(new l.latlng(0, 0), {     icon:   new l.numbereddivicon({number: '1'}) }); 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -