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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>carte_71.1</title><meta name="Keywords" content="pof,escalade, grimpe, bloc, climbing, bouldering, bleau, fontainebleau, massif, circuit, difficulté, cotation, jaune, orange, bleu, rouge, noir, blanc, PD, PD-, PD+, AD, AD-, AD+, D, D-, D+, TD, TD-, TD+, ED, ED-, ED+, 4a, 4b, 4c, 5a, 5b, 5c, 6a, 6b, 6c">
<style type="text/css">
* {font-family: Arial;}
</style>
<script>
function pop1() {
window.open('../cotation/cotation_txt/71.1_bleu_1_TD-.txt', '', 'resizable=yes, location=no, top=100,left=80 width=250, height=400, menubar=no, status=no, scrollbars=yes, menubar=no' );
}
function pop2() {
window.open('../cotation/cotation_txt/71.1_jaune_2_PD.txt', '', 'resizable=yes, location=no, top=100,left=80 width=250, height=400, menubar=no, status=no, scrollbars=yes, menubar=no');
}
</script>
<script type="text/javascript" src="http://api.ign.fr/geoportail/api?v=1.2-e&key=3706815617913648773&instance=viewer">
</script>
<script type="text/javascript">
function initGeoportalMap()
{
geoportalLoadviewer("viewerDiv");
//-------------------------------------------position centrale de la carte
viewer.getMap().setCenterAtLonLat(2.529182, 48.371928, 14);
if (viewer)
{
viewer.addGeoportalLayers(['GEOGRAPHICALGRIDSYSTEMS.MAPS:WMSC'],
{'GEOGRAPHICALGRIDSYSTEMS.MAPS:WMSC':{visibility:true,opacity:0.9}});
//------------------------------------------affichage des couches et des outils
viewer.openLayersPanel(false);
viewer.openToolsPanel(false);
var vector_layer = new OpenLayers.Layer.Vector('departs circuits');
//-----------------------------------------jaune
var localisation = new OpenLayers.Geometry.Point(2.530173, 48.372296);
var sourceproj = OpenLayers.Projection.CRS84;
var destproj = viewer.getMap().getProjection();
localisation.transform(sourceproj, destproj);
var departjaune =
{
externalGraphic:'../cotation/vignettes/travauxjaune.png', graphicWidth:35, graphicHeight:35,fillOpacity: 1,
};
var departjaune = new OpenLayers.Feature.Vector(localisation, null, departjaune);
//----------------------------------------bleu
var localisation = new OpenLayers.Geometry.Point(2.528816, 48.371937);
var sourceproj = OpenLayers.Projection.CRS84;
var destproj = viewer.getMap().getProjection();
localisation.transform(sourceproj, destproj);
var departbleu =
{
externalGraphic:'../cotation/vignettes/travauxbleu.png', graphicWidth:35, graphicHeight:35,fillOpacity: 1,
};
var departbleu = new OpenLayers.Feature.Vector(localisation, null, departbleu);
// On ajoute une info bulle
var localisation = new OpenLayers.Geometry.Point(2.524066, 48.370760);
var sourceproj = OpenLayers.Projection.CRS84;
var destproj = viewer.getMap().getProjection();
localisation.transform(sourceproj, destproj);
var popup = new OpenLayers.Popup('id',
new OpenLayers.LonLat(localisation.x, localisation.y),
new OpenLayers.Size(150,50),
' ',
true) ;
popup.setOpacity(0.9);
popup.setBorder("1px solid");
popup.setBackgroundColor("#287E28");
popup.setContentHTML("<font size='1'><b>71.1 Rocher du Général<br/><a href='#' onClick='pop2()'><font color='yellow'>Jaune N°2 PD <br/></a><a href='#' onClick='pop1()'><font color='blue'>Bleu N°1 TD-</b></></a> ");
//----------------------------------------affichage-couleurs
// affichage des couches à depart circuit
vector_layer.addFeatures([departjaune]);
vector_layer.addFeatures([departbleu]);
viewer.getMap().addLayer(vector_layer);
viewer.getMap().addPopup(popup, true);
}
//-------------------------------------ajout de l'outil d'impression
var nv= viewer.getMap().getControlsByClass('Geoportal.Control.NavToolbar')[0];
nv.addControls([new Geoportal.Control.PrintMap({
header: function() { return ''; },
footer: function() { return ''; },//check this!
epilog: function() { return ''; },
prolog: function() { return ''; },
popupSettings:"menubar=yes"
})]);
}
</script>
</head>
<body>
<p style="margin: 2px;font-size:20px;color:red">3 Pignons 71.1 Rocher du Général</p>
<div id="viewerDiv" style="width:490px;height:385px; cursor: crosshair; "></div>
</body>
</html> |
Partager