Concise config. No init.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
<script src="../lib/OpenLayers.js"></script>
|
||||
</head>
|
||||
<body onload="init()">
|
||||
<body>
|
||||
<h1 id="title">OpenLayers Spherical Mercator Example</h1>
|
||||
|
||||
<div id="tags">
|
||||
@@ -39,17 +39,14 @@
|
||||
<div id="docs"></div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508),
|
||||
restrictedExtent = maxExtent.clone(),
|
||||
maxResolution = 156543.0339;
|
||||
|
||||
map = new OpenLayers.Map('map', {
|
||||
var map = new OpenLayers.Map({
|
||||
div: "map",
|
||||
projection: new OpenLayers.Projection("EPSG:900913"),
|
||||
displayProjection: new OpenLayers.Projection("EPSG:4326"),
|
||||
units: "m",
|
||||
numZoomLevels: 18,
|
||||
maxResolution: maxResolution,
|
||||
maxExtent: maxExtent
|
||||
maxResolution: 156543.0339,
|
||||
maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508),
|
||||
});
|
||||
|
||||
// create Google Mercator layers
|
||||
|
||||
Reference in New Issue
Block a user