diff --git a/src/main/webapp/templates/weatherstationView.ftl b/src/main/webapp/templates/weatherstationView.ftl index a8a2f2716920699be26eae97fab02e6fe43d7884..8c9ca4ca5f91f4e6943eeaed9ff4e3d3b550a8ec 100755 --- a/src/main/webapp/templates/weatherstationView.ftl +++ b/src/main/webapp/templates/weatherstationView.ftl @@ -20,7 +20,7 @@ </#macro> <#macro custom_css> - <link rel="stylesheet" type="text/css" href="/css/3rdparty/ol.css"/ > + <link rel="stylesheet" type="text/css" href="/css/3rdparty/ol.css"/> </#macro> <#macro custom_js> <script type="text/javascript" src="/js/3rdparty/ol.js"></script> @@ -36,7 +36,7 @@ // If weather station already registered, center on location // Otherwise, center and zoom to organizations's default <#if weatherStation.longitude?has_content && weatherStation.latitude?has_content> - initMap([${(weatherStation.longitude?c)!""},${(weatherStation.latitude?c)!""}],10,${weatherStation.userId.organizationId.organizationId},${weatherStation.pointOfInterestId!"null"}); + initMap([${(weatherStation.longitude?c)!""},${(weatherStation.latitude?c)!""}],10,${weatherStation.user.organizationId.organizationId},${weatherStation.pointOfInterestId!"null"}); <#else> initMap([${defaultMapCenter.x?c},${defaultMapCenter.y?c}],${defaultMapZoom},${user.organizationId.organizationId},${weatherStation.pointOfInterestId!"null"}); </#if>