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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" debug="true">
<head>
<title>uncompressed_local.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico" />
<script type="text/javascript" src="http://api.ign.fr/geoportail/api?v=1.2&key=TA_CLE&includeEngine=false&"></script>
<script type="text/javascript" src="http://api.ign.fr/geoportail/api/js/1.2/Geoportal.js"></script>
<link id="__OpenLayersCss__" rel="stylesheet" type="text/css" href="http://api.ign.fr/geoportail/api/js/1.2/theme/geoportal/style.css"/>
<link id="__GeoportalCss__" rel="stylesheet" type="text/css" href="http://api.ign.fr/geoportail/api/js/1.2/theme/default/style.css"/>
<style type="text/css">
div#footer {
font-size:x-small;
text-align:center;
width:800px;
}
div#footer a, div#footer a:link, div#footer a:visited, div#footer a:hover {
text-decoration:none;
color:black;
}
</style>
</head>
<body onload="initGeoportalMap();">
<div id="GeoportalVisuDiv" style="width:800px;height:600px;"></div>
<script type="text/javascript">
var VISU= null;
if (window.__Geoportal$timer===undefined) {
var __Geoportal$timer= null;
}
// onload event will call myOnLoad :
function initGeoportalMap() {
if (__Geoportal$timer!=null) {
window.clearTimeout(__Geoportal$timer);
__Geoportal$timer= null;
}
if (typeof(OpenLayers)=='undefined' ||
typeof(Geoportal)=='undefined' ||
typeof(Geoportal.Viewer)=='undefined' ||
typeof(Geoportal.Viewer.Default)=='undefined') {
__Geoportal$timer= window.setTimeout('myOnLoad();', 300);
return;
}
// build a new VISU :
VISU= new Geoportal.Viewer.Default( // Default VISU (one could use Geoportal.VISU.Standard)
"GeoportalVisuDiv", // div id where to display dataset
OpenLayers.Util.extend({ // VISU parameters :
mode:'normal',
territory:'GLP',
projection:'IGNF:GEOPORTALANT',
displayProjection:'IGNF:RGF93G',
proxy:'proxy.php?url=',
nameInstance:'VISU'},
gGEOPORTALRIGHTSMANAGEMENT // API configuration with regard to the API key
)
);
if (!VISU) {
alert('failed loading VISU');
return;
}
VISU.addGeoportalLayer('ORTHOIMAGERY.ORTHOPHOTOS:WMSC', {name:'Photo aérienne', visibility:false, opacity: 1});
VISU.addGeoportalLayer('GEOGRAPHICALGRIDSYSTEMS.MAPS:WMSC', {visibility:true, opacity:1});
VISU.getMap().addLayer("KML", "Points-Cliquables", "Points-Cliquables.kml", {
minZoomLevel:0,
maxZoomLevel:20,
originators:[{pictureUrl:'logo.png', url:'http://zoom-guadeloupe.fr/'}],
visibility:true});
VISU.setLayersPanelVisibility(true);
VISU.openLayersPanel(true);
VISU.setToolsPanelVisibility(true);
VISU.openToolsPanel(true);
VISU.getMap().setCenterAtLonLat( -61.505275, 16.246131, 9 );
}
</script>
</body>
</html> |
Partager