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:
8c2cc95
)
Do reprojection.
author
Philipp Spitzer
<philipp@spitzer.priv.at>
Fri, 25 May 2018 21:55:56 +0000
(23:55 +0200)
committer
Philipp Spitzer
<philipp@spitzer.priv.at>
Fri, 25 May 2018 21:55:56 +0000
(23:55 +0200)
wrmap.js
patch
|
blob
|
history
diff --git
a/wrmap.js
b/wrmap.js
index 135ba394305d4a7c940d0b5e340b3eabf6066776..ec39a99aa52babbad00b4fe49322a91557c5d918 100644
(file)
--- a/
wrmap.js
+++ b/
wrmap.js
@@
-48,7
+48,7
@@
function init_wrmap(i, jq_map) {
jq_map.empty(); // once parsed, remove geojson string from the map element.
var json_js = JSON.parse(json_string);
var format_geojson = new ol.format.GeoJSON();
- var features_all = format_geojson.readFeatures(json_js);
+ var features_all = format_geojson.readFeatures(json_js
, {dataProjection: 'EPSG:4326', featureProjection: 'EPSG:3857'}
);
// extract, tranform and split features to layers
/*