diff --git a/public/assets/js/newplace.js b/public/assets/js/newplace.js index 166031a4..2a1e2ccf 100644 --- a/public/assets/js/newplace.js +++ b/public/assets/js/newplace.js @@ -12,8 +12,6 @@ function getLocation() { updateForm(position.coords.latitude, position.coords.longitude); addMap(position.coords.latitude, position.coords.longitude); }); - } else { - console.log('I need to do something when geoloaction isn’t available.'); } } @@ -33,10 +31,10 @@ function addMap(latitude, longitude) { var map = L.mapbox.map('map', 'jonnybarnes.gnoihnim') .setView([latitude, longitude], 15) .addLayer(L.mapbox.tileLayer('jonnybarnes.gnoihnim', { - detectRetina: true, + detectRetina: true })); var marker = L.marker([latitude, longitude], { - draggable: true, + draggable: true }).addTo(map); marker.on('dragend', function () { var markerLocation = marker.getLatLng();