[OpenLayers-Users] base layers with different projection in the same map
Sergeant_york
electronicpanda at gmail.com
Wed Nov 7 02:01:40 PST 2012
Hello there,
I have some base layers which has EPSG:900913, when I change base map from
one to another there is no problem.
But, there is one more layer as WMS which is from another parallel universe
and it is using EPSG:4326. (Service is providing only wms with EPSG:4326)
The problem is when I add this new wms layer as base layer with
map.addLayer(x) function then when I try to change baseLayer to x with
map.setBaseLayer(x), it doesn't happen. Honestly I was expecting this.
I searched all the sources and previous posts.
I found some info about, using two different projection in base maps. It
says I should change map's properties etc. The source is here:
http://www.geoext.org/pipermail/users/2011-June/002310.html
I did it at some rate;
However I have many wms layers as well as many controls that works with
EPSG:900913.
Is there a way like "map.changeProjection()" method to change added wms
layers' projections from one to another? Or any other option to use 2 base
layers with 2 different projection codes? Otherwise I will be forced to
rewrite same application for EPSG:4326 again and restart everything up to
new projection code.
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/base-layers-with-different-projection-in-the-same-map-tp5014503.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list