[OpenLayers-Users] The edges of my map get cut off

Tondo gpktondo at gmail.com
Tue Sep 4 12:35:11 PDT 2012


P.S. I just checked your source - hope you dont mind - there is a lot of
code, seems familiar to me. I suppose you copied from native Geoserver
OpenLayers layer preview, right? You DONT need all that ;) Maybe you could
simply use some WMS examples instead http://openlayers.org/dev/examples/
without setting extent - it should be calculated correctly. Just write
simple function to create map, add those layers and then just display only
layer you want like this:

function setVisible(name) {
map.getLayersByName(name)[0].visibility = true; 
}




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/The-edges-of-my-map-get-cut-off-tp4999122p4999769.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list