ipyleaflet icon indicating copy to clipboard operation
ipyleaflet copied to clipboard

Add labels to markers

Open jngarber opened this issue 4 years ago • 1 comments

Is it possible to add labels to markers? I'm thinking something along the lines of placemark names in GE/KML. I'm aware of the title attribute for markers, but that doesn't seem like the intended purpose. I'd like the labels to be visible always (or not, set by attribute) with some level of control on their appearance (size, color). I'd like to be able to display a friendly name or numerical id for each marker. Is this possible, and if not, are there workarounds? Anyone implemented this on their own fork?

jngarber avatar Mar 12 '21 13:03 jngarber

Yes, this would be a nice feature to add. Also see https://github.com/jupyter-widgets/ipyleaflet/issues/792

giswqs avatar Mar 12 '21 14:03 giswqs