{{"decoupled-map"|googlemap_js(37.4419, -122.1419, markers=[(37.4419, -122.1419)])}} {{mymap.js}} {{sndmap.js}}

Flask Google Maps Example

Template function centered, no marker

{{googlemap("simple-map", 37.4419, -122.1419)}}

Template filter decoupled with single marker

{{"decoupled-map"|googlemap_html(37.4419, -122.1419)}}

Template function with multiple markers

{% with map=googlemap_obj("another-map", 37.4419, -122.1419, markers=[(37.4419, -122.1419), (37.4300, -122.1400)]) %} {{map.html}} {{map.js}} {% endwith %}

First map generated in view

{{mymap.html}}

Second map generated in view

Example for different icons in multiple markers with infoboxes

{{sndmap.html}}