mirror of
https://github.com/rscmbbng/Border-Check.git
synced 2024-12-28 23:01:34 +01:00
long and lat connected via xml to map draw js script
This commit is contained in:
parent
6d0bb7ee44
commit
a69b39ab0e
@ -35,13 +35,13 @@ output = """
|
|||||||
<tr>
|
<tr>
|
||||||
<td><center><div id="map" style="width: 600px; height: 400px"></div></center></td>
|
<td><center><div id="map" style="width: 600px; height: 400px"></div></center></td>
|
||||||
<script>
|
<script>
|
||||||
var map = L.map('map').setView([23.505, -3.09], 18);
|
var map = L.map('map').setView(["""+xmlLongitude+""", """+xmlLatitude+"""], 14);
|
||||||
L.tileLayer('Border Check', {
|
L.tileLayer('Border Check', {
|
||||||
maxZoom: 18,
|
maxZoom: 18,
|
||||||
attribution: 'Map: <a href="http://openstreetmap.org">OpenStreetMap</a>'
|
attribution: 'Map: <a href="http://openstreetmap.org">OpenStreetMap</a>'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
L.marker([51.5, -0.09]).addTo(map)
|
L.marker(["""+xmlLongitude+""", """+xmlLatitude+"""]).addTo(map)
|
||||||
.bindPopup("<b>"""+xmlMeta+"""</b><br />").openPopup();
|
.bindPopup("<b>"""+xmlMeta+"""</b><br />").openPopup();
|
||||||
|
|
||||||
var popup = L.popup();
|
var popup = L.popup();
|
||||||
|
Loading…
Reference in New Issue
Block a user