Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var options = {
- controls: [],
- maxExtent: bounds,
- maxResolution: 0.02741796875,
- projection: "EPSG:3857",
- units: 'm'
- };
- map = new OpenLayers.Map('map-id', options);
- var ccounties = new OpenLayers.Layer.WMS(
- "Map - Enschede", "http://localhost:8083/geoserver/thesis/wms",
- {
- srs: 'EPSG:3857',
- layers: 'thesis:Ensche',
- styles: '',
- format:'image/png'
- },
- {singleTile: true, ratio: 1}
- );
- map.addLayer(ccounties);
- // build up all controls
- map.addControl(new OpenLayers.Control.PanZoomBar({
- position: new OpenLayers.Pixel(2, 15)
- }));
- map.addControl(new OpenLayers.Control.Navigation());
- map.addControl(new OpenLayers.Control.Scale());
- map.addControl(new OpenLayers.Control.MousePosition());
- map.zoomToExtent(bounds);
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement