Open GoogleCodeExporter opened 9 years ago
Hi,
What is the WMS server and its setup? Can the WMS server return the map in
spherial mercator? Also make sure that the WMS server knows the right "alias"
for it. Some know 900913, some 1002113.
At least getMapWithUsHighWaysOnTopOfWebMercator() and getMapWithCustomStyle()
methods in VolApplication (in project under test directory) does this.
Original comment by matti.ta...@gmail.com
on 11 Jul 2011 at 8:57
Hi,
I found the solution to this problem.
http://stackoverflow.com/questions/5324781/background-layer-in-epsg900913-causes
-wms-overlays-to-fail
The WMS server is GeoServer.
I tried passing the options when creating the OpenLayersMap object but it seems
the options were not being recognized. The problem persisted.
I then hard coded the max extent bounds and it worked.
Attached is the MapOverlay class.
Original comment by john.k.m...@gmail.com
on 22 Jul 2011 at 7:24
Attachments:
Hi,
Couldn't you use the server side API to feed init parameters for the map? Like
this:
myMap.setJsMapOptions("{maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
20037508, 20037508)}");
If there is a lot of use for maxExtent parameter, we could add a better typed
Java API, similar to setRestrictedExtent.
cheers,
matti
Original comment by matti.ta...@gmail.com
on 16 Aug 2011 at 8:27
Original issue reported on code.google.com by
john.k.m...@gmail.com
on 27 Jun 2011 at 2:42