3,25 → 3,33 |
!exit |
!endif |
$name_geolocdesc |
<link rel="stylesheet" href="//cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /> |
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.css" /> |
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.Default.css" /> |
<script src="//cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script> |
<link rel="stylesheet" href="//unpkg.com/leaflet@1.7.1/dist/leaflet.css" |
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" |
crossorigin=""/> |
<script src="//unpkg.com/leaflet@1.7.1/dist/leaflet.js" |
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" |
crossorigin=""></script> |
<script src='//cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster.js'></script> |
|
<link rel="stylesheet" href="//unpkg.com/leaflet.markercluster@1.3.0/dist/MarkerCluster.css" /> |
<link rel="stylesheet" href="//unpkg.com/leaflet.markercluster@1.3.0/dist/MarkerCluster.Default.css" /> |
<script src="//unpkg.com/leaflet.markercluster@1.3.0/dist/leaflet.markercluster.js"></script> |
|
<div id="mapid" style="width: 100%; max-width: 1000px; height: 800px; margin:.5em auto;"> </div> |
|
|
|
|
<script> |
var map = L.map('mapid').setView([$Xserver, $Yserver], 7); |
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', { |
attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>', |
maxZoom: 18, |
attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, ' + |
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>', |
id: 'mapbox/streets-v11', |
tileSize: 512, |
zoomOffset: -1 |
zoomOffset: -1, |
}).addTo(map); |
|
|
var LeafIcon = L.Icon.extend({ |
options: { |
iconSize: [12, 39], |