BUG: Fix deprecated maptiles
This commit is contained in:
parent
43fbaa3c66
commit
5ec4ab2025
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
{% extends "main/base.html" %}
|
{% extends "main/base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
|
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
|
||||||
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
|
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
|
||||||
|
|
||||||
<h2>{{ community_name }}</h4>
|
<h2>{{ community_name }}</h4>
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var map = L.map('map').setView([{{ lat }}, {{ lon }}], 5);
|
var map = L.map('map').setView([{{ lat }}, {{ lon }}], 5);
|
||||||
L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg', {
|
L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 18,
|
maxZoom: 18,
|
||||||
attribution: '{{ community_name }}, AK'
|
attribution: '{{ community_name }}, AK'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
Loading…
Add table
Reference in a new issue