Skip to content

Render as URI #180

@anushkrishnav

Description

@anushkrishnav

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 %}

Metadata

Metadata

Assignees

Labels

enhancementEnhancement or feature.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions