Giving the restricted extent some width.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -97,16 +97,15 @@
|
|||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
OpenLayers.ProxyHost = "proxy.cgi?url=";
|
OpenLayers.ProxyHost = "proxy.cgi?url=";
|
||||||
map = new OpenLayers.Map('map', {
|
map = new OpenLayers.Map({
|
||||||
maxResolution: 156543.03390625,
|
div: "map",
|
||||||
|
maxResolution: 156543.0339,
|
||||||
|
maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508),
|
||||||
restrictedExtent: new OpenLayers.Bounds(
|
restrictedExtent: new OpenLayers.Bounds(
|
||||||
-11560239, 5541115, -11560239, 5542338
|
-11563906, 5540550, -11559015, 5542996
|
||||||
),
|
|
||||||
maxExtent: new OpenLayers.Bounds(
|
|
||||||
-2.003750834E7,-2.003750834E7,
|
|
||||||
2.003750834E7,2.003750834E7
|
|
||||||
),
|
),
|
||||||
projection: new OpenLayers.Projection("EPSG:900913"),
|
projection: new OpenLayers.Projection("EPSG:900913"),
|
||||||
|
units: "m",
|
||||||
controls: [
|
controls: [
|
||||||
new OpenLayers.Control.PanZoom()
|
new OpenLayers.Control.PanZoom()
|
||||||
]
|
]
|
||||||
@@ -240,7 +239,7 @@
|
|||||||
|
|
||||||
panel.defaultControl = panel.controls[0];
|
panel.defaultControl = panel.controls[0];
|
||||||
map.addControl(panel);
|
map.addControl(panel);
|
||||||
map.zoomTo(15);
|
map.setCenter(new OpenLayers.LonLat(-11561460.5, 5541773), 15);
|
||||||
}
|
}
|
||||||
|
|
||||||
function flashFeatures(features, index) {
|
function flashFeatures(features, index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user