I have a site where I want to have two baselayers options (google & a wms) and an overlay georss layer with markers. My problem is that when all these 3 layers are included, when I switch the base layer to the wms layer , it doesn't show but google layer shows. However if I remove the georss overlay I can switch between the two base layers without any problem. If I remove the google layer, the wms baselayer works well with the georss overlay layer.

I can't figure out what the problem is.

View the site on http://lib.orc.ub.bw/?q=collections/smith/search/results/baobab
It's currently set without the google base layer but only the wms layer.

Comments

jpulles’s picture

Hi Chalee,

Nice to see this site at the UoB; reminds me of my time in Botswana.

The answer to your problem can be found at http://trac.openlayers.org/wiki/FrequentlyAskedQuestions (useful link): "The only way to use vector layers over commercial basemaps is to use the SphericalMercator support in 2.5. This causes the map to be projected to mercator, and once the map is projected, pixels are geographically square, which means you can use a vector layer over them."

In order to show your own wms in the same map as google + georss your wms server needs to support the google projection (EPSG:900913 or see http://trac.openlayers.org/wiki/SphericalMercator).

Regards,
John

chalee’s picture

John

Thanks for the response. My wms are served from ArcGIS server. I will ask the GIS technician if he can set them at project of EPSG:900913. Currently they are set at EPSG:4326.

When are you coming back to Botswana? Last time you were here, were you working or on vacation?

-
Chalee

jpulles’s picture

Status: Active » Closed (fixed)