diff --git a/src/main/webapp/css/vipslogic.css b/src/main/webapp/css/vipslogic.css index 0ce019c9c2dabafc3a9aa07706b26b312e31fd4a..7e1bd4ad2499be6d2d7f095a927752bec76c3604 100755 --- a/src/main/webapp/css/vipslogic.css +++ b/src/main/webapp/css/vipslogic.css @@ -250,7 +250,7 @@ legend { display: block; } -#objectGISInfoMap, #weatherStationListMap, #weatherStationFormMap, #weatherStationViewMap, #poiListMap { +#objectGISInfoMap, #weatherStationListMap, #weatherStationFormMap, #weatherStationViewMap, #poiListMap, #poiFormMap { height: 400px; width: 100%; } diff --git a/src/main/webapp/js/poiFormMap.js b/src/main/webapp/js/poiFormMap.js index 2e9f85729222d8586f376774b56a621c593a7b36..acbec31393012db17499c43da7d9c23dac193e54 100755 --- a/src/main/webapp/js/poiFormMap.js +++ b/src/main/webapp/js/poiFormMap.js @@ -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, diff --git a/src/main/webapp/js/weatherStationFormMap.js b/src/main/webapp/js/weatherStationFormMap.js index 235080fc2eb598792fb080338f5e77301a8582ef..7f97e8723d6a2f5ca631b965730b1a2dd979cbdc 100755 --- a/src/main/webapp/js/weatherStationFormMap.js +++ b/src/main/webapp/js/weatherStationFormMap.js @@ -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,