Use map.getLonLatFromPixel instead of map.getLonLatFromViewPortPx

The former is the API method.
This commit is contained in:
Frederic Junod
2012-05-24 14:00:25 +02:00
parent 97983db785
commit 05162a7f9d
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -99,7 +99,7 @@
var pixel = new OpenLayers.Pixel(center.x + x, center.y + y);
var lonLat = map.getLonLatFromViewPortPx(pixel);
var lonLat = map.getLonLatFromPixel(pixel);
features.push(
new OpenLayers.Feature.Vector(
new OpenLayers.Geometry.Point(lonLat.lon, lonLat.lat)