aboutsummaryrefslogtreecommitdiff
path: root/underlays/osm
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2012-08-09 00:40:17 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2012-08-25 08:20:30 -0400
commitb57cad3131218c7d1a027a60c71ede74f0f14829 (patch)
tree28c3dab489256e966c9262e5df3146682a2415ec /underlays/osm
parent8fb42f42f495095ca32a569401df21f089f0e40c (diff)
downloadikiwiki-b57cad3131218c7d1a027a60c71ede74f0f14829.tar
ikiwiki-b57cad3131218c7d1a027a60c71ede74f0f14829.tar.gz
osm: be explicit about projection of data
Diffstat (limited to 'underlays/osm')
-rw-r--r--underlays/osm/ikiwiki/osm.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/underlays/osm/ikiwiki/osm.js b/underlays/osm/ikiwiki/osm.js
index 644d4b573..388d625f1 100644
--- 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,
- projection: map.displayProjection
+ projection: new OpenLayers.Projection("EPSG:4326")
});
} 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()
}),
- strategies: [new OpenLayers.Strategy.Fixed()]
+ strategies: [new OpenLayers.Strategy.Fixed()],
+ projection: new OpenLayers.Projection("EPSG:4326")
});
} else {
pois = new OpenLayers.Layer.Vector("KML", {
@@ -66,7 +67,9 @@ function mapsetup(divname, options) {
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);