blob: 6aadad18200c30e4f22a2bfb4d16b2586a67fc95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
(function( $, mw ) {
$( document ).ready( function() {
var map = L.map('GeoJsonMap'/*, {editable: true}*/);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
var geoJsonLayer = L.geoJSON(GeoJson).addTo(map);
map.fitBounds(geoJsonLayer.getBounds());
} );
})( window.jQuery, mediaWiki );
|