projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fb42f4
)
osm: be explicit about projection of data
author
Antoine Beaupré
<anarcat@koumbit.org>
Thu, 9 Aug 2012 04:40:17 +0000
(
00:40
-0400)
committer
Antoine Beaupré
<anarcat@koumbit.org>
Sat, 25 Aug 2012 12:20:30 +0000
(08:20 -0400)
underlays/osm/ikiwiki/osm.js
patch
|
blob
|
history
diff --git
a/underlays/osm/ikiwiki/osm.js
b/underlays/osm/ikiwiki/osm.js
index 644d4b57381a045f86e7c88029630c13ee266ba2..388d625f15039aea6734bb782910b8e6b6612135 100644
(file)
--- a/
underlays/osm/ikiwiki/osm.js
+++ b/
underlays/osm/ikiwiki/osm.js
@@
-47,7
+47,7
@@
function mapsetup(divname, options) {
if (options.format == 'CSV') {
pois = new OpenLayers.Layer.Text( "CSV",
{ location: options.csvurl,
if (options.format == 'CSV') {
pois = new OpenLayers.Layer.Text( "CSV",
{ location: options.csvurl,
- projection:
map.displayProjection
+ projection:
new OpenLayers.Projection("EPSG:4326")
});
} else if (options.format == 'GeoJSON') {
pois = new OpenLayers.Layer.Vector("GeoJSON", {
});
} else if (options.format == 'GeoJSON') {
pois = new OpenLayers.Layer.Vector("GeoJSON", {
@@
-55,7
+55,8
@@
function mapsetup(divname, options) {
url: options.jsonurl,
format: new OpenLayers.Format.GeoJSON()
}),
url: options.jsonurl,
format: new OpenLayers.Format.GeoJSON()
}),
- strategies: [new OpenLayers.Strategy.Fixed()]
+ strategies: [new OpenLayers.Strategy.Fixed()],
+ projection: new OpenLayers.Projection("EPSG:4326")
});
} else {
pois = new OpenLayers.Layer.Vector("KML", {
});
} else {
pois = new OpenLayers.Layer.Vector("KML", {
@@
-66,7
+67,9
@@
function mapsetup(divname, options) {
extractAttributes: true
})
}),
extractAttributes: true
})
}),
- strategies: [new OpenLayers.Strategy.Fixed()]});
+ strategies: [new OpenLayers.Strategy.Fixed()],
+ projection: new OpenLayers.Projection("EPSG:4326")
+ });
}
map.addLayer(pois);
select = new OpenLayers.Control.SelectFeature(pois);
}
map.addLayer(pois);
select = new OpenLayers.Control.SelectFeature(pois);