diff --git a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html index 4305be96ffece7fc8b4c471a1ed42cf87a592301..8dde9dee4ccab3f5ebc5d147d172b46f6747a68b 100755 --- a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html +++ b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html @@ -251,11 +251,9 @@ selectedFeature = undefined; } - // TODO Open map with currently selected language! (not 'nb') - const isPoiMap = false; // Map should enable selection of coordinates (not pois) const allowNewPoints = true; // User should be able to select new pois - const coordinatesMapInstance = new MapModal('coordinates-map', selectedFeature, 'nb', isPoiMap, allowNewPoints, selectCoordinates); + const coordinatesMapInstance = new MapModal('coordinates-map', selectedFeature, settings.currentLanguage, isPoiMap, allowNewPoints, selectCoordinates); coordinatesMapInstance.openModal(selectedPoint); } @@ -272,7 +270,7 @@ .then(geoJson => { const isPoiMap = true; // Map should enable selection of pois const allowNewPoints = false; // User should not be able to create new pois - const poiMapInstance = new MapModal('poi-map', geoJson, 'nb', isPoiMap, allowNewPoints, selectPoi); + const poiMapInstance = new MapModal('poi-map', geoJson, settings.currentLanguage, isPoiMap, allowNewPoints, selectPoi); const selectedPoiId = getSelectedPoiId(); poiMapInstance.openModal(selectedPoiId); })