emilhe / dash-leaflet

MIT License
214 stars 40 forks source link

changing the marker default icon option in EditControl using draw attribute #249

Open galgerman opened 4 months ago

galgerman commented 4 months ago

im trying to change the icon options, such as iconUrl and iconSize. thought the documentation only refers to the react library which as no relation to the dash implementation on how to generate the icon dict.

for example to change polygon options it says to change the 'shapeOptions' and it works. but for icon it says 'icon: new MyCustomMarker()' and no explenation on what it means dash python wise.

could you provide an example on how to change the marker being drawn?