Skip to content
Snippets Groups Projects
Commit 3b6758b4 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat: Coordinates are given "poiId" -1 to be shown with form in map

parent 5824eb65
No related branches found
No related tags found
No related merge requests found
......@@ -269,7 +269,7 @@
window.openCoordinatesMap = () => {
if (inputLatitudeElement.value && inputLongitudeElement.value) {
selectedPoint = 1;
selectedPoint = -1;
selectedFeature = {
"type": "FeatureCollection", "features": [
{
......@@ -289,7 +289,7 @@
}
const isPoiMap = false; // Map should enable selection of coordinates (not pois)
const allowNewPoints = true; // User should be able to select new pois
const allowNewPoints = true; // User should be able to select new coordinates
const coordinatesMapInstance = new MapModal('coordinates-map', selectedFeature, settings.currentLanguage, isPoiMap, allowNewPoints, selectCoordinates);
coordinatesMapInstance.openModal(selectedPoint);
}
......
......@@ -274,7 +274,7 @@
window.openCoordinatesMap = () => {
if (inputLatitudeElement.value && inputLongitudeElement.value) {
console.info(`Open map for lat=${parseFloat(inputLatitudeElement.value)} lon=${parseFloat(inputLatitudeElement.value)}`)
selectedPoint = 1;
selectedPoint = -1;
selectedFeature = {
"type": "FeatureCollection", "features": [
{
......@@ -294,7 +294,7 @@
}
const isPoiMap = false; // Map should enable selection of coordinates (not pois)
const allowNewPoints = true; // User should be able to select new pois
const allowNewPoints = true; // User should be able to select new coordinates
const coordinatesMapInstance = new MapModal('coordinates-map', selectedFeature, settings.currentLanguage, isPoiMap, allowNewPoints, selectCoordinates);
coordinatesMapInstance.openModal(selectedPoint);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment