Lycées professionnels

[inline]

[script type=”text/javascript” src=”http://maps.googleapis.com/maps/api/js?key=AIzaSyDY3izhHjOn-7jBNOq094dmefE — cr5Tw&sensor=false”][/script]
[script type=”text/javascript” src=”https://ec-berryloiret.fr/Jquerry.js”][/script]

[script type=”text/javascript”]

/************ Paramètrage DDEC *********************/

var onglet=”lycees-pro”; // onglet=ecoles,colleges,lycees,lycees-pro,post-bac

var departement=18; // departement=45

var zoom=8;

var lat=47.0;

var lng=2.6;

var width=600;

var height=400;

/************** fin paramètrage DDEC ***********************/

$(document).ready(function() {

$(‘#map’).css({‘width’:width,’height’:height});

$(‘img’).css({‘border’:0});

$.getJSON(“http://www.enseignement-prive.info/maps?mapInit=?”,{

onglet: onglet,

departement:departement,

format: “json”,
encode:”utf8″

});

});

var image;

var map;

var arrMarkers = [];

var arrInfoWindows = [];

function mapInit(data){

var centerCoord = new google.maps.LatLng(lat,lng);

var mapOptions = {

zoom: zoom,

center: centerCoord,

mapTypeId: google.maps.MapTypeId.ROADMAP

};

map = new google.maps.Map(document.getElementById(“map”),

mapOptions);

var j=0;

$.each(data.places, function(i, item){

var image = item.img;

var marker = new google.maps.Marker({

position: new google.maps.LatLng(item.lat, item.lng),

map: map,

title: item.denomination,

icon:image

});

arrMarkers[i] = marker;

var infowindow = new google.maps.InfoWindow({

content: “

“+ item.title +”

“+ item.description +”

});

arrInfoWindows[i] = infowindow;

google.maps.event.addListener(marker, ‘click’, function() {

if(i!=j){arrInfoWindows[j].close();}

infowindow.open(map, marker);

j=i;

});

});

}

$(function(){

mapInit();

$(“#markers a”).live(“click”, function(){

var i = $(this).attr(“rel”);

arrInfoWindows[i].open(map, arrMarkers[i]);

});

});

[/script]

[/inline]