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

fix: Errors when editing weather station and poi [VIPSUTV-945]

parent 0edc396b
No related branches found
No related tags found
No related merge requests found
......@@ -250,7 +250,7 @@ legend {
display: block;
}
#objectGISInfoMap, #weatherStationListMap, #weatherStationFormMap, #weatherStationViewMap, #poiListMap {
#objectGISInfoMap, #weatherStationListMap, #weatherStationFormMap, #weatherStationViewMap, #poiListMap, #poiFormMap {
height: 400px;
width: 100%;
}
......
......@@ -71,6 +71,8 @@ function initMap(center, zoomLevel, organizationId, currentPoiId, readOnly)
})
});
const centerPosition = ol.proj.transform(center, 'EPSG:4326', map.getView().getProjection().getCode());
// Marker overlay
stationMarker = new ol.Overlay({
position: currentPoiId !== null ? centerPosition : undefined,
......
......@@ -70,6 +70,8 @@ function initMap(center, zoomLevel, organizationId, currentWeatherStationId)
})
});
const centerPosition = ol.proj.transform(center, 'EPSG:4326', map.getView().getProjection().getCode());
// Marker overlay
stationMarker = new ol.Overlay({
position: currentWeatherStationId !== null ? centerPosition : undefined,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment