[Users] Is there a workaround to display own basemaps with google maps?
Ian Turton
ijturton at gmail.com
Thu Mar 3 17:59:15 CET 2011
On 3 March 2011 09:42, Charles Galpin <cgalpin at lhsw.com> wrote:
> Robert this is really an openlayers question, but the answer is that you
> don't have to do anything other than configure the map options properly to
> have the displayProjection be EPSG:4326 and the projection EPSG:900913.
> There should be plenty of examples out there of people using maps that let
> you use both google and other base layers (like OSM) on the same map. Here
> is how I do it
Actually that isn't how WMS works with OpenLayers. The requests to the
WMS Server will be made using the map projection (900913) regardless
of how the display projection is set (it just changes the displayed
coordinates) and so has no relevance to Robert's question.
Robert - if you want to make use of Google basemaps at any point in
your script then you are stuck with reprojecting your base maps at
some point - you can either do it once using GDAL or everytime the
client requests a map using GeoServer. One is fast and the other is
pure. Alternatively you could just use your base layer unchanged and
avoid using the Google Base map.
Ian
--
Ian Turton
More information about the Users
mailing list