Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1720
Line 33... Line 33...
33
    	marker.openInfoWindowHtml(chaine);
33
    	marker.openInfoWindowHtml(chaine);
34
  	});
34
  	});
35
  	return marker;
35
  	return marker;
36
}
36
}
37
function load() {
37
function load() {
38
	if (GBrowserIsCompatible()) {
38
    if (GBrowserIsCompatible()) {
39
	  setWinHW();
39
        setWinHW();
40
	  map = new GMap2(document.getElementById("map"));
40
        map = new GMap2(document.getElementById("map"));
41
	  var geoXml = new GGeoXml("<?='http://.kml';?>");
41
        var geoXml = new GGeoXml("<?='http://.kml';?>");
42
	  
42
  
43
	  map.addControl(new GSmallMapControl());
43
        map.addControl(new GSmallMapControl());
44
	  map.addControl(new GMapTypeControl());
44
        map.addControl(new GMapTypeControl());
45
	  map.addControl(new GScaleControl());
45
        map.addControl(new GScaleControl());
46
	  map.enableContinuousZoom();
46
        map.enableContinuousZoom();
47
	  map.enableScrollWheelZoom();
47
        map.enableScrollWheelZoom();
48
	
48
 
49
	  // On centre la carte
49
        // On centre la carte
50
	  center = new GLatLng(<?=INS_GOOGLE_CENTRE_LAT;?>, <?=INS_GOOGLE_CENTRE_LON;?>);
50
        center = new GLatLng(<?=INS_GOOGLE_CENTRE_LAT;?>, <?=INS_GOOGLE_CENTRE_LON;?>);
51
	  map.setCenter(center, <?=INS_GOOGLE_ALTITUDE;?>);
51
        map.setCenter(center, <?=INS_GOOGLE_ALTITUDE;?>);
52
	   map.setMapType(<?=INS_GOOGLE_TYPE_DE_VUE;?>);
52
        map.setMapType(<?=INS_GOOGLE_TYPE_DE_VUE;?>);
53
	  <?=$script_marker;?>
53
        <?=$script_marker;?>
54
	  map.addOverlay(geoXml);
54
        map.addOverlay(geoXml);
55
	}
55
	}
56
}
56
}
57
57