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 238... Line 238...
238
		tileSize: new google.maps.Size(256, 256),
238
		tileSize: new google.maps.Size(256, 256),
239
		isPng: true,
239
		isPng: true,
240
		alt: "OpenStreetMap",
240
		alt: "OpenStreetMap",
241
		name: "OSM",
241
		name: "OSM",
242
		maxZoom: 19
242
		maxZoom: 19
243
	}));';
243
	}));
-
 
244
 
-
 
245
	var mention = \'<div id="origine-donnees">Tuiles : <a href="http://www.openstreetmap.fr" target="_blank">OsmFr</a><br/>\';
-
 
246
    mention += \'Carte : <a href="http://www.openstreetmap.org/copyright" target="_blank">© les contributeurs d\\\'OpenStreetMap</a></div>\';
-
 
247
    $("#map").append(mention);
-
 
248
 
-
 
249
    // ecouteur sur changement de fond
-
 
250
    google.maps.event.addListener( map, \'maptypeid_changed\', function() { 
-
 
251
        if (map.getMapTypeId() == "OSM") {
-
 
252
            $("#origine-donnees").show();
-
 
253
        } else {
-
 
254
            $("#origine-donnees").hide();
-
 
255
        }
-
 
256
    });';
Line 244... Line 257...
244
 
257
 
245
if (BAZ_GOOGLE_FOND_KML != '') {
258
if (BAZ_GOOGLE_FOND_KML != '') {
246
		$script .= 'geoXml = new google.maps.KmlLayer(' . BAZ_GOOGLE_FOND_KML . ');';
259
		$script .= 'geoXml = new google.maps.KmlLayer(' . BAZ_GOOGLE_FOND_KML . ');';