Bonjour,

Ma question est toute simple.
Est ce que un connaisseur en Javascript peut me dire si il y à une erreur dans ce code ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<script language="javascript" type="text/javascript">
function load() 
{
		if (GBrowserIsCompatible()) 
		{
			geocoder = new GClientGeocoder();
 
 
 
			var map = new GMap2(document.getElementById("map"));
 
 
			map.addControl(new GLargeMapControl());
 
			map.setCenter(new GLatLng(55.1476, 4.24859), 4,G_SATELLITE_MAP);
			var point = new GLatLng(48,1522290202627,7,06802767609203);
			var projIcon=new GIcon(G_DEFAULT_ICON);
			projIcon.iconSize=new GSize(30,30);
			projIcon.iconAnchor=new GPoint(15,15);
			projIcon.image="http://localhost:1400/images/project.png";
			projIcon.infoWindowAnchor = new GPoint(5, 2);
 
 
			var marker = new GMarker(point,projIcon);
			map.addOverlay(marker);
			marker.bindInfoWindow("blebleble");
			map.setCenter(new GLatLng(55.1476, -4.24859), 4,G_SATELLITE_MAP);
			var point = new GLatLng(43,9082819333318,2,99882935354996);
			var projIcon=new GIcon(G_DEFAULT_ICON);
			projIcon.iconSize=new GSize(30,30);
			projIcon.iconAnchor=new GPoint(15,15);
			projIcon.image="http://localhost:1400/images/project.png";
			projIcon.infoWindowAnchor = new GPoint(5, 2);
 
 
			var marker = new GMarker(point,projIcon);
			map.addOverlay(marker);
			marker.bindInfoWindow("blablaa");
			geocoder.getLatLng("France", function(point) { if (!point) { alert("Error Google Map : Invalid country"); } else { map.setCenter(point,5); } } );
		}
}
</script>
Car il ne fonctionne pas bien du tout. Les icônes ne s'affichent pas et donc je ne peux pas y clicker dessus.

Merci d'avance.