From 76e9ad15952e277aadb0d4243fce682e1fcd68c6 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 6 Sep 2012 20:13:49 +0200 Subject: [PATCH] swap lon/lat in alert --- html/geomap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/geomap.js b/html/geomap.js index db9abcd..d931b7b 100644 --- a/html/geomap.js +++ b/html/geomap.js @@ -52,7 +52,7 @@ arrayOSM = ["http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg", d3.selectAll("#gpsbutton").on("click", function() { function clickhandler(e) { var lonlat = map.getLonLatFromViewPortPx(e.xy).transform(map.getProjectionObject(), new OpenLayers.Projection("EPSG:4326")) - alert(lonlat.lon + " " + lonlat.lat) + alert(lonlat.lat + " " + lonlat.lon) map.events.unregister("click", map, clickhandler) } var clickevent = map.events.register("click", map, clickhandler)