diff --git a/views/html/charactergroupsqueststations/create.tpl b/views/html/charactergroupsqueststations/create.tpl
index cdca96b8..f28b066c 100644
--- a/views/html/charactergroupsqueststations/create.tpl
+++ b/views/html/charactergroupsqueststations/create.tpl
@@ -173,8 +173,13 @@
controls: ol.control.defaults(),
target: 'map',
view: new ol.View({
+
+ center: ol.proj.transform([=$seminary['longitude']?>, =$seminary['latitude']?>], 'EPSG:4326', 'EPSG:3857'),
+ zoom: 15,
+
center: [0, 0],
zoom: 0,
+
maxZoom: 19
})
});
diff --git a/views/html/charactergroupsqueststations/edit.tpl b/views/html/charactergroupsqueststations/edit.tpl
index 1f35432d..ec6501f0 100644
--- a/views/html/charactergroupsqueststations/edit.tpl
+++ b/views/html/charactergroupsqueststations/edit.tpl
@@ -209,8 +209,13 @@
controls: ol.control.defaults(),
target: 'map',
view: new ol.View({
+
+ center: ol.proj.transform([=$longitude?>, =$latitude?>], 'EPSG:4326', 'EPSG:3857'),
+ zoom: 17,
+
center: [0, 0],
zoom: 0,
+
maxZoom: 19
})
});
@@ -228,7 +233,7 @@
drawSource.addFeature(
new ol.Feature({
geometry: new ol.geom.Point(
- ol.proj.transform([longitude, latitude], 'EPSG:4326', 'EPSG:3857')
+ ol.proj.transform([parseFloat(longitude), parseFloat(latitude)], 'EPSG:4326', 'EPSG:3857')
)
})
);