1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 800px;
height: 500px;
border: 1px solid black;
}
</style>
<link rel="stylesheet" type="text/css"
href="lib/GeoExt/resources/css/geoext-all.css"></link>
<link rel="stylesheet" type="text/css" href="lib/ext-
3.4.0/resources/css/ext-all.css"></link>
<link rel="stylesheet" type="text/css" href="lib/ext-
3.4.0/resources/css/xtheme-gray.css" /></link>
<s<script src="ext-3.3.1/adapter/ext/ext-base.js" type="text/javascript"></script>
<script src="ext-3.3.1/ext-all.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="ext-3.3.1/resources/ext-all.css"></link>
<script src="http://openlayers.org/api/OpenLayers.js" type="text/javascript"></script>
<script src="GeoExt/lib/GeoExt.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="GeoExt/resources/geoext-all-debug.css"></link>
<script type="text/javascript">
var lon = 6 ;
var lat = 30 ;
var zoom = 5;
function init() {
var epsg4326 = new OpenLayers.Projection("EPSG:4326");
var map = new OpenLayers.Map('map');
// localWMS = new OpenLayers.Layer.WMS( "Tunisia","http://127.0.0.1/cgi-bin/mapserv.exe?map=C:/OSGeo4W/apache/htdocs/MonTP/Carte/QGIS_.map",
// {layers: 'QGIS-MAP', transparent: true}, {singleTile: true, isBaseLayer: true} );
var MYWMS = new OpenLayers.Layer.WMS( "QGIS-MAP", "http://127.0.0.1/cgi-bin/mapserv.exe?map=C:/OSGeo4W/apache/htdocs/MonTP/Appli_stage/postgis.map&",
{layers: 'GOUVERNORAT', transparent: true}, {singleTile: true, isBaseLayer: true} );
map.addLayer(MYWMS);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
map.addControl(new OpenLayers.Control.MousePosition({displayProjection: epsg4326}));
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.OverviewMap());
}
</script>
</head>
<body onload="init()">
<h1 id="title">INS_GEOSTATISTICAL MAP</h1>
<div id="tags">
</div>
<div style="width:80%; height:85%" id="map" class="smallmap" >
</div>
</body>
</html> |
Partager