function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); this.map = map; map.setCenter(new GLatLng(47.219568,2.8125), 6); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); } } function VaSur(lex,ley,lez) { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); this.map = map; map.setCenter(new GLatLng(lex,ley),lez); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); } } function GlisseSur(lex,ley,lez) { map = this.map; map.panTo(new GLatLng(lex,ley)); } function Marqueur(lex,ley) { map = this.map; icone=new GIcon(); icone.image = "./themes/bleu/images/googlogo.png"; icone.shadow = "./themes/bleu/images/googlogo_a.png"; icone.iconSize = new GSize(75, 38); icone.shadowSize = new GSize(75, 38); icone.iconAnchor = new GPoint(0, 38); icone.infoWindowAnchor = new GPoint(26, 1); marqueur=new GMarker(new GLatLng(lex,ley),icone); map.addOverlay(marqueur); } function Coordonnees() { map = this.map; var point = map.getCenter(); coord = point.toString(); coord = coord.replace('(',''); coord = coord.replace(')',''); coord = coord.replace(' ',''); return coord; } function InfoCentre() { map = this.map; var point = map.getCenter(); linfo = map.openInfoWindowHtml(point,document.createTextNode("ICI !")); } function DefMap() { document.getElementById('defmap').value=Coordonnees(); InfoCentre(); } function DefMapKill() { document.getElementById('defmap').value=""; } function SaisiePJ() { document.getElementById('LesPJ').style.padding="5px;"; if(document.getElementById('LesPJ').innerHTML=="") { this.npj=0; document.getElementById('LesPJ').innerHTML+="
"; } function SaisiePJProg() { document.getElementById('LesPJ').style.padding="5px;"; if(document.getElementById('LesPJ').innerHTML=="") { this.npj=0; document.getElementById('LesPJ').innerHTML+="
Intitulé :