var map, featureList;
var AffidoAreeVerdiSearch = [];
var maddalena52Search = [];
var LetDirittiAlCentroSearch = [];
var RunToGETherSearch = [];
var terremuoviamociSearch = [];
var lavoriamoPerBeneScuolaSearch = [];
var unarotondasulrighiSearch = [];
var riposamammaSearch = [];
var creagiocoSearch = [];
var varcaerelasogliaSearch = [];
var EsprimiamociConIlTeatroSearch = [];
var LaComunitàItaloCapoverdianaSiIncontraSearch = [];
var attivitaLetSearch = [];
var giochiamociIlQuartiereSearch = [];
var madlabSearch = [];
var miglioramentiScolasticiSearch = [];
var promozioneDellaLetturaSearch = [];
var LaboratoriDidatticiLoImparoCosiSearch = [];
var ServizioDiSegretariatoSocialeConsulenzeSearch = [];
var LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoSearch = [];
var LABORATORIODICUCITOGRATUITOSearch = [];
var I_liberiCittadiniDellaMaddalenaSiIncontranoSearch = [];
var aperitivoLetterarioSearch = [];
var FotografiaDigitalePerTuttiSearch = [];
var IlBenessereConLaPraticaShiatzuSearch = [];
var FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIESearch = [];
var festaMultietnicaSearch = [];
var PiccoloCoroLollipopSearch = [];
var SessioniYogaGratuitaSearch = [];
var Impariamo_la_musicaSearch = [];
var SostegnoAttivitaFormativaScuolaDonMilaniSearch = [];
var LaboratoriDiLinguaItalianaSearch = [];
var LaComunitaGhaneseSiIncontraSearch = [];
var IlConsolatoBrasilianoDiMilanoSearch = [];
var AttivitaCulturaMarocchinaSearch = [];
var ConosciamoLaCulturaGiapponeseSearch = [];
var CorsiDiLingueGratuiteAlfabetizzazioneMigrantiSearch = [];
var DivertirciConIlTeatroSearch = [];
var DropInAttivitaSocialeSearch = [];
var Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiSearch = [];
var GiroDelMondoInVillaPiaggioSearch = [];
var DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleSearch = [];
var Divulgazione_e_ConoscenzadellaDanzaPopolareSearch = [];
var DivulgazioneDelCantoDiTradizionePopolareOraleSearch = [];
var DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARESearch = [];
var ConoscereLaCulturaPolaccaSearch = [];
var AlfabetizzazioneLinguaItalianaSearch = [];
var AttivitaDellaComunitaFilippinaSearch = [];
var PerUnaVitaSanaEdAttivaSearch = [];
var PresentazioneLibriSearch = [];
var AlfabetizzazioneRichiedentiAsiloSearch = [];
var SaveTheWorldSearch = [];
var YogaDellaRisataSearch = [];
var SCUOLA_PER_PATENTE_NAUTICASearch = [];
var SPORTELLO_ASCOLTO_DONNE_MAROCCHINESearch = [];
var SportelloInteretnicoSearch = [];
var SPORTELLO_ANTIVIOLENZASearch = [];
var NuoviViciniSearch = [];
var PromuovereLaConoscenzaStimolareLaCuriositàSearch = [];
var officinagiocattoloSearch = [];
var settimanariduzionerifiutiSearch = [];
$(window).resize(function() {
sizeLayerControl();
});
$(document).on("click", ".feature-row", function(e) {
$(document).off("mouseout", ".feature-row", clearHighlight);
sidebarClick(parseInt($(this).attr("id"), 10));
});
if ( !("ontouchstart" in window) ) {
$(document).on("mouseover", ".feature-row", function(e) {
highlight.clearLayers().addLayer(L.circleMarker([$(this).attr("lat"), $(this).attr("lng")], highlightStyle));
});
}
$(document).on("mouseout", ".feature-row", clearHighlight);
$("#about-btn").click(function() {
$("#aboutModal").modal("show");
$(".navbar-collapse.in").collapse("hide");
return false;
});
/*
$("#full-extent-btn").click(function() {
map.fitBounds(singola.getBounds());
$(".navbar-collapse.in").collapse("hide");
return false;
});
*/
$("#legend-btn").click(function() {
$("#legendModal").modal("show");
$(".navbar-collapse.in").collapse("hide");
return false;
});
$("#login-btn").click(function() {
$("#loginModal").modal("show");
$(".navbar-collapse.in").collapse("hide");
return false;
});
$("#list-btn").click(function() {
animateSidebar();
return false;
});
$("#nav-btn").click(function() {
$(".navbar-collapse").collapse("toggle");
return false;
});
$("#sidebar-toggle-btn").click(function() {
animateSidebar();
return false;
});
$("#sidebar-hide-btn").click(function() {
animateSidebar();
return false;
});
function animateSidebar() {
$("#sidebar").animate({
width: "toggle"
}, 350, function() {
map.invalidateSize();
});
}
function sizeLayerControl() {
$(".leaflet-control-layers").css("max-height", $("#map").height() - 50);
}
function clearHighlight() {
highlight.clearLayers();
}
function sidebarClick(id) {
var layer = markerClusters.getLayer(id);
map.setView([layer.getLatLng().lat, layer.getLatLng().lng], 17);
layer.fire("click");
/* Hide sidebar and go to the map on small screens */
if (document.body.clientWidth <= 767) {
$("#sidebar").hide();
map.invalidateSize();
}
}
function syncSidebar() {
/* Empty sidebar features */
$("#feature-list tbody").empty();
/* Loop through theaters layer and add only features which are in the map bounds */
AffidoAreeVerdi.eachLayer(function (layer) {
if (map.hasLayer(AffidoAreeVerdiLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
maddalena52.eachLayer(function (layer) {
if (map.hasLayer(maddalena52Layer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
LetDirittiAlCentro.eachLayer(function (layer) {
if (map.hasLayer(LetDirittiAlCentroLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
RunToGETher.eachLayer(function (layer) {
if (map.hasLayer(RunToGETherLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
terremuoviamoci.eachLayer(function (layer) {
if (map.hasLayer(terremuoviamociLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
lavoriamoPerBeneScuola.eachLayer(function (layer) {
if (map.hasLayer(lavoriamoPerBeneScuolaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
unarotondasulrighi.eachLayer(function (layer) {
if (map.hasLayer(unarotondasulrighiLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
riposamamma.eachLayer(function (layer) {
if (map.hasLayer(riposamammaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
creagioco.eachLayer(function (layer) {
if (map.hasLayer(creagiocoLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
varcaerelasoglia.eachLayer(function (layer) {
if (map.hasLayer(varcaerelasogliaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
EsprimiamociConIlTeatro.eachLayer(function (layer) {
if (map.hasLayer(EsprimiamociConIlTeatroLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
LaComunitàItaloCapoverdianaSiIncontra.eachLayer(function (layer) {
if (map.hasLayer(LaComunitàItaloCapoverdianaSiIncontraLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
attivitaLet.eachLayer(function (layer) {
if (map.hasLayer(attivitaLetLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
giochiamociIlQuartiere.eachLayer(function (layer) {
if (map.hasLayer(giochiamociIlQuartiereLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
madlab.eachLayer(function (layer) {
if (map.hasLayer(madlabLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
miglioramentiScolastici.eachLayer(function (layer) {
if (map.hasLayer(miglioramentiScolasticiLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
promozioneDellaLettura.eachLayer(function (layer) {
if (map.hasLayer(promozioneDellaLetturaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
LaboratoriDidatticiLoImparoCosi.eachLayer(function (layer) {
if (map.hasLayer(LaboratoriDidatticiLoImparoCosiLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
ServizioDiSegretariatoSocialeConsulenze.eachLayer(function (layer) {
if (map.hasLayer(ServizioDiSegretariatoSocialeConsulenzeLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo.eachLayer(function (layer) {
if (map.hasLayer(LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
LABORATORIODICUCITOGRATUITO.eachLayer(function (layer) {
if (map.hasLayer(LABORATORIODICUCITOGRATUITOLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
I_liberiCittadiniDellaMaddalenaSiIncontrano.eachLayer(function (layer) {
if (map.hasLayer(I_liberiCittadiniDellaMaddalenaSiIncontranoLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
aperitivoLetterario.eachLayer(function (layer) {
if (map.hasLayer(aperitivoLetterarioLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
FotografiaDigitalePerTutti.eachLayer(function (layer) {
if (map.hasLayer(FotografiaDigitalePerTuttiLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
IlBenessereConLaPraticaShiatzu.eachLayer(function (layer) {
if (map.hasLayer(IlBenessereConLaPraticaShiatzuLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE.eachLayer(function (layer) {
if (map.hasLayer(FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIELayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
festaMultietnica.eachLayer(function (layer) {
if (map.hasLayer(festaMultietnicaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
PiccoloCoroLollipop.eachLayer(function (layer) {
if (map.hasLayer(PiccoloCoroLollipopLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
SessioniYogaGratuita.eachLayer(function (layer) {
if (map.hasLayer(SessioniYogaGratuitaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
Impariamo_la_musica.eachLayer(function (layer) {
if (map.hasLayer(Impariamo_la_musicaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
SostegnoAttivitaFormativaScuolaDonMilani.eachLayer(function (layer) {
if (map.hasLayer(SostegnoAttivitaFormativaScuolaDonMilaniLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
LaboratoriDiLinguaItaliana.eachLayer(function (layer) {
if (map.hasLayer(LaboratoriDiLinguaItalianaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
LaComunitaGhaneseSiIncontra.eachLayer(function (layer) {
if (map.hasLayer(LaComunitaGhaneseSiIncontraLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
IlConsolatoBrasilianoDiMilano.eachLayer(function (layer) {
if (map.hasLayer(IlConsolatoBrasilianoDiMilanoLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
AttivitaCulturaMarocchina.eachLayer(function (layer) {
if (map.hasLayer(AttivitaCulturaMarocchinaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
ConosciamoLaCulturaGiapponese.eachLayer(function (layer) {
if (map.hasLayer(ConosciamoLaCulturaGiapponeseLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
CorsiDiLingueGratuiteAlfabetizzazioneMigranti.eachLayer(function (layer) {
if (map.hasLayer(CorsiDiLingueGratuiteAlfabetizzazioneMigrantiLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
DivertirciConIlTeatro.eachLayer(function (layer) {
if (map.hasLayer(DivertirciConIlTeatroLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
DropInAttivitaSociale.eachLayer(function (layer) {
if (map.hasLayer(DropInAttivitaSocialeLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti.eachLayer(function (layer) {
if (map.hasLayer(Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
GiroDelMondoInVillaPiaggio.eachLayer(function (layer) {
if (map.hasLayer(GiroDelMondoInVillaPiaggioLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale.eachLayer(function (layer) {
if (map.hasLayer(DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
Divulgazione_e_ConoscenzadellaDanzaPopolare.eachLayer(function (layer) {
if (map.hasLayer(Divulgazione_e_ConoscenzadellaDanzaPopolareLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
DivulgazioneDelCantoDiTradizionePopolareOrale.eachLayer(function (layer) {
if (map.hasLayer(DivulgazioneDelCantoDiTradizionePopolareOraleLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE.eachLayer(function (layer) {
if (map.hasLayer(DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARELayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
ConoscereLaCulturaPolacca.eachLayer(function (layer) {
if (map.hasLayer(ConoscereLaCulturaPolaccaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
AlfabetizzazioneLinguaItaliana.eachLayer(function (layer) {
if (map.hasLayer(AlfabetizzazioneLinguaItalianaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
AttivitaDellaComunitaFilippina.eachLayer(function (layer) {
if (map.hasLayer(AttivitaDellaComunitaFilippinaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
PerUnaVitaSanaEdAttiva.eachLayer(function (layer) {
if (map.hasLayer(PerUnaVitaSanaEdAttivaLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
PresentazioneLibri.eachLayer(function (layer) {
if (map.hasLayer(PresentazioneLibriLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
AlfabetizzazioneRichiedentiAsilo.eachLayer(function (layer) {
if (map.hasLayer(AlfabetizzazioneRichiedentiAsiloLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
SaveTheWorld.eachLayer(function (layer) {
if (map.hasLayer(SaveTheWorldLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
YogaDellaRisata.eachLayer(function (layer) {
if (map.hasLayer(YogaDellaRisataLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
SCUOLA_PER_PATENTE_NAUTICA.eachLayer(function (layer) {
if (map.hasLayer(SCUOLA_PER_PATENTE_NAUTICALayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
SPORTELLO_ASCOLTO_DONNE_MAROCCHINE.eachLayer(function (layer) {
if (map.hasLayer(SPORTELLO_ASCOLTO_DONNE_MAROCCHINELayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
SportelloInteretnico.eachLayer(function (layer) {
if (map.hasLayer(SportelloInteretnicoLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
SPORTELLO_ANTIVIOLENZA.eachLayer(function (layer) {
if (map.hasLayer(SPORTELLO_ANTIVIOLENZALayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
NuoviVicini.eachLayer(function (layer) {
if (map.hasLayer(NuoviViciniLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
PromuovereLaConoscenzaStimolareLaCuriosità.eachLayer(function (layer) {
if (map.hasLayer(PromuovereLaConoscenzaStimolareLaCuriositàLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
officinagiocattolo.eachLayer(function (layer) {
if (map.hasLayer(officinagiocattoloLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Loop through theaters layer and add only features which are in the map bounds */
settimanariduzionerifiuti.eachLayer(function (layer) {
if (map.hasLayer(settimanariduzionerifiutiLayer)) {
if (map.getBounds().contains(layer.getLatLng())) {
var appendString = '
 |
';
appendString +=layer.feature.properties.nome + ' |
|
'
$("#feature-list tbody").append(appendString);
}
}
});
/* Update list.js featureList */
featureList = new List("features", {
valueNames: ["feature-name"]
});
featureList.sort("feature-name", {
order: "asc"
});
}
/* basemap */
var osmBaseMap = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap © CartoDB',
subdomains: 'abcd',
maxZoom: 19
});
/*
var osmBaseMap = L.tileLayer("http://{s}.tile.osm.org/{z}/{x}/{y}.png", {
maxZoom: 19,
attribution: '© OpenStreetMap contributors'
});
*/
var highlight = L.geoJson(null);
var highlightStyle = {
stroke: false,
fillColor: "#00FFFF",
fillOpacity: 0.7,
radius: 10
};
/* Single marker cluster layer to hold all clusters */
var markerClusters = new L.MarkerClusterGroup({
spiderfyOnMaxZoom: true,
showCoverageOnHover: false,
zoomToBoundsOnClick: true,
disableClusteringAtZoom: 16
});
/* geojson layer configuration */
var AffidoAreeVerdiLayer = L.geoJson(null);
var AffidoAreeVerdi = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Affido_aree_verdi.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
AffidoAreeVerdiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "Affido_aree_verdi",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/curaepresidio/Affido_aree_verdi.geojson", function (data) {
AffidoAreeVerdi.addData(data);
map.addLayer(AffidoAreeVerdiLayer);
});
var maddalena52Layer = L.geoJson(null);
var maddalena52 = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/maddalena52.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
maddalena52Search.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "maddalena52",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/legalitaediritti/maddalena52.geojson", function (data) {
maddalena52.addData(data);
map.addLayer(maddalena52Layer);
});
var LetDirittiAlCentroLayer = L.geoJson(null);
var LetDirittiAlCentro = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/LetDirittiAlCentro.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
LetDirittiAlCentroSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "LetDirittiAlCentro",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/curaepresidio/LetDirittiAlCentro.geojson", function (data) {
LetDirittiAlCentro.addData(data);
map.addLayer(LetDirittiAlCentroLayer);
});
var RunToGETherLayer = L.geoJson(null);
var RunToGETher = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Run_ToGETher.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
RunToGETherSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "RunToGETher",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitasanitarie/Run_ToGETher.geojson", function (data) {
RunToGETher.addData(data);
map.addLayer(RunToGETherLayer);
});
var terremuoviamociLayer = L.geoJson(null);
var terremuoviamoci = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/terremuoviamoci.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
terremuoviamociSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "terremuoviamoci",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitasanitarie/terremuoviamoci.geojson", function (data) {
terremuoviamoci.addData(data);
map.addLayer(terremuoviamociLayer);
});
var lavoriamoPerBeneScuolaLayer = L.geoJson(null);
var lavoriamoPerBeneScuola = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/lavoriamoPerBeneScuola.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
lavoriamoPerBeneScuolaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "lavoriamoPerBeneScuola",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/lavoriamoPerBeneScuola.geojson", function (data) {
lavoriamoPerBeneScuola.addData(data);
map.addLayer(lavoriamoPerBeneScuolaLayer);
});
var unarotondasulrighiLayer = L.geoJson(null);
var unarotondasulrighi = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/unarotondasulrighi.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
unarotondasulrighiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "unarotondasulrighi",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/unarotondasulrighi.geojson", function (data) {
unarotondasulrighi.addData(data);
map.addLayer(unarotondasulrighiLayer);
});
var riposamammaLayer = L.geoJson(null);
var riposamamma = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/riposamamma.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
riposamammaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "riposamamma",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitasanitarie/riposamamma.geojson", function (data) {
riposamamma.addData(data);
map.addLayer(riposamammaLayer);
});
var creagiocoLayer = L.geoJson(null);
var creagioco = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/creagioco.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
creagiocoSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "creagioco",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/creagioco.geojson", function (data) {
creagioco.addData(data);
map.addLayer(creagiocoLayer);
});
var varcaerelasogliaLayer = L.geoJson(null);
var varcaerelasoglia = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/varcaerelasoglia.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
varcaerelasogliaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "varcaerelasoglia",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/varcaerelasoglia.geojson", function (data) {
varcaerelasoglia.addData(data);
map.addLayer(varcaerelasogliaLayer);
});
var EsprimiamociConIlTeatroLayer = L.geoJson(null);
var EsprimiamociConIlTeatro = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Esprimiamoci_con_il_teatro.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
EsprimiamociConIlTeatroSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "EsprimiamociConIlTeatro",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Esprimiamoci_con_il_teatro.geojson", function (data) {
EsprimiamociConIlTeatro.addData(data);
map.addLayer(EsprimiamociConIlTeatroLayer);
});
var LaComunitàItaloCapoverdianaSiIncontraLayer = L.geoJson(null);
var LaComunitàItaloCapoverdianaSiIncontra = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/La_Comunita_Italo_Capoverdiana_si_incontra.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
LaComunitàItaloCapoverdianaSiIncontraSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "LaComunitàItaloCapoverdianaSiIncontra",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/La_Comunita_Italo_Capoverdiana_si_incontra.geojson", function (data) {
LaComunitàItaloCapoverdianaSiIncontra.addData(data);
map.addLayer(LaComunitàItaloCapoverdianaSiIncontraLayer);
});
var attivitaLetLayer = L.geoJson(null);
var attivitaLet = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/attivitaLet.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
attivitaLetSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "attivitaLet",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/attivitaLet.geojson", function (data) {
attivitaLet.addData(data);
map.addLayer(attivitaLetLayer);
});
var giochiamociIlQuartiereLayer = L.geoJson(null);
var giochiamociIlQuartiere = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/giochiamociIlQuartiere.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
giochiamociIlQuartiereSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "giochiamociIlQuartiere",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/giochiamociIlQuartiere.geojson", function (data) {
giochiamociIlQuartiere.addData(data);
map.addLayer(giochiamociIlQuartiereLayer);
});
var madlabLayer = L.geoJson(null);
var madlab = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/madlab.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
madlabSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "madlab",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/madlab.geojson", function (data) {
madlab.addData(data);
map.addLayer(madlabLayer);
});
var miglioramentiScolasticiLayer = L.geoJson(null);
var miglioramentiScolastici = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/miglioramentiScolastici.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
miglioramentiScolasticiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "miglioramentiScolastici",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/curaepresidio/miglioramentiScolastici.geojson", function (data) {
miglioramentiScolastici.addData(data);
map.addLayer(miglioramentiScolasticiLayer);
});
var promozioneDellaLetturaLayer = L.geoJson(null);
var promozioneDellaLettura = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/promozioneDellaLettura.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
promozioneDellaLetturaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "promozioneDellaLettura",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/promozioneDellaLettura.geojson", function (data) {
promozioneDellaLettura.addData(data);
map.addLayer(promozioneDellaLetturaLayer);
});
var LaboratoriDidatticiLoImparoCosiLayer = L.geoJson(null);
var LaboratoriDidatticiLoImparoCosi = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/LaboratoriDidatticiLoImparoCosi.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
LaboratoriDidatticiLoImparoCosiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "LaboratoriDidatticiLoImparoCosi",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/LaboratoriDidatticiLoImparoCosi.geojson", function (data) {
LaboratoriDidatticiLoImparoCosi.addData(data);
map.addLayer(LaboratoriDidatticiLoImparoCosiLayer);
});
var ServizioDiSegretariatoSocialeConsulenzeLayer = L.geoJson(null);
var ServizioDiSegretariatoSocialeConsulenze = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Servizio_di_Segretariato_Sociale_e_consulenze.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
ServizioDiSegretariatoSocialeConsulenzeSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "ServizioDiSegretariatoSocialeConsulenze",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitasanitarie/Servizio_di_Segretariato_Sociale_e_consulenze.geojson", function (data) {
ServizioDiSegretariatoSocialeConsulenze.addData(data);
map.addLayer(ServizioDiSegretariatoSocialeConsulenzeLayer);
});
var LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoLayer = L.geoJson(null);
var LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Laboratori_di_canto_e_musica_per_i_bambini_della_scuola_elementare_Daneo.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Laboratori_di_canto_e_musica_per_i_bambini_della_scuola_elementare_Daneo.geojson", function (data) {
LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo.addData(data);
map.addLayer(LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoLayer);
});
var LABORATORIODICUCITOGRATUITOLayer = L.geoJson(null);
var LABORATORIODICUCITOGRATUITO = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/LABORATORIO_DI_CUCITO_GRATUITO.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
LABORATORIODICUCITOGRATUITOSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "LABORATORIODICUCITOGRATUITO",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/LABORATORIO_DI_CUCITO_GRATUITO.geojson", function (data) {
LABORATORIODICUCITOGRATUITO.addData(data);
map.addLayer(LABORATORIODICUCITOGRATUITOLayer);
});
var I_liberiCittadiniDellaMaddalenaSiIncontranoLayer = L.geoJson(null);
var I_liberiCittadiniDellaMaddalenaSiIncontrano = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/I_liberi_Cittadini_della_Maddalena_si_incontrano.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
I_liberiCittadiniDellaMaddalenaSiIncontranoSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "I_liberiCittadiniDellaMaddalenaSiIncontrano",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/I_liberi_Cittadini_della_Maddalena_si_incontrano.geojson", function (data) {
I_liberiCittadiniDellaMaddalenaSiIncontrano.addData(data);
map.addLayer(I_liberiCittadiniDellaMaddalenaSiIncontranoLayer);
});
var aperitivoLetterarioLayer = L.geoJson(null);
var aperitivoLetterario = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/aperitivoLetterario.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
aperitivoLetterarioSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "aperitivoLetterario",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/aperitivoLetterario.geojson", function (data) {
aperitivoLetterario.addData(data);
map.addLayer(aperitivoLetterarioLayer);
});
var FotografiaDigitalePerTuttiLayer = L.geoJson(null);
var FotografiaDigitalePerTutti = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Fotografia_digitale_per_tutti.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
FotografiaDigitalePerTuttiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "FotografiaDigitalePerTutti",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Fotografia_digitale_per_tutti.geojson", function (data) {
FotografiaDigitalePerTutti.addData(data);
map.addLayer(FotografiaDigitalePerTuttiLayer);
});
var IlBenessereConLaPraticaShiatzuLayer = L.geoJson(null);
var IlBenessereConLaPraticaShiatzu = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Il_benessere_con_la_pratica_Shiatzu.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
IlBenessereConLaPraticaShiatzuSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "IlBenessereConLaPraticaShiatzu",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Il_benessere_con_la_pratica_Shiatzu.geojson", function (data) {
IlBenessereConLaPraticaShiatzu.addData(data);
map.addLayer(IlBenessereConLaPraticaShiatzuLayer);
});
var FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIELayer = L.geoJson(null);
var FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIESearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE.geojson", function (data) {
FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE.addData(data);
map.addLayer(FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIELayer);
});
var festaMultietnicaLayer = L.geoJson(null);
var festaMultietnica = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/festaMultietnica.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
festaMultietnicaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "festaMultietnica",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/legalitaediritti/festaMultietnica.geojson", function (data) {
festaMultietnica.addData(data);
map.addLayer(festaMultietnicaLayer);
});
var PiccoloCoroLollipopLayer = L.geoJson(null);
var PiccoloCoroLollipop = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/PiccoloCoroLollipop.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
PiccoloCoroLollipopSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "PiccoloCoroLollipop",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaformazione/PiccoloCoroLollipop.geojson", function (data) {
PiccoloCoroLollipop.addData(data);
map.addLayer(PiccoloCoroLollipopLayer);
});
var SessioniYogaGratuitaLayer = L.geoJson(null);
var SessioniYogaGratuita = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/SessioniDiYogaGratuitaPerTutti.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
SessioniYogaGratuitaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "SessioniYogaGratuita",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Sessioni_di_Yoga_gratuita_per_tutti.geojson", function (data) {
SessioniYogaGratuita.addData(data);
map.addLayer(SessioniYogaGratuitaLayer);
});
var Impariamo_la_musicaLayer = L.geoJson(null);
var Impariamo_la_musica = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Impariamo_la_musica.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
Impariamo_la_musicaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "ImpariamoLaMusica",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Impariamo_la_musica.geojson", function (data) {
Impariamo_la_musica.addData(data);
map.addLayer(Impariamo_la_musicaLayer);
});
var SostegnoAttivitaFormativaScuolaDonMilaniLayer = L.geoJson(null);
var SostegnoAttivitaFormativaScuolaDonMilani = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Sostegno_all_attivita_formativa_scuola_Don_Milani.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
SostegnoAttivitaFormativaScuolaDonMilaniSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "SostegnoAttivitaFormativaScuolaDonMilani",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Sostegno_all_attivita_formativa_scuola_Don_Milani.geojson", function (data) {
SostegnoAttivitaFormativaScuolaDonMilani.addData(data);
map.addLayer(SostegnoAttivitaFormativaScuolaDonMilaniLayer);
});
var LaboratoriDiLinguaItalianaLayer = L.geoJson(null);
var LaboratoriDiLinguaItaliana = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Laboratori_di_lingua_italiana.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
LaboratoriDiLinguaItalianaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "LaboratoriDiLinguaItaliana",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Laboratori_di_lingua_italiana.geojson", function (data) {
LaboratoriDiLinguaItaliana.addData(data);
map.addLayer(LaboratoriDiLinguaItalianaLayer);
});
var LaComunitaGhaneseSiIncontraLayer = L.geoJson(null);
var LaComunitaGhaneseSiIncontra = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/La_Comunita_Ghanese_si_incontra.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
LaComunitaGhaneseSiIncontraSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "LaComunitaGhaneseSiIncontra",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/La_Comunita_Ghanese_si_incontra.geojson", function (data) {
LaComunitaGhaneseSiIncontra.addData(data);
map.addLayer(LaComunitaGhaneseSiIncontraLayer);
});
var IlConsolatoBrasilianoDiMilanoLayer = L.geoJson(null);
var IlConsolatoBrasilianoDiMilano = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Il_consolato_Brasiliano_di_Milano.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
IlConsolatoBrasilianoDiMilanoSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "IlConsolatoBrasilianoDiMilano",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Il_consolato_Brasiliano_di_Milano.geojson", function (data) {
IlConsolatoBrasilianoDiMilano.addData(data);
map.addLayer(IlConsolatoBrasilianoDiMilanoLayer);
});
var AttivitaCulturaMarocchinaLayer = L.geoJson(null);
var AttivitaCulturaMarocchina = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/AttivitaCulturaMarocchina.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
AttivitaCulturaMarocchinaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "AttivitàCulturaMarocchina",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Attivita_Cultura_Marocchina.geojson", function (data) {
AttivitaCulturaMarocchina.addData(data);
map.addLayer(AttivitaCulturaMarocchinaLayer);
});
var ConosciamoLaCulturaGiapponeseLayer = L.geoJson(null);
var ConosciamoLaCulturaGiapponese = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/ConosciamoLaCulturaGiapponese.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
ConosciamoLaCulturaGiapponeseSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "ConosciamoLaCulturaGiapponese",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Conosciamo_la_cultura_Giapponese.geojson", function (data) {
ConosciamoLaCulturaGiapponese.addData(data);
map.addLayer(ConosciamoLaCulturaGiapponeseLayer);
});
var CorsiDiLingueGratuiteAlfabetizzazioneMigrantiLayer = L.geoJson(null);
var CorsiDiLingueGratuiteAlfabetizzazioneMigranti = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/CorsiDiLinguaGratuitaAlfabetizzazioneMigranti.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
CorsiDiLingueGratuiteAlfabetizzazioneMigrantiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "CorsiDiLingueGratuiteAlfabetizzazioneMigranti",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Corsi_di_lingua_gratuita_alfabetizzazione_migranti.geojson", function (data) {
CorsiDiLingueGratuiteAlfabetizzazioneMigranti.addData(data);
map.addLayer(CorsiDiLingueGratuiteAlfabetizzazioneMigrantiLayer);
});
var DivertirciConIlTeatroLayer = L.geoJson(null);
var DivertirciConIlTeatro = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/DivertirciConIlTeatro.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
DivertirciConIlTeatroSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "DivertirciConIlTeatro",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Divertirci_con_il_Teatro.geojson", function (data) {
DivertirciConIlTeatro.addData(data);
map.addLayer(DivertirciConIlTeatroLayer);
});
var DropInAttivitaSocialeLayer = L.geoJson(null);
var DropInAttivitaSociale = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Drop_in_attivita_sociale.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
DropInAttivitaSocialeSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "DropInAttivitaSociale",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Drop_in_attivita_sociale.geojson", function (data) {
DropInAttivitaSociale.addData(data);
map.addLayer(DropInAttivitaSocialeLayer);
});
var Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiLayer = L.geoJson(null);
var Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Divulgazione_e_Corsi_di_musica_per_bambini_ed_adolescenti.geojson", function (data) {
Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti.addData(data);
map.addLayer(Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiLayer);
});
var GiroDelMondoInVillaPiaggioLayer = L.geoJson(null);
var GiroDelMondoInVillaPiaggio = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/GiroDelMondoInVillaPiaggio.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
GiroDelMondoInVillaPiaggioSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "GiroDelMondoInVillaPiaggio",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/GiroDelMondoInVillaPiaggio.geojson", function (data) {
GiroDelMondoInVillaPiaggio.addData(data);
map.addLayer(GiroDelMondoInVillaPiaggioLayer);
});
var DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleLayer = L.geoJson(null);
var DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/DIVULGAZIONE_E_LABORATORI_di_fotografia_digitale.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/DIVULGAZIONE_E_LABORATORI_di_fotografia_digitale.geojson", function (data) {
DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale.addData(data);
map.addLayer(DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleLayer);
});
var Divulgazione_e_ConoscenzadellaDanzaPopolareLayer = L.geoJson(null);
var Divulgazione_e_ConoscenzadellaDanzaPopolare = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Divulgazione_e_ConoscenzadellaDanzaPopolare.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
Divulgazione_e_ConoscenzadellaDanzaPopolareSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "Divulgazione_e_ConoscenzadellaDanzaPopolare",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Divulgazione_e_conoscenza_della_danza_popolare.geojson", function (data) {
Divulgazione_e_ConoscenzadellaDanzaPopolare.addData(data);
map.addLayer(Divulgazione_e_ConoscenzadellaDanzaPopolareLayer);
});
var DivulgazioneDelCantoDiTradizionePopolareOraleLayer = L.geoJson(null);
var DivulgazioneDelCantoDiTradizionePopolareOrale = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/DivulgazioneDelCantoDiTradizionePopolareOrale.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
DivulgazioneDelCantoDiTradizionePopolareOraleSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "DivulgazioneDelCantoDiTradizionePopolareOrale",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Divulgazione_del_canto_di_tradizione_popolare_orale.geojson", function (data) {
DivulgazioneDelCantoDiTradizionePopolareOrale.addData(data);
map.addLayer(DivulgazioneDelCantoDiTradizionePopolareOraleLayer);
});
var DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARELayer = L.geoJson(null);
var DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARESearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE.geojson", function (data) {
DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE.addData(data);
map.addLayer(DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARELayer);
});
var ConoscereLaCulturaPolaccaLayer = L.geoJson(null);
var ConoscereLaCulturaPolacca = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/ConoscereLaCulturaPolacca.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
ConoscereLaCulturaPolaccaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "AttivitàCulturaPolacca",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Conoscere_la_cultura_polacca.geojson", function (data) {
ConoscereLaCulturaPolacca.addData(data);
map.addLayer(ConoscereLaCulturaPolaccaLayer);
});
var AlfabetizzazioneLinguaItalianaLayer = L.geoJson(null);
var AlfabetizzazioneLinguaItaliana = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/AlfabetizzazioneLinguaItaliana.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
AlfabetizzazioneLinguaItalianaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "AlfabetizzazioneLinguaItaliana",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Alfabetizzazione_lingua_italiana.geojson", function (data) {
AlfabetizzazioneLinguaItaliana.addData(data);
map.addLayer(AlfabetizzazioneLinguaItalianaLayer);
});
var AttivitaDellaComunitaFilippinaLayer = L.geoJson(null);
var AttivitaDellaComunitaFilippina = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/AttivitaDellaComunitaFilippina.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
AttivitaDellaComunitaFilippinaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "AttivitàDellaComunitàFilippina",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Attivita_della_Comunita_Filippina.geojson", function (data) {
AttivitaDellaComunitaFilippina.addData(data);
map.addLayer(AttivitaDellaComunitaFilippinaLayer);
});
var PerUnaVitaSanaEdAttivaLayer = L.geoJson(null);
var PerUnaVitaSanaEdAttiva = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Per_una_vita_sana_ed_attiva.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
PerUnaVitaSanaEdAttivaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "PerUnaVitaSanaEdAttiva",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Per_una_vita_sana_ed_attiva.geojson", function (data) {
PerUnaVitaSanaEdAttiva.addData(data);
map.addLayer(PerUnaVitaSanaEdAttivaLayer);
});
var PresentazioneLibriLayer = L.geoJson(null);
var PresentazioneLibri = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/PresentazioneLibri.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
PresentazioneLibriSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "PresentazioneLibri",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/legalitaediritti/PresentazioneLibri.geojson", function (data) {
PresentazioneLibri.addData(data);
map.addLayer(PresentazioneLibriLayer);
});
var AlfabetizzazioneRichiedentiAsiloLayer = L.geoJson(null);
var AlfabetizzazioneRichiedentiAsilo = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/AlfabetizzazioneRichiedentiAsilo.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
AlfabetizzazioneRichiedentiAsiloSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "Alfabetizzazione richiedenti asilo",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Alfabetizzazione_persone_richiedenti_asilo.geojson", function (data) {
AlfabetizzazioneRichiedentiAsilo.addData(data);
map.addLayer(AlfabetizzazioneRichiedentiAsiloLayer);
});
var SaveTheWorldLayer = L.geoJson(null);
var SaveTheWorld = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Save_the_World.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
SaveTheWorldSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "SaveTheWorld",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Save_the_World.geojson", function (data) {
SaveTheWorld.addData(data);
map.addLayer(SaveTheWorldLayer);
});
var YogaDellaRisataLayer = L.geoJson(null);
var YogaDellaRisata = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Yoga_della_risata.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
YogaDellaRisataSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "YogaDellaRisata",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Yoga_della_risata.geojson", function (data) {
YogaDellaRisata.addData(data);
map.addLayer(YogaDellaRisataLayer);
});
var SCUOLA_PER_PATENTE_NAUTICALayer = L.geoJson(null);
var SCUOLA_PER_PATENTE_NAUTICA = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/SCUOLA_PER_PATENTE_NAUTICA.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
SCUOLA_PER_PATENTE_NAUTICASearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "SCUOLA_PER_PATENTE_NAUTICA",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/SCUOLA_PER_PATENTE_NAUTICA.geojson", function (data) {
SCUOLA_PER_PATENTE_NAUTICA.addData(data);
map.addLayer(SCUOLA_PER_PATENTE_NAUTICALayer);
});
var SPORTELLO_ASCOLTO_DONNE_MAROCCHINELayer = L.geoJson(null);
var SPORTELLO_ASCOLTO_DONNE_MAROCCHINE = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/SPORTELLO_D_ASCOLTO_PER_DONNE_MAROCCHINE.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
SPORTELLO_ASCOLTO_DONNE_MAROCCHINESearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "SPORTELLO_ASCOLTO_DONNE_MAROCCHINE",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/SPORTELLO_D_ASCOLTO_PER_DONNE_MAROCCHINE.geojson", function (data) {
SPORTELLO_ASCOLTO_DONNE_MAROCCHINE.addData(data);
map.addLayer(SPORTELLO_ASCOLTO_DONNE_MAROCCHINELayer);
});
var SportelloInteretnicoLayer = L.geoJson(null);
var SportelloInteretnico = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Sportello_Interetnico.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
SportelloInteretnicoSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "SportelloInteretnico",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Sportello_Interetnico.geojson", function (data) {
SportelloInteretnico.addData(data);
map.addLayer(SportelloInteretnicoLayer);
});
var SPORTELLO_ANTIVIOLENZALayer = L.geoJson(null);
var SPORTELLO_ANTIVIOLENZA = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/SPORTELLO_ANTIVIOLENZA_OLTRE_IL_SILENZIO.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
SPORTELLO_ANTIVIOLENZASearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "SPORTELLO_ANTIVIOLENZA",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/SPORTELLO_ANTIVIOLENZA_OLTRE_IL_SILENZIO.geojson", function (data) {
SPORTELLO_ANTIVIOLENZA.addData(data);
map.addLayer(SPORTELLO_ANTIVIOLENZALayer);
});
var NuoviViciniLayer = L.geoJson(null);
var NuoviVicini = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/NuoviVicini.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
NuoviViciniSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "NuoviVicini",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/legalitaediritti/NuoviVicini.geojson", function (data) {
NuoviVicini.addData(data);
map.addLayer(NuoviViciniLayer);
});
var PromuovereLaConoscenzaStimolareLaCuriositàLayer = L.geoJson(null);
var PromuovereLaConoscenzaStimolareLaCuriosità = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/Promuovere_la_conoscenza_stimolare_la_curiosità.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
PromuovereLaConoscenzaStimolareLaCuriositàSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "PromuovereLaConoscenzaStimolareLaCuriosità",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/Promuovere_la_conoscenza_stimolare_la_curiosità.geojson", function (data) {
PromuovereLaConoscenzaStimolareLaCuriosità.addData(data);
map.addLayer(PromuovereLaConoscenzaStimolareLaCuriositàLayer);
});
var officinagiocattoloLayer = L.geoJson(null);
var officinagiocattolo = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/officinagiocattolo.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
officinagiocattoloSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "officinagiocattolo",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/officinagiocattolo.geojson", function (data) {
officinagiocattolo.addData(data);
map.addLayer(officinagiocattoloLayer);
});
var settimanariduzionerifiutiLayer = L.geoJson(null);
var settimanariduzionerifiuti = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/continuativa/settimanariduzionerifiuti.png",
iconSize: [24, 28],
iconAnchor: [12, 28],
popupAnchor: [0, -25]
}),
title: feature.properties.nome,
riseOnHover: true
});
},
onEachFeature: function (feature, layer) {
if (feature.properties) {
var image = '
';
if (feature.properties.tipo == 'associazione') {
var imagePath = 'pictures/associazioni/'+feature.properties.immagine;
image = '
';
}
var content = image;
if (feature.properties.tipo == 'soggetto') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Luogo |
" + feature.properties.luogo + " |
";
} else if (feature.properties.tipo == 'associazione') {
content = content + "
| Nome |
" + feature.properties.nome + " |
" + "
| Sede legale |
" + feature.properties.sede_legale + " |
" + "
| Sede operativa |
" + feature.properties.sede_operativa + " |
" + "
| Email |
" + feature.properties.email + " |
" + "
| Facebook |
" + feature.properties.facebook + " |
" + "
| Sito web |
" + feature.properties.sito + " |
";
} else {
content = content + "
| Azione |
" + feature.properties.nome + " |
"+ "
| Soggetto promotore |
" + (('soggetto promotore' in feature.properties) ? feature.properties['soggetto promotore'] : '') + " |
" + "
| Soggetti |
" + feature.properties.soggetti + " |
" + "
| Tipologia |
" + feature.properties.tipologia + " |
" + "
| Luoghi |
" + feature.properties.luoghi + " |
" + "
| Ambito |
" + feature.properties.ambito + " |
";
}
layer.on({
click: function (e) {
$("#feature-title").html(feature.properties.nome);
$("#feature-info").html(content);
$("#featureModal").modal("show");
highlight.clearLayers().addLayer(L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], highlightStyle));
}
});
var appendFeature = '
 |
';
appendFeature+= layer.feature.properties.nome + ' |
|
';
$("#feature-list tbody").append(appendFeature);
settimanariduzionerifiutiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "settimanariduzionerifiuti",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/continuativa/attivitaeducative/settimanariduzionerifiuti.geojson", function (data) {
settimanariduzionerifiuti.addData(data);
map.addLayer(settimanariduzionerifiutiLayer);
});
map = L.map("map", {
zoom: 14,
center: [44.4182, 8.9322],
layers: [osmBaseMap, markerClusters, highlight],
zoomControl: false,
attributionControl: false
});
/* Layer control listeners that allow for a single markerClusters layer */
map.on("overlayadd", function(e) {
if (e.layer === AffidoAreeVerdiLayer) {
markerClusters.addLayer(AffidoAreeVerdi);
syncSidebar();
}
if (e.layer === maddalena52Layer) {
markerClusters.addLayer(maddalena52);
syncSidebar();
}
if (e.layer === LetDirittiAlCentroLayer) {
markerClusters.addLayer(LetDirittiAlCentro);
syncSidebar();
}
if (e.layer === RunToGETherLayer) {
markerClusters.addLayer(RunToGETher);
syncSidebar();
}
if (e.layer === terremuoviamociLayer) {
markerClusters.addLayer(terremuoviamoci);
syncSidebar();
}
if (e.layer === lavoriamoPerBeneScuolaLayer) {
markerClusters.addLayer(lavoriamoPerBeneScuola);
syncSidebar();
}
if (e.layer === unarotondasulrighiLayer) {
markerClusters.addLayer(unarotondasulrighi);
syncSidebar();
}
if (e.layer === riposamammaLayer) {
markerClusters.addLayer(riposamamma);
syncSidebar();
}
if (e.layer === creagiocoLayer) {
markerClusters.addLayer(creagioco);
syncSidebar();
}
if (e.layer === varcaerelasogliaLayer) {
markerClusters.addLayer(varcaerelasoglia);
syncSidebar();
}
if (e.layer === EsprimiamociConIlTeatroLayer) {
markerClusters.addLayer(EsprimiamociConIlTeatro);
syncSidebar();
}
if (e.layer === LaComunitàItaloCapoverdianaSiIncontraLayer) {
markerClusters.addLayer(LaComunitàItaloCapoverdianaSiIncontra);
syncSidebar();
}
if (e.layer === attivitaLetLayer) {
markerClusters.addLayer(attivitaLet);
syncSidebar();
}
if (e.layer === giochiamociIlQuartiereLayer) {
markerClusters.addLayer(giochiamociIlQuartiere);
syncSidebar();
}
if (e.layer === madlabLayer) {
markerClusters.addLayer(madlab);
syncSidebar();
}
if (e.layer === miglioramentiScolasticiLayer) {
markerClusters.addLayer(miglioramentiScolastici);
syncSidebar();
}
if (e.layer === promozioneDellaLetturaLayer) {
markerClusters.addLayer(promozioneDellaLettura);
syncSidebar();
}
if (e.layer === LaboratoriDidatticiLoImparoCosiLayer) {
markerClusters.addLayer(LaboratoriDidatticiLoImparoCosi);
syncSidebar();
}
if (e.layer === ServizioDiSegretariatoSocialeConsulenzeLayer) {
markerClusters.addLayer(ServizioDiSegretariatoSocialeConsulenze);
syncSidebar();
}
if (e.layer === LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoLayer) {
markerClusters.addLayer(LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo);
syncSidebar();
}
if (e.layer === LABORATORIODICUCITOGRATUITOLayer) {
markerClusters.addLayer(LABORATORIODICUCITOGRATUITO);
syncSidebar();
}
if (e.layer === I_liberiCittadiniDellaMaddalenaSiIncontranoLayer) {
markerClusters.addLayer(I_liberiCittadiniDellaMaddalenaSiIncontrano);
syncSidebar();
}
if (e.layer === aperitivoLetterarioLayer) {
markerClusters.addLayer(aperitivoLetterario);
syncSidebar();
}
if (e.layer === FotografiaDigitalePerTuttiLayer) {
markerClusters.addLayer(FotografiaDigitalePerTutti);
syncSidebar();
}
if (e.layer === IlBenessereConLaPraticaShiatzuLayer) {
markerClusters.addLayer(IlBenessereConLaPraticaShiatzu);
syncSidebar();
}
if (e.layer === FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIELayer) {
markerClusters.addLayer(FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE);
syncSidebar();
}
if (e.layer === festaMultietnicaLayer) {
markerClusters.addLayer(festaMultietnica);
syncSidebar();
}
if (e.layer === PiccoloCoroLollipopLayer) {
markerClusters.addLayer(PiccoloCoroLollipop);
syncSidebar();
}
if (e.layer === SessioniYogaGratuitaLayer) {
markerClusters.addLayer(SessioniYogaGratuita);
syncSidebar();
}
if (e.layer === Impariamo_la_musicaLayer) {
markerClusters.addLayer(Impariamo_la_musica);
syncSidebar();
}
if (e.layer === SostegnoAttivitaFormativaScuolaDonMilaniLayer) {
markerClusters.addLayer(SostegnoAttivitaFormativaScuolaDonMilani);
syncSidebar();
}
if (e.layer === LaboratoriDiLinguaItalianaLayer) {
markerClusters.addLayer(LaboratoriDiLinguaItaliana);
syncSidebar();
}
if (e.layer === LaComunitaGhaneseSiIncontraLayer) {
markerClusters.addLayer(LaComunitaGhaneseSiIncontra);
syncSidebar();
}
if (e.layer === IlConsolatoBrasilianoDiMilanoLayer) {
markerClusters.addLayer(IlConsolatoBrasilianoDiMilano);
syncSidebar();
}
if (e.layer === AttivitaCulturaMarocchinaLayer) {
markerClusters.addLayer(AttivitaCulturaMarocchina);
syncSidebar();
}
if (e.layer === ConosciamoLaCulturaGiapponeseLayer) {
markerClusters.addLayer(ConosciamoLaCulturaGiapponese);
syncSidebar();
}
if (e.layer === CorsiDiLingueGratuiteAlfabetizzazioneMigrantiLayer) {
markerClusters.addLayer(CorsiDiLingueGratuiteAlfabetizzazioneMigranti);
syncSidebar();
}
if (e.layer === DivertirciConIlTeatroLayer) {
markerClusters.addLayer(DivertirciConIlTeatro);
syncSidebar();
}
if (e.layer === DropInAttivitaSocialeLayer) {
markerClusters.addLayer(DropInAttivitaSociale);
syncSidebar();
}
if (e.layer === Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiLayer) {
markerClusters.addLayer(Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti);
syncSidebar();
}
if (e.layer === GiroDelMondoInVillaPiaggioLayer) {
markerClusters.addLayer(GiroDelMondoInVillaPiaggio);
syncSidebar();
}
if (e.layer === DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleLayer) {
markerClusters.addLayer(DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale);
syncSidebar();
}
if (e.layer === Divulgazione_e_ConoscenzadellaDanzaPopolareLayer) {
markerClusters.addLayer(Divulgazione_e_ConoscenzadellaDanzaPopolare);
syncSidebar();
}
if (e.layer === DivulgazioneDelCantoDiTradizionePopolareOraleLayer) {
markerClusters.addLayer(DivulgazioneDelCantoDiTradizionePopolareOrale);
syncSidebar();
}
if (e.layer === DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARELayer) {
markerClusters.addLayer(DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE);
syncSidebar();
}
if (e.layer === ConoscereLaCulturaPolaccaLayer) {
markerClusters.addLayer(ConoscereLaCulturaPolacca);
syncSidebar();
}
if (e.layer === AlfabetizzazioneLinguaItalianaLayer) {
markerClusters.addLayer(AlfabetizzazioneLinguaItaliana);
syncSidebar();
}
if (e.layer === AttivitaDellaComunitaFilippinaLayer) {
markerClusters.addLayer(AttivitaDellaComunitaFilippina);
syncSidebar();
}
if (e.layer === PerUnaVitaSanaEdAttivaLayer) {
markerClusters.addLayer(PerUnaVitaSanaEdAttiva);
syncSidebar();
}
if (e.layer === PresentazioneLibriLayer) {
markerClusters.addLayer(PresentazioneLibri);
syncSidebar();
}
if (e.layer === AlfabetizzazioneRichiedentiAsiloLayer) {
markerClusters.addLayer(AlfabetizzazioneRichiedentiAsilo);
syncSidebar();
}
if (e.layer === SaveTheWorldLayer) {
markerClusters.addLayer(SaveTheWorld);
syncSidebar();
}
if (e.layer === YogaDellaRisataLayer) {
markerClusters.addLayer(YogaDellaRisata);
syncSidebar();
}
if (e.layer === SCUOLA_PER_PATENTE_NAUTICALayer) {
markerClusters.addLayer(SCUOLA_PER_PATENTE_NAUTICA);
syncSidebar();
}
if (e.layer === SPORTELLO_ASCOLTO_DONNE_MAROCCHINELayer) {
markerClusters.addLayer(SPORTELLO_ASCOLTO_DONNE_MAROCCHINE);
syncSidebar();
}
if (e.layer === SportelloInteretnicoLayer) {
markerClusters.addLayer(SportelloInteretnico);
syncSidebar();
}
if (e.layer === SPORTELLO_ANTIVIOLENZALayer) {
markerClusters.addLayer(SPORTELLO_ANTIVIOLENZA);
syncSidebar();
}
if (e.layer === NuoviViciniLayer) {
markerClusters.addLayer(NuoviVicini);
syncSidebar();
}
if (e.layer === PromuovereLaConoscenzaStimolareLaCuriositàLayer) {
markerClusters.addLayer(PromuovereLaConoscenzaStimolareLaCuriosità);
syncSidebar();
}
if (e.layer === officinagiocattoloLayer) {
markerClusters.addLayer(officinagiocattolo);
syncSidebar();
}
if (e.layer === settimanariduzionerifiutiLayer) {
markerClusters.addLayer(settimanariduzionerifiuti);
syncSidebar();
}
});
map.on("overlayremove", function(e) {
if (e.layer === AffidoAreeVerdiLayer) {
markerClusters.removeLayer(AffidoAreeVerdi);
syncSidebar();
}
if (e.layer === maddalena52Layer) {
markerClusters.removeLayer(maddalena52);
syncSidebar();
}
if (e.layer === LetDirittiAlCentroLayer) {
markerClusters.removeLayer(LetDirittiAlCentro);
syncSidebar();
}
if (e.layer === RunToGETherLayer) {
markerClusters.removeLayer(RunToGETher);
syncSidebar();
}
if (e.layer === terremuoviamociLayer) {
markerClusters.removeLayer(terremuoviamoci);
syncSidebar();
}
if (e.layer === lavoriamoPerBeneScuolaLayer) {
markerClusters.removeLayer(lavoriamoPerBeneScuola);
syncSidebar();
}
if (e.layer === unarotondasulrighiLayer) {
markerClusters.removeLayer(unarotondasulrighi);
syncSidebar();
}
if (e.layer === riposamammaLayer) {
markerClusters.removeLayer(riposamamma);
syncSidebar();
}
if (e.layer === creagiocoLayer) {
markerClusters.removeLayer(creagioco);
syncSidebar();
}
if (e.layer === varcaerelasogliaLayer) {
markerClusters.removeLayer(varcaerelasoglia);
syncSidebar();
}
if (e.layer === EsprimiamociConIlTeatroLayer) {
markerClusters.removeLayer(EsprimiamociConIlTeatro);
syncSidebar();
}
if (e.layer === LaComunitàItaloCapoverdianaSiIncontraLayer) {
markerClusters.removeLayer(LaComunitàItaloCapoverdianaSiIncontra);
syncSidebar();
}
if (e.layer === attivitaLetLayer) {
markerClusters.removeLayer(attivitaLet);
syncSidebar();
}
if (e.layer === giochiamociIlQuartiereLayer) {
markerClusters.removeLayer(giochiamociIlQuartiere);
syncSidebar();
}
if (e.layer === madlabLayer) {
markerClusters.removeLayer(madlab);
syncSidebar();
}
if (e.layer === miglioramentiScolasticiLayer) {
markerClusters.removeLayer(miglioramentiScolastici);
syncSidebar();
}
if (e.layer === promozioneDellaLetturaLayer) {
markerClusters.removeLayer(promozioneDellaLettura);
syncSidebar();
}
if (e.layer === LaboratoriDidatticiLoImparoCosiLayer) {
markerClusters.removeLayer(LaboratoriDidatticiLoImparoCosi);
syncSidebar();
}
if (e.layer === ServizioDiSegretariatoSocialeConsulenzeLayer) {
markerClusters.removeLayer(ServizioDiSegretariatoSocialeConsulenze);
syncSidebar();
}
if (e.layer === LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoLayer) {
markerClusters.removeLayer(LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo);
syncSidebar();
}
if (e.layer === LABORATORIODICUCITOGRATUITOLayer) {
markerClusters.removeLayer(LABORATORIODICUCITOGRATUITO);
syncSidebar();
}
if (e.layer === I_liberiCittadiniDellaMaddalenaSiIncontranoLayer) {
markerClusters.removeLayer(I_liberiCittadiniDellaMaddalenaSiIncontrano);
syncSidebar();
}
if (e.layer === aperitivoLetterarioLayer) {
markerClusters.removeLayer(aperitivoLetterario);
syncSidebar();
}
if (e.layer === FotografiaDigitalePerTuttiLayer) {
markerClusters.removeLayer(FotografiaDigitalePerTutti);
syncSidebar();
}
if (e.layer === IlBenessereConLaPraticaShiatzuLayer) {
markerClusters.removeLayer(IlBenessereConLaPraticaShiatzu);
syncSidebar();
}
if (e.layer === FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIELayer) {
markerClusters.removeLayer(FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE);
syncSidebar();
}
if (e.layer === festaMultietnicaLayer) {
markerClusters.removeLayer(festaMultietnica);
syncSidebar();
}
if (e.layer === PiccoloCoroLollipopLayer) {
markerClusters.removeLayer(PiccoloCoroLollipop);
syncSidebar();
}
if (e.layer === SessioniYogaGratuitaLayer) {
markerClusters.removeLayer(SessioniYogaGratuita);
syncSidebar();
}
if (e.layer === Impariamo_la_musicaLayer) {
markerClusters.removeLayer(Impariamo_la_musica);
syncSidebar();
}
if (e.layer === SostegnoAttivitaFormativaScuolaDonMilaniLayer) {
markerClusters.removeLayer(SostegnoAttivitaFormativaScuolaDonMilani);
syncSidebar();
}
if (e.layer === LaboratoriDiLinguaItalianaLayer) {
markerClusters.removeLayer(LaboratoriDiLinguaItaliana);
syncSidebar();
}
if (e.layer === LaComunitaGhaneseSiIncontraLayer) {
markerClusters.removeLayer(LaComunitaGhaneseSiIncontra);
syncSidebar();
}
if (e.layer === IlConsolatoBrasilianoDiMilanoLayer) {
markerClusters.removeLayer(IlConsolatoBrasilianoDiMilano);
syncSidebar();
}
if (e.layer === AttivitaCulturaMarocchinaLayer) {
markerClusters.removeLayer(AttivitaCulturaMarocchina);
syncSidebar();
}
if (e.layer === ConosciamoLaCulturaGiapponeseLayer) {
markerClusters.removeLayer(ConosciamoLaCulturaGiapponese);
syncSidebar();
}
if (e.layer === CorsiDiLingueGratuiteAlfabetizzazioneMigrantiLayer) {
markerClusters.removeLayer(CorsiDiLingueGratuiteAlfabetizzazioneMigranti);
syncSidebar();
}
if (e.layer === DivertirciConIlTeatroLayer) {
markerClusters.removeLayer(DivertirciConIlTeatro);
syncSidebar();
}
if (e.layer === DropInAttivitaSocialeLayer) {
markerClusters.removeLayer(DropInAttivitaSociale);
syncSidebar();
}
if (e.layer === Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiLayer) {
markerClusters.removeLayer(Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti);
syncSidebar();
}
if (e.layer === GiroDelMondoInVillaPiaggioLayer) {
markerClusters.removeLayer(GiroDelMondoInVillaPiaggio);
syncSidebar();
}
if (e.layer === DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleLayer) {
markerClusters.removeLayer(DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale);
syncSidebar();
}
if (e.layer === Divulgazione_e_ConoscenzadellaDanzaPopolareLayer) {
markerClusters.removeLayer(Divulgazione_e_ConoscenzadellaDanzaPopolare);
syncSidebar();
}
if (e.layer === DivulgazioneDelCantoDiTradizionePopolareOraleLayer) {
markerClusters.removeLayer(DivulgazioneDelCantoDiTradizionePopolareOrale);
syncSidebar();
}
if (e.layer === DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARELayer) {
markerClusters.removeLayer(DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE);
syncSidebar();
}
if (e.layer === ConoscereLaCulturaPolaccaLayer) {
markerClusters.removeLayer(ConoscereLaCulturaPolacca);
syncSidebar();
}
if (e.layer === AlfabetizzazioneLinguaItalianaLayer) {
markerClusters.removeLayer(AlfabetizzazioneLinguaItaliana);
syncSidebar();
}
if (e.layer === AttivitaDellaComunitaFilippinaLayer) {
markerClusters.removeLayer(AttivitaDellaComunitaFilippina);
syncSidebar();
}
if (e.layer === PerUnaVitaSanaEdAttivaLayer) {
markerClusters.removeLayer(PerUnaVitaSanaEdAttiva);
syncSidebar();
}
if (e.layer === PresentazioneLibriLayer) {
markerClusters.removeLayer(PresentazioneLibri);
syncSidebar();
}
if (e.layer === AlfabetizzazioneRichiedentiAsiloLayer) {
markerClusters.removeLayer(AlfabetizzazioneRichiedentiAsilo);
syncSidebar();
}
if (e.layer === SaveTheWorldLayer) {
markerClusters.removeLayer(SaveTheWorld);
syncSidebar();
}
if (e.layer === YogaDellaRisataLayer) {
markerClusters.removeLayer(YogaDellaRisata);
syncSidebar();
}
if (e.layer === SCUOLA_PER_PATENTE_NAUTICALayer) {
markerClusters.removeLayer(SCUOLA_PER_PATENTE_NAUTICA);
syncSidebar();
}
if (e.layer === SPORTELLO_ASCOLTO_DONNE_MAROCCHINELayer) {
markerClusters.removeLayer(SPORTELLO_ASCOLTO_DONNE_MAROCCHINE);
syncSidebar();
}
if (e.layer === SportelloInteretnicoLayer) {
markerClusters.removeLayer(SportelloInteretnico);
syncSidebar();
}
if (e.layer === SPORTELLO_ANTIVIOLENZALayer) {
markerClusters.removeLayer(SPORTELLO_ANTIVIOLENZA);
syncSidebar();
}
if (e.layer === NuoviViciniLayer) {
markerClusters.removeLayer(NuoviVicini);
syncSidebar();
}
if (e.layer === PromuovereLaConoscenzaStimolareLaCuriositàLayer) {
markerClusters.removeLayer(PromuovereLaConoscenzaStimolareLaCuriosità);
syncSidebar();
}
if (e.layer === officinagiocattoloLayer) {
markerClusters.removeLayer(officinagiocattolo);
syncSidebar();
}
if (e.layer === settimanariduzionerifiutiLayer) {
markerClusters.removeLayer(settimanariduzionerifiuti);
syncSidebar();
}
});
/* Filter sidebar feature list to only show features in current map bounds */
map.on("moveend", function (e) {
syncSidebar();
});
/* Clear feature highlight when map is clicked */
map.on("click", function(e) {
highlight.clearLayers();
});
/* Attribution control */
function updateAttribution(e) {
$.each(map._layers, function(index, layer) {
if (layer.getAttribution) {
$("#attribution").html((layer.getAttribution()));
}
});
}
map.on("layeradd", updateAttribution);
map.on("layerremove", updateAttribution);
var attributionControl = L.control({
position: "bottomright"
});
attributionControl.onAdd = function (map) {
var div = L.DomUtil.create("div", "leaflet-control-attribution");
div.innerHTML = "Developed by bryanmcbride.com | Attribution";
return div;
};
map.addControl(attributionControl);
/*
var zoomControl = L.control.zoom({
position: "bottomright"
}).addTo(map);
*/
var zoomHome = L.Control.zoomHome({position: 'bottomright'});
zoomHome.addTo(map);
/* GPS enabled geolocation control set to follow the user's location */
var locateControl = L.control.locate({
position: "bottomright",
drawCircle: true,
follow: true,
setView: true,
keepCurrentZoomLevel: true,
markerStyle: {
weight: 1,
opacity: 0.8,
fillOpacity: 0.8
},
circleStyle: {
weight: 1,
clickable: false
},
icon: "fa fa-location-arrow",
metric: false,
strings: {
title: "La mia posizione",
popup: "Sei entro {distance} {unit} da questo punto",
outsideMapBoundsMsg: "Sembri posizionato al di fuori dei confini della mappa"
},
locateOptions: {
maxZoom: 18,
watch: true,
enableHighAccuracy: true,
maximumAge: 10000,
timeout: 10000
}
}).addTo(map);
/* Larger screens get expanded layer control and visible sidebar */
if (document.body.clientWidth <= 767) {
var isCollapsed = true;
} else {
var isCollapsed = false;
}
var baseLayers = {
"Mappa": osmBaseMap
};
var groupedOverlays = {
"Cura e presidio del territorio": {
"
Affido aree verdi": AffidoAreeVerdiLayer,
"
Let Diritti al centro!": LetDirittiAlCentroLayer,
"
Miglioramenti scolastici": miglioramentiScolasticiLayer,
},
"Attività di formazione": {
"
Piccolo coro Lollipop": PiccoloCoroLollipopLayer,
},
"Attività di promozione della legalità e dei diritti": {
"
Maddalena 52": maddalena52Layer,
"
Festa multietnica": festaMultietnicaLayer,
"
Presentazione Libri": PresentazioneLibriLayer,
"
Nuovi vicini": NuoviViciniLayer,
},
"Condivisione con amministrazione degli obiettivi e ricerca delle soluzioni": {
},
"Attività culturali": {
},
"Attività sanitarie e/o socio-assistenziali": {
"
Run ToGETher": RunToGETherLayer,
"
TERREMUOVIAMOCI - gemellaggio con zone terremotate": terremuoviamociLayer,
"
Riposamamma": riposamammaLayer,
"
Servizio di Segretariato Sociale e consulenze": ServizioDiSegretariatoSocialeConsulenzeLayer,
},
"Attività educative, formative, artistiche": {
"
Lavoriamo insieme per il bene della scuola dei nostri bambini": lavoriamoPerBeneScuolaLayer,
"
Una rotonda sul Righi": unarotondasulrighiLayer,
"
Creagioco": creagiocoLayer,
"
Varcare la soglia": varcaerelasogliaLayer,
"
Esprimiamoci con il teatro": EsprimiamociConIlTeatroLayer,
"
La Comunità Italo Capoverdiana si incontra": LaComunitàItaloCapoverdianaSiIncontraLayer,
"
Attività L.E.T.- manutentori": attivitaLetLayer,
"
Giochiamoci il Quartiere - Passaggio a Nord Ovest": giochiamociIlQuartiereLayer,
"
MadLab": madlabLayer,
"
Promzione della lettura": promozioneDellaLetturaLayer,
"
Laboratori didattici lo imparo così!": LaboratoriDidatticiLoImparoCosiLayer,
"
Laboratori di canto e musica per i bambini della scuola elementare Daneo": LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoLayer,
"
Laboratorio di cucito gratuito": LABORATORIODICUCITOGRATUITOLayer,
"
I liberi Cittadini della Maddalena si incontrano": I_liberiCittadiniDellaMaddalenaSiIncontranoLayer,
"
Aperitivo letterario": aperitivoLetterarioLayer,
"
Fotografia digitale per tutti": FotografiaDigitalePerTuttiLayer,
"
Il benessere con la pratica Shiatzu": IlBenessereConLaPraticaShiatzuLayer,
"
Famiglie in amicizia, incontri multietnici religiosi": FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIELayer,
"
Sessioni di Yoga gratuita per tutti": SessioniYogaGratuitaLayer,
"
Impariamo La Musica": Impariamo_la_musicaLayer,
"
Sostegno all'attività formativa scuola Don Milani": SostegnoAttivitaFormativaScuolaDonMilaniLayer,
"
Laboratori di lingua italiana": LaboratoriDiLinguaItalianaLayer,
"
La Comunita Ghanese si incontra": LaComunitaGhaneseSiIncontraLayer,
"
Il Consolato Brasiliano di Milano vicino ai cittadini residenti in Liguria": IlConsolatoBrasilianoDiMilanoLayer,
"
Attività di divulgazione della cultura e della musica marocchina": AttivitaCulturaMarocchinaLayer,
"
Conosciamo la cultura Giapponese": ConosciamoLaCulturaGiapponeseLayer,
"
Corsi di lingua gratuita alfabetizzazione migranti": CorsiDiLingueGratuiteAlfabetizzazioneMigrantiLayer,
"
Divertirci con il Teatro": DivertirciConIlTeatroLayer,
"
Drop in attività sociale": DropInAttivitaSocialeLayer,
"
Divulgazione e Corsi di musica per bambini ed adolescenti": Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiLayer,
"
Giro del Mondo in Villa Piaggio": GiroDelMondoInVillaPiaggioLayer,
"
Divulgazione e laboratori di fotografia digitale": DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleLayer,
"
Divulgazione e conoscenza della danza popolare": Divulgazione_e_ConoscenzadellaDanzaPopolareLayer,
"
Divulgazione del canto di tradizione popolare orale": DivulgazioneDelCantoDiTradizionePopolareOraleLayer,
"
Divulgazione e laboratori di musica popolare": DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARELayer,
"
Conoscere la cultura polacca": ConoscereLaCulturaPolaccaLayer,
"
Alfabetizzazione lingua italiana": AlfabetizzazioneLinguaItalianaLayer,
"
Attività della Comunità Filippina": AttivitaDellaComunitaFilippinaLayer,
"
Per una vita sana ed attiva": PerUnaVitaSanaEdAttivaLayer,
"
Alfabetizzazione richiedenti asilo": AlfabetizzazioneRichiedentiAsiloLayer,
"
Save the World": SaveTheWorldLayer,
"
Yoga della risata": YogaDellaRisataLayer,
"
Scuola per patente nautica": SCUOLA_PER_PATENTE_NAUTICALayer,
"
Sportello d'ascolto per donne marocchine": SPORTELLO_ASCOLTO_DONNE_MAROCCHINELayer,
"
Sportello_Interetnico": SportelloInteretnicoLayer,
"
Sportello antiviolenza oltre il silenzio": SPORTELLO_ANTIVIOLENZALayer,
"
Promuovere la conoscenza stimolare la curiosità": PromuovereLaConoscenzaStimolareLaCuriositàLayer,
"
Officina del giocattolo": officinagiocattoloLayer,
"
Settimana europea per la riduzione dei rifiuti (SERR)": settimanariduzionerifiutiLayer,
},
};
L.Control.GroupedLayers.include({
addOverlays: function () {
for (var i in this._layers) {
if (this._layers[i].overlay) {
if (!this._map.hasLayer(this._layers[i].layer)) {
this._map.addLayer(this._layers[i].layer);
}
}
}
},
removeOverlays: function () {
for (var i in this._layers) {
if (this._layers[i].overlay) {
if (this._map.hasLayer(this._layers[i].layer)) {
this._map.removeLayer(this._layers[i].layer);
}
}
}
}
});
var layerControl = L.control.groupedLayers(baseLayers, groupedOverlays, {
collapsed: isCollapsed
}).addTo(map);
/* Highlight search box text on click */
$("#searchbox").click(function () {
$(this).select();
});
/* Prevent hitting enter from refreshing the page */
$("#searchbox").keypress(function (e) {
if (e.which == 13) {
e.preventDefault();
}
});
$("#featureModal").on("hidden.bs.modal", function (e) {
$(document).on("mouseout", ".feature-row", clearHighlight);
});
/* Typeahead search functionality */
$(document).one("ajaxStop", function () {
$("#loading").hide();
sizeLayerControl();
/* Fit map to main layer bounds */
/*map.fitBounds(singola.getBounds());*/
featureList = new List("features", {valueNames: ["feature-name"]});
featureList.sort("feature-name", {order:"asc"});
var AffidoAreeVerdiBH = new Bloodhound({
name: "Affido_aree_verdi",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: AffidoAreeVerdiSearch,
limit: 10
});
AffidoAreeVerdiBH.initialize();
var maddalena52BH = new Bloodhound({
name: "maddalena52",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: maddalena52Search,
limit: 10
});
maddalena52BH.initialize();
var LetDirittiAlCentroBH = new Bloodhound({
name: "LetDirittiAlCentro",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: LetDirittiAlCentroSearch,
limit: 10
});
LetDirittiAlCentroBH.initialize();
var RunToGETherBH = new Bloodhound({
name: "RunToGETher",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: RunToGETherSearch,
limit: 10
});
RunToGETherBH.initialize();
var terremuoviamociBH = new Bloodhound({
name: "terremuoviamoci",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: terremuoviamociSearch,
limit: 10
});
terremuoviamociBH.initialize();
var lavoriamoPerBeneScuolaBH = new Bloodhound({
name: "lavoriamoPerBeneScuola",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: lavoriamoPerBeneScuolaSearch,
limit: 10
});
lavoriamoPerBeneScuolaBH.initialize();
var unarotondasulrighiBH = new Bloodhound({
name: "unarotondasulrighi",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: unarotondasulrighiSearch,
limit: 10
});
unarotondasulrighiBH.initialize();
var riposamammaBH = new Bloodhound({
name: "riposamamma",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: riposamammaSearch,
limit: 10
});
riposamammaBH.initialize();
var creagiocoBH = new Bloodhound({
name: "creagioco",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: creagiocoSearch,
limit: 10
});
creagiocoBH.initialize();
var varcaerelasogliaBH = new Bloodhound({
name: "varcaerelasoglia",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: varcaerelasogliaSearch,
limit: 10
});
varcaerelasogliaBH.initialize();
var EsprimiamociConIlTeatroBH = new Bloodhound({
name: "EsprimiamociConIlTeatro",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: EsprimiamociConIlTeatroSearch,
limit: 10
});
EsprimiamociConIlTeatroBH.initialize();
var LaComunitàItaloCapoverdianaSiIncontraBH = new Bloodhound({
name: "LaComunitàItaloCapoverdianaSiIncontra",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: LaComunitàItaloCapoverdianaSiIncontraSearch,
limit: 10
});
LaComunitàItaloCapoverdianaSiIncontraBH.initialize();
var attivitaLetBH = new Bloodhound({
name: "attivitaLet",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: attivitaLetSearch,
limit: 10
});
attivitaLetBH.initialize();
var giochiamociIlQuartiereBH = new Bloodhound({
name: "giochiamociIlQuartiere",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: giochiamociIlQuartiereSearch,
limit: 10
});
giochiamociIlQuartiereBH.initialize();
var madlabBH = new Bloodhound({
name: "madlab",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: madlabSearch,
limit: 10
});
madlabBH.initialize();
var miglioramentiScolasticiBH = new Bloodhound({
name: "miglioramentiScolastici",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: miglioramentiScolasticiSearch,
limit: 10
});
miglioramentiScolasticiBH.initialize();
var promozioneDellaLetturaBH = new Bloodhound({
name: "promozioneDellaLettura",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: promozioneDellaLetturaSearch,
limit: 10
});
promozioneDellaLetturaBH.initialize();
var LaboratoriDidatticiLoImparoCosiBH = new Bloodhound({
name: "LaboratoriDidatticiLoImparoCosi",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: LaboratoriDidatticiLoImparoCosiSearch,
limit: 10
});
LaboratoriDidatticiLoImparoCosiBH.initialize();
var ServizioDiSegretariatoSocialeConsulenzeBH = new Bloodhound({
name: "ServizioDiSegretariatoSocialeConsulenze",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: ServizioDiSegretariatoSocialeConsulenzeSearch,
limit: 10
});
ServizioDiSegretariatoSocialeConsulenzeBH.initialize();
var LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoBH = new Bloodhound({
name: "LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoSearch,
limit: 10
});
LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoBH.initialize();
var LABORATORIODICUCITOGRATUITOBH = new Bloodhound({
name: "LABORATORIODICUCITOGRATUITO",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: LABORATORIODICUCITOGRATUITOSearch,
limit: 10
});
LABORATORIODICUCITOGRATUITOBH.initialize();
var I_liberiCittadiniDellaMaddalenaSiIncontranoBH = new Bloodhound({
name: "I_liberiCittadiniDellaMaddalenaSiIncontrano",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: I_liberiCittadiniDellaMaddalenaSiIncontranoSearch,
limit: 10
});
I_liberiCittadiniDellaMaddalenaSiIncontranoBH.initialize();
var aperitivoLetterarioBH = new Bloodhound({
name: "aperitivoLetterario",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: aperitivoLetterarioSearch,
limit: 10
});
aperitivoLetterarioBH.initialize();
var FotografiaDigitalePerTuttiBH = new Bloodhound({
name: "FotografiaDigitalePerTutti",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: FotografiaDigitalePerTuttiSearch,
limit: 10
});
FotografiaDigitalePerTuttiBH.initialize();
var IlBenessereConLaPraticaShiatzuBH = new Bloodhound({
name: "IlBenessereConLaPraticaShiatzu",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: IlBenessereConLaPraticaShiatzuSearch,
limit: 10
});
IlBenessereConLaPraticaShiatzuBH.initialize();
var FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIEBH = new Bloodhound({
name: "FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIESearch,
limit: 10
});
FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIEBH.initialize();
var festaMultietnicaBH = new Bloodhound({
name: "festaMultietnica",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: festaMultietnicaSearch,
limit: 10
});
festaMultietnicaBH.initialize();
var PiccoloCoroLollipopBH = new Bloodhound({
name: "PiccoloCoroLollipop",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: PiccoloCoroLollipopSearch,
limit: 10
});
PiccoloCoroLollipopBH.initialize();
var SessioniYogaGratuitaBH = new Bloodhound({
name: "SessioniYogaGratuita",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: SessioniYogaGratuitaSearch,
limit: 10
});
SessioniYogaGratuitaBH.initialize();
var Impariamo_la_musicaBH = new Bloodhound({
name: "ImpariamoLaMusica",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: Impariamo_la_musicaSearch,
limit: 10
});
Impariamo_la_musicaBH.initialize();
var SostegnoAttivitaFormativaScuolaDonMilaniBH = new Bloodhound({
name: "SostegnoAttivitaFormativaScuolaDonMilani",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: SostegnoAttivitaFormativaScuolaDonMilaniSearch,
limit: 10
});
SostegnoAttivitaFormativaScuolaDonMilaniBH.initialize();
var LaboratoriDiLinguaItalianaBH = new Bloodhound({
name: "LaboratoriDiLinguaItaliana",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: LaboratoriDiLinguaItalianaSearch,
limit: 10
});
LaboratoriDiLinguaItalianaBH.initialize();
var LaComunitaGhaneseSiIncontraBH = new Bloodhound({
name: "LaComunitaGhaneseSiIncontra",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: LaComunitaGhaneseSiIncontraSearch,
limit: 10
});
LaComunitaGhaneseSiIncontraBH.initialize();
var IlConsolatoBrasilianoDiMilanoBH = new Bloodhound({
name: "IlConsolatoBrasilianoDiMilano",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: IlConsolatoBrasilianoDiMilanoSearch,
limit: 10
});
IlConsolatoBrasilianoDiMilanoBH.initialize();
var AttivitaCulturaMarocchinaBH = new Bloodhound({
name: "AttivitàCulturaMarocchina",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: AttivitaCulturaMarocchinaSearch,
limit: 10
});
AttivitaCulturaMarocchinaBH.initialize();
var ConosciamoLaCulturaGiapponeseBH = new Bloodhound({
name: "ConosciamoLaCulturaGiapponese",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: ConosciamoLaCulturaGiapponeseSearch,
limit: 10
});
ConosciamoLaCulturaGiapponeseBH.initialize();
var CorsiDiLingueGratuiteAlfabetizzazioneMigrantiBH = new Bloodhound({
name: "CorsiDiLingueGratuiteAlfabetizzazioneMigranti",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: CorsiDiLingueGratuiteAlfabetizzazioneMigrantiSearch,
limit: 10
});
CorsiDiLingueGratuiteAlfabetizzazioneMigrantiBH.initialize();
var DivertirciConIlTeatroBH = new Bloodhound({
name: "DivertirciConIlTeatro",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: DivertirciConIlTeatroSearch,
limit: 10
});
DivertirciConIlTeatroBH.initialize();
var DropInAttivitaSocialeBH = new Bloodhound({
name: "DropInAttivitaSociale",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: DropInAttivitaSocialeSearch,
limit: 10
});
DropInAttivitaSocialeBH.initialize();
var Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiBH = new Bloodhound({
name: "Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiSearch,
limit: 10
});
Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiBH.initialize();
var GiroDelMondoInVillaPiaggioBH = new Bloodhound({
name: "GiroDelMondoInVillaPiaggio",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: GiroDelMondoInVillaPiaggioSearch,
limit: 10
});
GiroDelMondoInVillaPiaggioBH.initialize();
var DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleBH = new Bloodhound({
name: "DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleSearch,
limit: 10
});
DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleBH.initialize();
var Divulgazione_e_ConoscenzadellaDanzaPopolareBH = new Bloodhound({
name: "Divulgazione_e_ConoscenzadellaDanzaPopolare",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: Divulgazione_e_ConoscenzadellaDanzaPopolareSearch,
limit: 10
});
Divulgazione_e_ConoscenzadellaDanzaPopolareBH.initialize();
var DivulgazioneDelCantoDiTradizionePopolareOraleBH = new Bloodhound({
name: "DivulgazioneDelCantoDiTradizionePopolareOrale",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: DivulgazioneDelCantoDiTradizionePopolareOraleSearch,
limit: 10
});
DivulgazioneDelCantoDiTradizionePopolareOraleBH.initialize();
var DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLAREBH = new Bloodhound({
name: "DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARESearch,
limit: 10
});
DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLAREBH.initialize();
var ConoscereLaCulturaPolaccaBH = new Bloodhound({
name: "AttivitàCulturaPolacca",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: ConoscereLaCulturaPolaccaSearch,
limit: 10
});
ConoscereLaCulturaPolaccaBH.initialize();
var AlfabetizzazioneLinguaItalianaBH = new Bloodhound({
name: "AlfabetizzazioneLinguaItaliana",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: AlfabetizzazioneLinguaItalianaSearch,
limit: 10
});
AlfabetizzazioneLinguaItalianaBH.initialize();
var AttivitaDellaComunitaFilippinaBH = new Bloodhound({
name: "AttivitàDellaComunitàFilippina",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: AttivitaDellaComunitaFilippinaSearch,
limit: 10
});
AttivitaDellaComunitaFilippinaBH.initialize();
var PerUnaVitaSanaEdAttivaBH = new Bloodhound({
name: "PerUnaVitaSanaEdAttiva",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: PerUnaVitaSanaEdAttivaSearch,
limit: 10
});
PerUnaVitaSanaEdAttivaBH.initialize();
var PresentazioneLibriBH = new Bloodhound({
name: "PresentazioneLibri",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: PresentazioneLibriSearch,
limit: 10
});
PresentazioneLibriBH.initialize();
var AlfabetizzazioneRichiedentiAsiloBH = new Bloodhound({
name: "Alfabetizzazione richiedenti asilo",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: AlfabetizzazioneRichiedentiAsiloSearch,
limit: 10
});
AlfabetizzazioneRichiedentiAsiloBH.initialize();
var SaveTheWorldBH = new Bloodhound({
name: "SaveTheWorld",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: SaveTheWorldSearch,
limit: 10
});
SaveTheWorldBH.initialize();
var YogaDellaRisataBH = new Bloodhound({
name: "YogaDellaRisata",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: YogaDellaRisataSearch,
limit: 10
});
YogaDellaRisataBH.initialize();
var SCUOLA_PER_PATENTE_NAUTICABH = new Bloodhound({
name: "SCUOLA_PER_PATENTE_NAUTICA",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: SCUOLA_PER_PATENTE_NAUTICASearch,
limit: 10
});
SCUOLA_PER_PATENTE_NAUTICABH.initialize();
var SPORTELLO_ASCOLTO_DONNE_MAROCCHINEBH = new Bloodhound({
name: "SPORTELLO_ASCOLTO_DONNE_MAROCCHINE",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: SPORTELLO_ASCOLTO_DONNE_MAROCCHINESearch,
limit: 10
});
SPORTELLO_ASCOLTO_DONNE_MAROCCHINEBH.initialize();
var SportelloInteretnicoBH = new Bloodhound({
name: "SportelloInteretnico",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: SportelloInteretnicoSearch,
limit: 10
});
SportelloInteretnicoBH.initialize();
var SPORTELLO_ANTIVIOLENZABH = new Bloodhound({
name: "SPORTELLO_ANTIVIOLENZA",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: SPORTELLO_ANTIVIOLENZASearch,
limit: 10
});
SPORTELLO_ANTIVIOLENZABH.initialize();
var NuoviViciniBH = new Bloodhound({
name: "NuoviVicini",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: NuoviViciniSearch,
limit: 10
});
NuoviViciniBH.initialize();
var PromuovereLaConoscenzaStimolareLaCuriositàBH = new Bloodhound({
name: "PromuovereLaConoscenzaStimolareLaCuriosità",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: PromuovereLaConoscenzaStimolareLaCuriositàSearch,
limit: 10
});
PromuovereLaConoscenzaStimolareLaCuriositàBH.initialize();
var officinagiocattoloBH = new Bloodhound({
name: "officinagiocattolo",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: officinagiocattoloSearch,
limit: 10
});
officinagiocattoloBH.initialize();
var settimanariduzionerifiutiBH = new Bloodhound({
name: "settimanariduzionerifiuti",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: settimanariduzionerifiutiSearch,
limit: 10
});
settimanariduzionerifiutiBH.initialize();
/* instantiate the typeahead UI */
$("#searchbox").typeahead({
minLength: 3,
highlight: true,
hint: false
}, {
name: "Affido_aree_verdi",
displayKey: "name",
source: AffidoAreeVerdiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "maddalena52",
displayKey: "name",
source: maddalena52BH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "LetDirittiAlCentro",
displayKey: "name",
source: LetDirittiAlCentroBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "RunToGETher",
displayKey: "name",
source: RunToGETherBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "terremuoviamoci",
displayKey: "name",
source: terremuoviamociBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "lavoriamoPerBeneScuola",
displayKey: "name",
source: lavoriamoPerBeneScuolaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "unarotondasulrighi",
displayKey: "name",
source: unarotondasulrighiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "riposamamma",
displayKey: "name",
source: riposamammaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "creagioco",
displayKey: "name",
source: creagiocoBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "varcaerelasoglia",
displayKey: "name",
source: varcaerelasogliaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "EsprimiamociConIlTeatro",
displayKey: "name",
source: EsprimiamociConIlTeatroBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "LaComunitàItaloCapoverdianaSiIncontra",
displayKey: "name",
source: LaComunitàItaloCapoverdianaSiIncontraBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "attivitaLet",
displayKey: "name",
source: attivitaLetBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "giochiamociIlQuartiere",
displayKey: "name",
source: giochiamociIlQuartiereBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "madlab",
displayKey: "name",
source: madlabBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "miglioramentiScolastici",
displayKey: "name",
source: miglioramentiScolasticiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "promozioneDellaLettura",
displayKey: "name",
source: promozioneDellaLetturaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "LaboratoriDidatticiLoImparoCosi",
displayKey: "name",
source: LaboratoriDidatticiLoImparoCosiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "ServizioDiSegretariatoSocialeConsulenze",
displayKey: "name",
source: ServizioDiSegretariatoSocialeConsulenzeBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo",
displayKey: "name",
source: LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "LABORATORIODICUCITOGRATUITO",
displayKey: "name",
source: LABORATORIODICUCITOGRATUITOBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "I_liberiCittadiniDellaMaddalenaSiIncontrano",
displayKey: "name",
source: I_liberiCittadiniDellaMaddalenaSiIncontranoBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "aperitivoLetterario",
displayKey: "name",
source: aperitivoLetterarioBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "FotografiaDigitalePerTutti",
displayKey: "name",
source: FotografiaDigitalePerTuttiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "IlBenessereConLaPraticaShiatzu",
displayKey: "name",
source: IlBenessereConLaPraticaShiatzuBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE",
displayKey: "name",
source: FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIEBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "festaMultietnica",
displayKey: "name",
source: festaMultietnicaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "PiccoloCoroLollipop",
displayKey: "name",
source: PiccoloCoroLollipopBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "SessioniYogaGratuita",
displayKey: "name",
source: SessioniYogaGratuitaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "ImpariamoLaMusica",
displayKey: "name",
source: Impariamo_la_musicaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "SostegnoAttivitaFormativaScuolaDonMilani",
displayKey: "name",
source: SostegnoAttivitaFormativaScuolaDonMilaniBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "LaboratoriDiLinguaItaliana",
displayKey: "name",
source: LaboratoriDiLinguaItalianaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "LaComunitaGhaneseSiIncontra",
displayKey: "name",
source: LaComunitaGhaneseSiIncontraBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "IlConsolatoBrasilianoDiMilano",
displayKey: "name",
source: IlConsolatoBrasilianoDiMilanoBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "AttivitàCulturaMarocchina",
displayKey: "name",
source: AttivitaCulturaMarocchinaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "ConosciamoLaCulturaGiapponese",
displayKey: "name",
source: ConosciamoLaCulturaGiapponeseBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "CorsiDiLingueGratuiteAlfabetizzazioneMigranti",
displayKey: "name",
source: CorsiDiLingueGratuiteAlfabetizzazioneMigrantiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "DivertirciConIlTeatro",
displayKey: "name",
source: DivertirciConIlTeatroBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "DropInAttivitaSociale",
displayKey: "name",
source: DropInAttivitaSocialeBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti",
displayKey: "name",
source: Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "GiroDelMondoInVillaPiaggio",
displayKey: "name",
source: GiroDelMondoInVillaPiaggioBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale",
displayKey: "name",
source: DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "Divulgazione_e_ConoscenzadellaDanzaPopolare",
displayKey: "name",
source: Divulgazione_e_ConoscenzadellaDanzaPopolareBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "DivulgazioneDelCantoDiTradizionePopolareOrale",
displayKey: "name",
source: DivulgazioneDelCantoDiTradizionePopolareOraleBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE",
displayKey: "name",
source: DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLAREBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "AttivitàCulturaPolacca",
displayKey: "name",
source: ConoscereLaCulturaPolaccaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "AlfabetizzazioneLinguaItaliana",
displayKey: "name",
source: AlfabetizzazioneLinguaItalianaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "AttivitàDellaComunitàFilippina",
displayKey: "name",
source: AttivitaDellaComunitaFilippinaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "PerUnaVitaSanaEdAttiva",
displayKey: "name",
source: PerUnaVitaSanaEdAttivaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "PresentazioneLibri",
displayKey: "name",
source: PresentazioneLibriBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "Alfabetizzazione richiedenti asilo",
displayKey: "name",
source: AlfabetizzazioneRichiedentiAsiloBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "SaveTheWorld",
displayKey: "name",
source: SaveTheWorldBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "YogaDellaRisata",
displayKey: "name",
source: YogaDellaRisataBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "SCUOLA_PER_PATENTE_NAUTICA",
displayKey: "name",
source: SCUOLA_PER_PATENTE_NAUTICABH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "SPORTELLO_ASCOLTO_DONNE_MAROCCHINE",
displayKey: "name",
source: SPORTELLO_ASCOLTO_DONNE_MAROCCHINEBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "SportelloInteretnico",
displayKey: "name",
source: SportelloInteretnicoBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "SPORTELLO_ANTIVIOLENZA",
displayKey: "name",
source: SPORTELLO_ANTIVIOLENZABH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "NuoviVicini",
displayKey: "name",
source: NuoviViciniBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "PromuovereLaConoscenzaStimolareLaCuriosità",
displayKey: "name",
source: PromuovereLaConoscenzaStimolareLaCuriositàBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "officinagiocattolo",
displayKey: "name",
source: officinagiocattoloBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "settimanariduzionerifiuti",
displayKey: "name",
source: settimanariduzionerifiutiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}).on("typeahead:selected", function (obj, datum) {
if (datum.source === "Affido_aree_verdi") {
if (!map.hasLayer(AffidoAreeVerdiLayer)) {
map.addLayer(AffidoAreeVerdiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "maddalena52") {
if (!map.hasLayer(maddalena52Layer)) {
map.addLayer(maddalena52Layer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "LetDirittiAlCentro") {
if (!map.hasLayer(LetDirittiAlCentroLayer)) {
map.addLayer(LetDirittiAlCentroLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "RunToGETher") {
if (!map.hasLayer(RunToGETherLayer)) {
map.addLayer(RunToGETherLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "terremuoviamoci") {
if (!map.hasLayer(terremuoviamociLayer)) {
map.addLayer(terremuoviamociLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "lavoriamoPerBeneScuola") {
if (!map.hasLayer(lavoriamoPerBeneScuolaLayer)) {
map.addLayer(lavoriamoPerBeneScuolaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "unarotondasulrighi") {
if (!map.hasLayer(unarotondasulrighiLayer)) {
map.addLayer(unarotondasulrighiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "riposamamma") {
if (!map.hasLayer(riposamammaLayer)) {
map.addLayer(riposamammaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "creagioco") {
if (!map.hasLayer(creagiocoLayer)) {
map.addLayer(creagiocoLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "varcaerelasoglia") {
if (!map.hasLayer(varcaerelasogliaLayer)) {
map.addLayer(varcaerelasogliaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "EsprimiamociConIlTeatro") {
if (!map.hasLayer(EsprimiamociConIlTeatroLayer)) {
map.addLayer(EsprimiamociConIlTeatroLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "LaComunitàItaloCapoverdianaSiIncontra") {
if (!map.hasLayer(LaComunitàItaloCapoverdianaSiIncontraLayer)) {
map.addLayer(LaComunitàItaloCapoverdianaSiIncontraLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "attivitaLet") {
if (!map.hasLayer(attivitaLetLayer)) {
map.addLayer(attivitaLetLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "giochiamociIlQuartiere") {
if (!map.hasLayer(giochiamociIlQuartiereLayer)) {
map.addLayer(giochiamociIlQuartiereLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "madlab") {
if (!map.hasLayer(madlabLayer)) {
map.addLayer(madlabLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "miglioramentiScolastici") {
if (!map.hasLayer(miglioramentiScolasticiLayer)) {
map.addLayer(miglioramentiScolasticiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "promozioneDellaLettura") {
if (!map.hasLayer(promozioneDellaLetturaLayer)) {
map.addLayer(promozioneDellaLetturaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "LaboratoriDidatticiLoImparoCosi") {
if (!map.hasLayer(LaboratoriDidatticiLoImparoCosiLayer)) {
map.addLayer(LaboratoriDidatticiLoImparoCosiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "ServizioDiSegretariatoSocialeConsulenze") {
if (!map.hasLayer(ServizioDiSegretariatoSocialeConsulenzeLayer)) {
map.addLayer(ServizioDiSegretariatoSocialeConsulenzeLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneo") {
if (!map.hasLayer(LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoLayer)) {
map.addLayer(LaboratoriDiCanto_e_musicaPer_i_bambiniDellaScuolaElementareDaneoLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "LABORATORIODICUCITOGRATUITO") {
if (!map.hasLayer(LABORATORIODICUCITOGRATUITOLayer)) {
map.addLayer(LABORATORIODICUCITOGRATUITOLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "I_liberiCittadiniDellaMaddalenaSiIncontrano") {
if (!map.hasLayer(I_liberiCittadiniDellaMaddalenaSiIncontranoLayer)) {
map.addLayer(I_liberiCittadiniDellaMaddalenaSiIncontranoLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "aperitivoLetterario") {
if (!map.hasLayer(aperitivoLetterarioLayer)) {
map.addLayer(aperitivoLetterarioLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "FotografiaDigitalePerTutti") {
if (!map.hasLayer(FotografiaDigitalePerTuttiLayer)) {
map.addLayer(FotografiaDigitalePerTuttiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "IlBenessereConLaPraticaShiatzu") {
if (!map.hasLayer(IlBenessereConLaPraticaShiatzuLayer)) {
map.addLayer(IlBenessereConLaPraticaShiatzuLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIE") {
if (!map.hasLayer(FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIELayer)) {
map.addLayer(FAMIGLIE_IN_AMICIZIA_INCONTRI_MULTIETNICI_MULTIRELIGIOSI_PER_FAMIGLIELayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "festaMultietnica") {
if (!map.hasLayer(festaMultietnicaLayer)) {
map.addLayer(festaMultietnicaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "PiccoloCoroLollipop") {
if (!map.hasLayer(PiccoloCoroLollipopLayer)) {
map.addLayer(PiccoloCoroLollipopLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "SessioniYogaGratuita") {
if (!map.hasLayer(SessioniYogaGratuitaLayer)) {
map.addLayer(SessioniYogaGratuitaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "ImpariamoLaMusica") {
if (!map.hasLayer(Impariamo_la_musicaLayer)) {
map.addLayer(Impariamo_la_musicaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "SostegnoAttivitaFormativaScuolaDonMilani") {
if (!map.hasLayer(SostegnoAttivitaFormativaScuolaDonMilaniLayer)) {
map.addLayer(SostegnoAttivitaFormativaScuolaDonMilaniLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "LaboratoriDiLinguaItaliana") {
if (!map.hasLayer(LaboratoriDiLinguaItalianaLayer)) {
map.addLayer(LaboratoriDiLinguaItalianaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "LaComunitaGhaneseSiIncontra") {
if (!map.hasLayer(LaComunitaGhaneseSiIncontraLayer)) {
map.addLayer(LaComunitaGhaneseSiIncontraLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "IlConsolatoBrasilianoDiMilano") {
if (!map.hasLayer(IlConsolatoBrasilianoDiMilanoLayer)) {
map.addLayer(IlConsolatoBrasilianoDiMilanoLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "AttivitàCulturaMarocchina") {
if (!map.hasLayer(AttivitaCulturaMarocchinaLayer)) {
map.addLayer(AttivitaCulturaMarocchinaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "ConosciamoLaCulturaGiapponese") {
if (!map.hasLayer(ConosciamoLaCulturaGiapponeseLayer)) {
map.addLayer(ConosciamoLaCulturaGiapponeseLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "CorsiDiLingueGratuiteAlfabetizzazioneMigranti") {
if (!map.hasLayer(CorsiDiLingueGratuiteAlfabetizzazioneMigrantiLayer)) {
map.addLayer(CorsiDiLingueGratuiteAlfabetizzazioneMigrantiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "DivertirciConIlTeatro") {
if (!map.hasLayer(DivertirciConIlTeatroLayer)) {
map.addLayer(DivertirciConIlTeatroLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "DropInAttivitaSociale") {
if (!map.hasLayer(DropInAttivitaSocialeLayer)) {
map.addLayer(DropInAttivitaSocialeLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescenti") {
if (!map.hasLayer(Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiLayer)) {
map.addLayer(Divulgazione_e_CorsiDiMusicaPerBambiniEdAdolescentiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "GiroDelMondoInVillaPiaggio") {
if (!map.hasLayer(GiroDelMondoInVillaPiaggioLayer)) {
map.addLayer(GiroDelMondoInVillaPiaggioLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "DIVULGAZIONE_E_LABORATORI_diFotografiaDigitale") {
if (!map.hasLayer(DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleLayer)) {
map.addLayer(DIVULGAZIONE_E_LABORATORI_diFotografiaDigitaleLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "Divulgazione_e_ConoscenzadellaDanzaPopolare") {
if (!map.hasLayer(Divulgazione_e_ConoscenzadellaDanzaPopolareLayer)) {
map.addLayer(Divulgazione_e_ConoscenzadellaDanzaPopolareLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "DivulgazioneDelCantoDiTradizionePopolareOrale") {
if (!map.hasLayer(DivulgazioneDelCantoDiTradizionePopolareOraleLayer)) {
map.addLayer(DivulgazioneDelCantoDiTradizionePopolareOraleLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARE") {
if (!map.hasLayer(DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARELayer)) {
map.addLayer(DIVULGAZIONE_E_LABORATORI_DI_MUSICA_POPOLARELayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "AttivitàCulturaPolacca") {
if (!map.hasLayer(ConoscereLaCulturaPolaccaLayer)) {
map.addLayer(ConoscereLaCulturaPolaccaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "AlfabetizzazioneLinguaItaliana") {
if (!map.hasLayer(AlfabetizzazioneLinguaItalianaLayer)) {
map.addLayer(AlfabetizzazioneLinguaItalianaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "AttivitàDellaComunitàFilippina") {
if (!map.hasLayer(AttivitaDellaComunitaFilippinaLayer)) {
map.addLayer(AttivitaDellaComunitaFilippinaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "PerUnaVitaSanaEdAttiva") {
if (!map.hasLayer(PerUnaVitaSanaEdAttivaLayer)) {
map.addLayer(PerUnaVitaSanaEdAttivaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "PresentazioneLibri") {
if (!map.hasLayer(PresentazioneLibriLayer)) {
map.addLayer(PresentazioneLibriLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "Alfabetizzazione richiedenti asilo") {
if (!map.hasLayer(AlfabetizzazioneRichiedentiAsiloLayer)) {
map.addLayer(AlfabetizzazioneRichiedentiAsiloLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "SaveTheWorld") {
if (!map.hasLayer(SaveTheWorldLayer)) {
map.addLayer(SaveTheWorldLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "YogaDellaRisata") {
if (!map.hasLayer(YogaDellaRisataLayer)) {
map.addLayer(YogaDellaRisataLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "SCUOLA_PER_PATENTE_NAUTICA") {
if (!map.hasLayer(SCUOLA_PER_PATENTE_NAUTICALayer)) {
map.addLayer(SCUOLA_PER_PATENTE_NAUTICALayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "SPORTELLO_ASCOLTO_DONNE_MAROCCHINE") {
if (!map.hasLayer(SPORTELLO_ASCOLTO_DONNE_MAROCCHINELayer)) {
map.addLayer(SPORTELLO_ASCOLTO_DONNE_MAROCCHINELayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "SportelloInteretnico") {
if (!map.hasLayer(SportelloInteretnicoLayer)) {
map.addLayer(SportelloInteretnicoLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "SPORTELLO_ANTIVIOLENZA") {
if (!map.hasLayer(SPORTELLO_ANTIVIOLENZALayer)) {
map.addLayer(SPORTELLO_ANTIVIOLENZALayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "NuoviVicini") {
if (!map.hasLayer(NuoviViciniLayer)) {
map.addLayer(NuoviViciniLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "PromuovereLaConoscenzaStimolareLaCuriosità") {
if (!map.hasLayer(PromuovereLaConoscenzaStimolareLaCuriositàLayer)) {
map.addLayer(PromuovereLaConoscenzaStimolareLaCuriositàLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "officinagiocattolo") {
if (!map.hasLayer(officinagiocattoloLayer)) {
map.addLayer(officinagiocattoloLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "settimanariduzionerifiuti") {
if (!map.hasLayer(settimanariduzionerifiutiLayer)) {
map.addLayer(settimanariduzionerifiutiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
}).on("typeahead:opened", function () {
$(".navbar-collapse.in").css("max-height", $(document).height() - $(".navbar-header").height());
$(".navbar-collapse.in").css("height", $(document).height() - $(".navbar-header").height());
}).on("typeahead:closed", function () {
$(".navbar-collapse.in").css("max-height", "");
$(".navbar-collapse.in").css("height", "");
});
$(".twitter-typeahead").css("position", "static");
$(".twitter-typeahead").css("display", "block");
});
// Leaflet patch to make layer control scrollable on touch browsers
var container = $(".leaflet-control-layers")[0];
if (!L.Browser.touch) {
L.DomEvent
.disableClickPropagation(container)
.disableScrollPropagation(container);
} else {
L.DomEvent.disableClickPropagation(container);
}