conflicts later on. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2920 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
|
|
<style type="text/css">
|
|
body {
|
|
border: 0px;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
#map {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0px;
|
|
padding: 0px;
|
|
}
|
|
</style>
|
|
|
|
<script src="../lib/OpenLayers.js"></script>
|
|
<script type="text/javascript">
|
|
<!--
|
|
var lat = 900863;
|
|
var lon = 235829;
|
|
var zoom = 6;
|
|
var map, layer;
|
|
|
|
function init(){
|
|
map = new OpenLayers.Map( 'map' );
|
|
var basemap = new OpenLayers.Layer.WMS( "Boston",
|
|
"http://boston.freemap.in/cgi-bin/mapserv?",
|
|
{map: '/www/freemap.in/boston/map/gmaps.map', layers: 'border,water,roads,rapid_transit,buildings', format: 'png', 'transparent': 'off'},
|
|
// These are the important parts for creating a non-epsg:4326
|
|
// map: Maxextent is the boundary of the map/tile loading area,
|
|
// maxResolution is the units/pixel at the highest zoom, and
|
|
// projection is the projection to be used in WMS/WFS Requests.
|
|
{maxExtent: new OpenLayers.Bounds(33861, 717605, 330846, 1019656), maxResolution: 296985/1024, projection:"EPSG:2805" } );
|
|
|
|
map.addLayer(basemap);
|
|
|
|
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
|
|
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
|
}
|
|
// -->
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="init()">
|
|
<div id="map"></div>
|
|
</body>
|
|
</html>
|