chellymehdi / vopenlayers

Automatically exported from code.google.com/p/vopenlayers
0 stars 0 forks source link

OpenLayersMap zoom and center options not working #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

I am using GoogleStreetMapLayer to generate map. zoom and center properties for 
OpenLayersMap is set as following 
map.setCenter(22.30, 60.452);
map.setZoom(1000); as in example application class in source code.

Still the zoom and center doesnot seem to work. It displays a map as attached 
here in screenshot.Let me know how to zoom it to show a particular city and 
streets instead of whole world map using GoogleStreetMapLayer.I am referring to 
getMapIssue1() method in VolApplication class.

Original issue reported on code.google.com by santoshi...@gmail.com on 4 Apr 2011 at 10:17

Attachments:

GoogleCodeExporter commented 9 years ago
1000 is way too big zoom level. Correct value is somewhere between 1-18 with 
GoogleMaps and OSM.

Original comment by matti.ta...@gmail.com on 4 Apr 2011 at 9:36