I solved the problem.
First of all: map.getCenter() didn't return 0.
I'm running OpenLayers in a WebView on Android. To communicate with
OpenLayers, I have a javascript interface. I simply didn't convert the
values of map.getCenter() to integers before calling a function in the
Android javascript interface with them and that was the problem.

Giga



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/map-getCenter-returns-0-tp5011533p5015165.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to