summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/static/chimere/js/jquery.chimere.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js
index 3f99237..92c149d 100644
--- a/chimere/static/chimere/js/jquery.chimere.js
+++ b/chimere/static/chimere/js/jquery.chimere.js
@@ -3262,6 +3262,11 @@ function transformCoordToLonLat(coord) {
}
},
initFeature: function(wkt_geometry){
+ var map_id = methods.map_id(this);
+ if (!map_id){
+ alert("initFeature - Public method only");
+ return;
+ }
if (!wkt_geometry || wkt_geometry == 'None') return;
var WKT = new ol.format.WKT();
// remove srid description "SRID=1234;GEOM(...)" if present