Make easy eslint fixes to newplace.js

This commit is contained in:
Jonny Barnes 2016-06-14 16:30:09 +01:00
parent 010378fb76
commit 4c1997827a

View file

@ -12,8 +12,6 @@ function getLocation() {
updateForm(position.coords.latitude, position.coords.longitude); updateForm(position.coords.latitude, position.coords.longitude);
addMap(position.coords.latitude, position.coords.longitude); addMap(position.coords.latitude, position.coords.longitude);
}); });
} else {
console.log('I need to do something when geoloaction isnt available.');
} }
} }
@ -33,10 +31,10 @@ function addMap(latitude, longitude) {
var map = L.mapbox.map('map', 'jonnybarnes.gnoihnim') var map = L.mapbox.map('map', 'jonnybarnes.gnoihnim')
.setView([latitude, longitude], 15) .setView([latitude, longitude], 15)
.addLayer(L.mapbox.tileLayer('jonnybarnes.gnoihnim', { .addLayer(L.mapbox.tileLayer('jonnybarnes.gnoihnim', {
detectRetina: true, detectRetina: true
})); }));
var marker = L.marker([latitude, longitude], { var marker = L.marker([latitude, longitude], {
draggable: true, draggable: true
}).addTo(map); }).addTo(map);
marker.on('dragend', function () { marker.on('dragend', function () {
var markerLocation = marker.getLatLng(); var markerLocation = marker.getLatLng();