Subversion Repositories Applications.bazar

Rev

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

Rev 479 Rev 490
Line 82... Line 82...
82
 			alt: "OpenStreetMap",
82
 			alt: "OpenStreetMap",
83
 			name: "OSM",
83
 			name: "OSM",
84
			maxZoom: 19
84
			maxZoom: 19
85
		}));
85
		}));
Line -... Line 86...
-
 
86
 
-
 
87
		var mention = \'<div id="origine-donnees">Tuiles : <a href="http://www.openstreetmap.fr" target="_blank">OsmFr</a><br/>\';
-
 
88
		mention += \'Carte : <a href="http://www.openstreetmap.org/copyright" target="_blank">© les contributeurs d\\\'OpenStreetMap</a></div>\';
-
 
89
		$("#map").append(mention);
-
 
90
	
-
 
91
		// ecouteur sur changement de fond
-
 
92
		google.maps.event.addListener( map, \'maptypeid_changed\', function() { 
-
 
93
			if (map.getMapTypeId() == "OSM") {
-
 
94
				$("#origine-donnees").show();
-
 
95
			} else {
-
 
96
				$("#origine-donnees").hide();
-
 
97
			}
-
 
98
		});
86
 
99
 
87
	    google.maps.event.addListener(map, "click", function(event) {
100
	    google.maps.event.addListener(map, "click", function(event) {
88
			if (marker != null) {
101
			if (marker != null) {
89
				marker.setMap(null);
102
				marker.setMap(null);
90
				marker = null;
103
				marker = null;