cleaner template
<link rel="stylesheet" href="https://rawgit.com/python-visualization/folium/master/folium/templates/leaflet.awesome.rotate.css"/>
<style>
-
html, body {
width: 100%;
height: 100%;
right:0;
left:0;
}
-
</style>
-
<style>
#{{ map_id }} {
position:relative;
top:0.0%;
}
</style>
-
</head>
<body>
-
<div class="folium-map" id="{{ map_id }}" ></div>
-
</body>
<script>
-
var southWest = L.latLng({{ min_lat }}, {{ min_lon }});
var northEast = L.latLng({{ max_lat }}, {{ max_lon }});
var bounds = L.latLngBounds(southWest, northEast);
attribution: '{{tile['attr']}}',
detectRetina: {{tile['detect_retina'].__str__().lower()}},
subdomains: '{{tile['subdomains']}}'
- }
- ).addTo({{ map_id }});
+ }).addTo({{ map_id }});
{% endfor %}
-
</script>
