Get eslinting working again
This commit is contained in:
parent
963baee25f
commit
ff1b767f0f
7 changed files with 55 additions and 53 deletions
|
@ -39,21 +39,21 @@ export default function submitNewPlace(map) {
|
|||
});
|
||||
//add new place to map
|
||||
newFeatures.push({
|
||||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [placeJson.longitude, placeJson.latitude]
|
||||
'type': 'Feature',
|
||||
'geometry': {
|
||||
'type': 'Point',
|
||||
'coordinates': [placeJson.longitude, placeJson.latitude]
|
||||
},
|
||||
"properties": {
|
||||
"title": placeJson.name,
|
||||
"icon": "circle",
|
||||
"uri": placeJson.uri
|
||||
'properties': {
|
||||
'title': placeJson.name,
|
||||
'icon': 'circle',
|
||||
'uri': placeJson.uri
|
||||
}
|
||||
});
|
||||
let newSource = {
|
||||
"type": "FeatureCollection",
|
||||
"features": newFeatures
|
||||
}
|
||||
'type': 'FeatureCollection',
|
||||
'features': newFeatures
|
||||
};
|
||||
map.getSource('points').setData(newSource);
|
||||
//add new place to select menu
|
||||
let selectElement = document.querySelector('select');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue