Set default coordinates

This commit is contained in:
savvasha
2019-02-21 23:07:02 +02:00
parent 3986a8566e
commit 39b7544270
3 changed files with 10 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
//Initialize variables
latitude = 0;
longitude = 0;
//Get variables form input values
latitude = document.getElementById('sp_latitude').value;
longitude = document.getElementById('sp_longitude').value;
//Initialize the map and add the Search control box
var map = L.map('sp-location-picker').setView([latitude, longitude], 15),