diff --git a/public/assets/js/newnote.js b/public/assets/js/newnote.js index 2a26b261..86903cc4 100644 --- a/public/assets/js/newnote.js +++ b/public/assets/js/newnote.js @@ -39,7 +39,7 @@ function addPlaces(latitude, longitude) { addMap(latitude, longitude); } }).catch(function (err) { - console.log(err); + console.error(err); }); } @@ -57,11 +57,11 @@ function addMap(latitude, longitude, places) { var map = L.mapbox.map('map', 'jonnybarnes.gnoihnim') .setView([latitude, longitude], 15) .addLayer(L.mapbox.tileLayer('jonnybarnes.gnoihnim', { - detectRetina: true, + detectRetina: true })); //add a marker for the current location var marker = L.marker([latitude, longitude], { - draggable: true, + draggable: true }).addTo(map); //when the location marker is dragged, if the new place form elements exist //update the lat/lng values @@ -87,7 +87,7 @@ function addMap(latitude, longitude, places) { form.insertBefore(selectEl, div); if (places !== null) { //add the places both to the map and