From 924b77a50fa5cef3ce50c635455ee2a23f8d1289 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 1 Oct 2017 11:49:02 +0200 Subject: jquery.chimere.js: fix public method initFeature --- chimere/static/chimere/js/jquery.chimere.js | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3