Make easy eslint fixes to newplace.js
This commit is contained in:
parent
010378fb76
commit
4c1997827a
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue