flask-extensions / Flask-GoogleMaps

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

add map.markers_as_json method #32

Closed rochacbruno closed 8 years ago

rochacbruno commented 8 years ago

To fix this line https://github.com/rochacbruno/Flask-GoogleMaps/blob/master/flask_googlemaps/templates/googlemaps/gmapjs.html#L38 fails when there is unicode data in marker

mihxen commented 8 years ago

add a "tojson" filter like this var raw_markers = {{gmap.markers|tojson|safe}};