I’m displaying Geoserver featuretype layers in a Silverlight VE MapController, using EPSG:900913 which works fine, but evidently needs some tweaking when the Viewport spans the antimeridian -180/180 longitude.
Currently, I’m just breaking the viewport into two separate tiles, one for west of 180 and a second east of -180. On ZoomLevels <= 2.0 this two tile approach doesn’t work. At these zoomLevels the viewport is greater than 360 with the world repeated.
Is there a best practice for wrapping the dateline?
thanks
Randy
Randy George ha scritto:
I’m displaying Geoserver featuretype layers in a Silverlight VE MapController, using EPSG:900913 which works fine, but evidently needs some tweaking when the Viewport spans the antimeridian -180/180 longitude.
Currently, I’m just breaking the viewport into two separate tiles, one for west of 180 and a second east of -180. On ZoomLevels <= 2.0 this two tile approach doesn’t work. At these zoomLevels the viewport is greater than 360 with the world repeated.
Is there a best practice for wrapping the dateline?
Nope, we don't really have support for maps sitting across the dateline.
It would require some restructuring in the rendering code.
Given it's not a common use case, I would advise to look for someone
that is interested in the user case enough to provide a patch for
it, or to sponsor custom development towards that direction.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.