Is there a function to render the map as a uri instead of a html file . I want to share my map inside a frame but I am unable to do that .Here is the example of how it can be implemented
map.py
@blueprint.route('/map')
def map():
gmap = gmplot.GoogleMapPlotter.from_geocode( "delhi, India",apikey="key")
gmap.render_as_uri()
return render_template('map/map.html',gmap=gmap)
map.html
{% extends "layouts/layout.html" %}
{% block header %}
<div class="container" align="left">
<embed type="image/svg+xml" src={{gmap|safe}} style='max-width:1000px'/>
</div>
{% endblock %}
{% block content %}
{% endblock %}
Is there a function to render the map as a uri instead of a html file . I want to share my map inside a frame but I am unable to do that .Here is the example of how it can be implemented
map.py
map.html