diff --git a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html index 177578a2a689eee14a753d2929fbe99c16df56de..7411d6a72a68e0f24b85bac3701b6331376acc7c 100755 --- a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html +++ b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html @@ -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); } diff --git a/cerealblotchmodels/templates/cerealblotchmodels/septoriahumiditymodelform.html b/cerealblotchmodels/templates/cerealblotchmodels/septoriahumiditymodelform.html index 559b50c9284c241985404b2606ef678f042e8452..2e29cd75498d71bb4b81925073ea6059b5204ea2 100644 --- a/cerealblotchmodels/templates/cerealblotchmodels/septoriahumiditymodelform.html +++ b/cerealblotchmodels/templates/cerealblotchmodels/septoriahumiditymodelform.html @@ -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); }