[OpenLayers-Users] map.getCenter returns 0

Giga jimderpanse at googlemail.com
Fri Nov 9 06:16:29 PST 2012


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.


More information about the Users mailing list