<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;">De :</span></b> Yannick VOYEAUD <yannick@voyeaud.org><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font size="2" face="Tahoma"><b><span style="font-weight: bold;"></span></b></font><br>Merci à tous de vos réponses! Elles ont toutes été regardées avec <br>bienveillance car toutes faisaient réponses à mon problème. Certaines <br>hélas ne peuvent être mis en œuvre par moi car je suis incompétent <br>techniquement et c'est bien dommage.<br><br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>Je mets à cette adresse le fichier gpx généré grace à Julien THÉVENON.<br><a
 href="http://voyeaud.org/2-19RAC_AD30.gpx" target="_blank"><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>http://voyeaud.org/2-19RAC_AD30.gpx</a><br><br>Il a surtout ete genere grace a <a href="http://map.meurisse.org/">http://map.meurisse.org/</a>  ;-)<br><br><br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>Merci à ceux qui me proposeront un fichier html exploitable. Je ne rfuse <br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>pas de voir le fichier couper en plusieurs morceaux en fonction du <br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>découpage de l'ouvrage lui-même. J'ai déjà un certains nombres de pages <br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;">
 </span></b>faites ici <a href="http://voyeaud.org/Travaux/Livres/19_RAC/19RAC_1.php" target="_blank">http://voyeaud.org/Travaux/Livres/19_RAC/19RAC_1.php</a><br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>Ce travail servira à mettre une version html-php de ce document afin de <br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>prendre moins de place sur le serveur.<br><br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>D'avance merci de votre aide. Si plusieurs solutions me sont proposées <br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>je les regarderais toutes avec attention et je dirais pourquoi mon choix <br><span style="font-weight: bold;">>>>></span><b><span style="font-weight: bold;"> </span></b>de telle
 ou telle proposition.<br><br>J ai repris la page de Julien Balas ( <a href="http://julien.balas.free.fr/openlayer/openlayer.html">http://julien.balas.free.fr/openlayer/openlayer.html</a> ) que j ai légèrement modifiée pour utiliser ton fichier gpx<br>Tu trouveras en pièce jointe la page html et le gpx dans un zip, chez moi en local ca marche...<br><br>Par contre je préviens c est fait a l arrache et c est la premiere fois que je touche a du code Open Layer ;-)<br><br>Julien<br><br>PS : au cas ou la piece jointe ne passerait pas je mets ici l ancien code et le nouveau<br>remplacement de <br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">        var lat=48.120</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">   
     var lon=-1.655</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">        var zoom=13</span><br><br>par <br> <span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">   var lat=43.120</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">        var lon=14.855</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">        var zoom=6</span><br>pour ajuster le zoom et le
 centrage<br><br><br>Remplacement de <br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">var lgpx = new OpenLayers.Layer.GML("Ligne 1", "fic-13.out.gpx", {</span><br>par <br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">var lgpx = new OpenLayers.Layer.GML("trajet", "2-19RAC_AD30.gpx", {</span><br>pour utiliser ton gpx<br><br>Suppression du code creant le calque du 2eme trajet<br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">var lgpx2 = new OpenLayers.Layer.GML("Ligne 2", "fic-01.out.gpx", {</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">      format: OpenLayers.Format.GPX,</span><br style="font-family: Courier
 New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">      style: {strokeColor: "red", strokeWidth: 5, strokeOpacity: 1},</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">      projection: new OpenLayers.Projection("EPSG:4326")</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">});</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><br>Suppession du code ajoutant le 2eme trajet a la carte<br>  <span style="font-family: Courier
 New,courier,monaco,monospace,sans-serif; font-weight: bold;">      map.addLayer(lgpx2);</span><br>        <br>Suppression du code du marqueur        <br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">        var size = new OpenLayers.Size(21,25);</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">        var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span>        var icon = new OpenLayers.Icon('<a
 target="_blank" href="http://www.openstreetmap.org/openlayers/img/marker.png" ,size,offset="">http://www.openstreetmap.org/openlayers/img/marker.png',size,offset</a>);</span></span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;">        layerMarkers.addMarker(new OpenLayers.Marker(lonLat,icon));</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold;"><br><br></div>
</div><br>




      </body></html>