Skip to content

Instantly share code, notes, and snippets.

@karnzx
Last active March 26, 2020 13:36
Show Gist options
  • Save karnzx/117abc9e463950a2bd4e5b99f2c4ee39 to your computer and use it in GitHub Desktop.
Save karnzx/117abc9e463950a2bd4e5b99f2c4ee39 to your computer and use it in GitHub Desktop.
Medium Brython -base-map.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
#mapid {
height: 60rem;
background-color:white;
}
</style>
<title> Brython map </title>
<script src="{{ url_for('static', filename='node_modules/brython/brython.js') }}"></script>
<script src="{{ url_for('static', filename='node_modules/brython/brython_stdlib.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='node_modules/leaflet/dist/leaflet.css') }}" />
<script src="{{ url_for('static', filename='node_modules/leaflet/dist/leaflet.js') }}"></script>
</head>
<body onload="brython()">
{% block body %}{% endblock %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment