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.
_______________________________________________
Dev mailing list
d...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Reply via email to