flask-extensions / Flask-GoogleMaps

Easy way to add GoogleMaps to Flask applications. maintainer: @getcake
https://flask-googlemaps.com
MIT License
644 stars 195 forks source link

Add a marker label #141

Open harisbal opened 3 years ago

harisbal commented 3 years ago

Hello, I cannot figure out how to add a label on my marker as here Is this possible?

I tried adding an icon property but with no results

icon = {
        'path': 'M 0,0 C -2,-20 -10,-22 -10,-30 A 10,10 0 1,1 10,-30 C 10,-22 2,-20 0,0 z M -2,-30 a 2,2 0 1,1 4,0 2,2 0 1,1 -4,0',
        'title': 'Mytitle,
        'fillColor': '#000',
        'strokeColor': '#000',
        'strokeWeight': 1,
        'scale': 1,
        'label': 'Mylabel',
        'labelOrigin': {'x': 10, 'y': 10}
}

ANy help would be much appreciated. Thank you for this great extension :)