From 4c1997827ace4b268faf19fff4719434a9929f59 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Tue, 14 Jun 2016 16:30:09 +0100 Subject: [PATCH] Make easy eslint fixes to newplace.js --- public/assets/js/newplace.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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();