ToastFreeware
/
philipp
/
winterrodeln
/
mediawiki_extensions
/
wrmap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa121bb
)
Parsing GeoJSON works now.
author
Philipp Spitzer
<philipp@spitzer.priv.at>
Thu, 24 May 2018 21:17:35 +0000
(23:17 +0200)
committer
Philipp Spitzer
<philipp@spitzer.priv.at>
Thu, 24 May 2018 21:17:35 +0000
(23:17 +0200)
wrmap.js
patch
|
blob
|
history
diff --git
a/wrmap.js
b/wrmap.js
index a3a707bd0daa36ae8cb434e6063aaa256d2e7bcd..5ccc788693244c57bbd0dc6bdf9978626519a3ef 100644
(file)
--- a/
wrmap.js
+++ b/
wrmap.js
@@
-47,8
+47,8
@@
function init_wrmap(i, jq_map) {
var json_string = jq_map.children().last().text();
jq_map.empty(); // once parsed, remove geojson string from the map element.
var json_js = JSON.parse(json_string);
-
// var format_geojson = new OpenLayers.F
ormat.GeoJSON();
-
// var features_all = format_geojson.read
(json_js);
+
var format_geojson = new ol.f
ormat.GeoJSON();
+
var features_all = format_geojson.readFeatures
(json_js);
// extract, tranform and split features to layers
/*