[OpenLayers-Dev] Re: How to reduce BBOX limits sent via an URL to maxExtent limits

Jean-Marie jmtrg at hotmail.fr
Tue Nov 8 08:45:28 EST 2011


Hello

restrictedExtent has no effect on the display limits of the map ;

I inserted an image to show the problem I am facing :

the green rectangle displays the limits of maxExtent parameter that is :
-1139013,  0,  3483953,  5023131

maxExtent  is specified for both the map and the data layers as follows :

	var options = {
			controls:[
				myNavControl,
				new OpenLayers.Control.PanZoomBar()
			],    	
		units: "m",
		minResolution: "auto",
		maxResolution: "auto",
		maxExtent: maxextent,
		minExtent: minextent,
		numZoomLevels: '<?php echo $numZoomLevels; ?>',
		projection: '<?php echo $defaultproj; ?>',
		scales: scaleslist,
		restrictedExtent :maxextent
	}; 
        map = new OpenLayers.Map( 'map', options );

        map.addLayers([LayerFond,LayerData]);

with :
defaultproj=EPSG:27572
scaleslist=[10000000, 5000000, 2500000, 1000000, 500000, 250000, 100000]

others information :
-It is a fullscreen display
-I use mod-geocache to geographic tiles

Jean-marie

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-reduce-BBOX-limits-sent-via-an-URL-to-maxExtent-limits-tp6962080p6974316.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list