var map, featureList;
var associazioneBalgasarSearch = [];
var EsposizioneMostraFotograficaGenovaC_eraUnaVoltaSearch = [];
var AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereSearch = [];
var settembrataSearch = [];
var circumnavigandoSearch = [];
var culturaCambiaIlMondoDiscriminazioneSearch = [];
var MostraSuOreginaAnticaSearch = [];
var culturaCambiaIlMondoStereotipiSearch = [];
var PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaSearch = [];
var divulgazioneScientificaSearch = [];
var electroparkFestivalSearch = [];
var filmPerTuttiSearch = [];
var ghostTourSearch = [];
var piccolaBibliotecaSearch = [];
var MostraFotograficaZenaCummeLeaSearch = [];
var AperitiviAlloStatutoSearch = [];
var SecondoMotoradunoZena_a_ManettaSearch = [];
var Sabato_in_piazzaSearch = [];
var IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoSearch = [];
var CreativitaGuidataSearch = [];
var ambienteazionegenovaSearch = [];
var lancetteSearch = [];
var inapneaciboSearch = [];
var pompieropoliSearch = [];
var PromozioneDiInterculturaSearch = [];
var CANTAMIGRANTESSearch = [];
var direfaregiocareSearch = [];
var camminandopergenovaSearch = [];
var ArteSopranaSearch = [];
var IlMondoInCasaSearch = [];
var LaLunaAlGuinzaglioSearch = [];
var UnaRotondaSulRighiSearch = [];
var musicaNoRumoreSearch = [];
$(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 */
associazioneBalgasar.eachLayer(function (layer) {
if (map.hasLayer(associazioneBalgasarLayer)) {
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 */
EsposizioneMostraFotograficaGenovaC_eraUnaVolta.eachLayer(function (layer) {
if (map.hasLayer(EsposizioneMostraFotograficaGenovaC_eraUnaVoltaLayer)) {
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 */
AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere.eachLayer(function (layer) {
if (map.hasLayer(AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereLayer)) {
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 */
settembrata.eachLayer(function (layer) {
if (map.hasLayer(settembrataLayer)) {
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 */
circumnavigando.eachLayer(function (layer) {
if (map.hasLayer(circumnavigandoLayer)) {
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 */
culturaCambiaIlMondoDiscriminazione.eachLayer(function (layer) {
if (map.hasLayer(culturaCambiaIlMondoDiscriminazioneLayer)) {
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 */
MostraSuOreginaAntica.eachLayer(function (layer) {
if (map.hasLayer(MostraSuOreginaAnticaLayer)) {
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 */
culturaCambiaIlMondoStereotipi.eachLayer(function (layer) {
if (map.hasLayer(culturaCambiaIlMondoStereotipiLayer)) {
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 */
PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina.eachLayer(function (layer) {
if (map.hasLayer(PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaLayer)) {
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 */
divulgazioneScientifica.eachLayer(function (layer) {
if (map.hasLayer(divulgazioneScientificaLayer)) {
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 */
electroparkFestival.eachLayer(function (layer) {
if (map.hasLayer(electroparkFestivalLayer)) {
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 */
filmPerTutti.eachLayer(function (layer) {
if (map.hasLayer(filmPerTuttiLayer)) {
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 */
ghostTour.eachLayer(function (layer) {
if (map.hasLayer(ghostTourLayer)) {
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 */
piccolaBiblioteca.eachLayer(function (layer) {
if (map.hasLayer(piccolaBibliotecaLayer)) {
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 */
MostraFotograficaZenaCummeLea.eachLayer(function (layer) {
if (map.hasLayer(MostraFotograficaZenaCummeLeaLayer)) {
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 */
AperitiviAlloStatuto.eachLayer(function (layer) {
if (map.hasLayer(AperitiviAlloStatutoLayer)) {
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 */
SecondoMotoradunoZena_a_Manetta.eachLayer(function (layer) {
if (map.hasLayer(SecondoMotoradunoZena_a_ManettaLayer)) {
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 */
Sabato_in_piazza.eachLayer(function (layer) {
if (map.hasLayer(Sabato_in_piazzaLayer)) {
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 */
IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato.eachLayer(function (layer) {
if (map.hasLayer(IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoLayer)) {
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 */
CreativitaGuidata.eachLayer(function (layer) {
if (map.hasLayer(CreativitaGuidataLayer)) {
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 */
ambienteazionegenova.eachLayer(function (layer) {
if (map.hasLayer(ambienteazionegenovaLayer)) {
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 */
lancette.eachLayer(function (layer) {
if (map.hasLayer(lancetteLayer)) {
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 */
inapneacibo.eachLayer(function (layer) {
if (map.hasLayer(inapneaciboLayer)) {
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 */
pompieropoli.eachLayer(function (layer) {
if (map.hasLayer(pompieropoliLayer)) {
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 */
PromozioneDiIntercultura.eachLayer(function (layer) {
if (map.hasLayer(PromozioneDiInterculturaLayer)) {
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 */
CANTAMIGRANTES.eachLayer(function (layer) {
if (map.hasLayer(CANTAMIGRANTESLayer)) {
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 */
direfaregiocare.eachLayer(function (layer) {
if (map.hasLayer(direfaregiocareLayer)) {
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 */
camminandopergenova.eachLayer(function (layer) {
if (map.hasLayer(camminandopergenovaLayer)) {
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 */
ArteSoprana.eachLayer(function (layer) {
if (map.hasLayer(ArteSopranaLayer)) {
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 */
IlMondoInCasa.eachLayer(function (layer) {
if (map.hasLayer(IlMondoInCasaLayer)) {
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 */
LaLunaAlGuinzaglio.eachLayer(function (layer) {
if (map.hasLayer(LaLunaAlGuinzaglioLayer)) {
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 */
musicaNoRumore.eachLayer(function (layer) {
if (map.hasLayer(musicaNoRumoreLayer)) {
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 associazioneBalgasarLayer = L.geoJson(null);
var associazioneBalgasar = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/AttivitàDiRaccordoFamiglia-scuola-territorio.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);
associazioneBalgasarSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "RaccordoFamiglia-scuola-territorio",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaformazione/AttivitàDiRaccordoFamiglia-scuola-territorio.geojson", function (data) {
associazioneBalgasar.addData(data);
map.addLayer(associazioneBalgasarLayer);
});
var EsposizioneMostraFotograficaGenovaC_eraUnaVoltaLayer = L.geoJson(null);
var EsposizioneMostraFotograficaGenovaC_eraUnaVolta = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/Esposizione_Mostra_Fotografica_Genova_C_era_una_volta.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);
EsposizioneMostraFotograficaGenovaC_eraUnaVoltaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "EsposizioneMostraFotograficaGenovaC_eraUnaVolta",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/Esposizione_Mostra_Fotografica_Genova_C_era_una_volta.geojson", function (data) {
EsposizioneMostraFotograficaGenovaC_eraUnaVolta.addData(data);
map.addLayer(EsposizioneMostraFotograficaGenovaC_eraUnaVoltaLayer);
});
var AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereLayer = L.geoJson(null);
var AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere.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);
AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere.geojson", function (data) {
AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere.addData(data);
map.addLayer(AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereLayer);
});
var settembrataLayer = L.geoJson(null);
var settembrata = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/settembrata.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);
settembrataSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "settembrata",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/settembrata.geojson", function (data) {
settembrata.addData(data);
map.addLayer(settembrataLayer);
});
var circumnavigandoLayer = L.geoJson(null);
var circumnavigando = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/circumnavigando.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);
circumnavigandoSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "circumnavigando",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaculturali/circumnavigando.geojson", function (data) {
circumnavigando.addData(data);
map.addLayer(circumnavigandoLayer);
});
var culturaCambiaIlMondoDiscriminazioneLayer = L.geoJson(null);
var culturaCambiaIlMondoDiscriminazione = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/culturaCambiaIlMondoDiscriminazione.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);
culturaCambiaIlMondoDiscriminazioneSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "culturaCambiaIlMondoDiscriminazione",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/culturaCambiaIlMondoDiscriminazione.geojson", function (data) {
culturaCambiaIlMondoDiscriminazione.addData(data);
map.addLayer(culturaCambiaIlMondoDiscriminazioneLayer);
});
var MostraSuOreginaAnticaLayer = L.geoJson(null);
var MostraSuOreginaAntica = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/Mostra_su_Oregina_antica.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);
MostraSuOreginaAnticaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "MostraSuOreginaAntica",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/Mostra_su_Oregina_antica.geojson", function (data) {
MostraSuOreginaAntica.addData(data);
map.addLayer(MostraSuOreginaAnticaLayer);
});
var culturaCambiaIlMondoStereotipiLayer = L.geoJson(null);
var culturaCambiaIlMondoStereotipi = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/culturaCambiaIlMondoStereotipi.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);
culturaCambiaIlMondoStereotipiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "culturaCambiaIlMondoStereotipi",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/culturaCambiaIlMondoStereotipi.geojson", function (data) {
culturaCambiaIlMondoStereotipi.addData(data);
map.addLayer(culturaCambiaIlMondoStereotipiLayer);
});
var PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaLayer = L.geoJson(null);
var PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina.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);
PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/Premio_di_poesia_dialettale_genovese_Amici_da_Riunda_Oregina.geojson", function (data) {
PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina.addData(data);
map.addLayer(PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaLayer);
});
var divulgazioneScientificaLayer = L.geoJson(null);
var divulgazioneScientifica = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/divulgazioneScientifica.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);
divulgazioneScientificaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "divulgazioneScientifica",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/divulgazioneScientifica.geojson", function (data) {
divulgazioneScientifica.addData(data);
map.addLayer(divulgazioneScientificaLayer);
});
var electroparkFestivalLayer = L.geoJson(null);
var electroparkFestival = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/electroparkFestival.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);
electroparkFestivalSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "electroparkFestival",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/legalitaediritti/electroparkFestival.geojson", function (data) {
electroparkFestival.addData(data);
map.addLayer(electroparkFestivalLayer);
});
var filmPerTuttiLayer = L.geoJson(null);
var filmPerTutti = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/filmPerTutti.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);
filmPerTuttiSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "filmPerTutti",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/filmPerTutti.geojson", function (data) {
filmPerTutti.addData(data);
map.addLayer(filmPerTuttiLayer);
});
var ghostTourLayer = L.geoJson(null);
var ghostTour = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/ghostTour.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);
ghostTourSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "ghostTour",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/ghostTour.geojson", function (data) {
ghostTour.addData(data);
map.addLayer(ghostTourLayer);
});
var piccolaBibliotecaLayer = L.geoJson(null);
var piccolaBiblioteca = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/piccolaBiblioteca.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);
piccolaBibliotecaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "piccolaBiblioteca",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/piccolaBiblioteca.geojson", function (data) {
piccolaBiblioteca.addData(data);
map.addLayer(piccolaBibliotecaLayer);
});
var MostraFotograficaZenaCummeLeaLayer = L.geoJson(null);
var MostraFotograficaZenaCummeLea = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/Mostra_fotografica_Zena_cumm_e_a_l_ea.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);
MostraFotograficaZenaCummeLeaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "Mostra _fotografica_Zena_cumm_e_a_l_ea",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaculturali/Mostra_fotografica_Zena_cumm_e_a_l_ea.geojson", function (data) {
MostraFotograficaZenaCummeLea.addData(data);
map.addLayer(MostraFotograficaZenaCummeLeaLayer);
});
var AperitiviAlloStatutoLayer = L.geoJson(null);
var AperitiviAlloStatuto = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/AperitiviAlloStatuto.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);
AperitiviAlloStatutoSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "AperitiviAlloStatuto",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/curaepresidio/AperitiviAlloStatuto.geojson", function (data) {
AperitiviAlloStatuto.addData(data);
map.addLayer(AperitiviAlloStatutoLayer);
});
var SecondoMotoradunoZena_a_ManettaLayer = L.geoJson(null);
var SecondoMotoradunoZena_a_Manetta = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/secondoMotoradunoZena_a_Manetta.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);
SecondoMotoradunoZena_a_ManettaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "SecondoMotoradunoZena_a_Manetta",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/curaepresidio/Secondo_Motoraduno_Zena_a_manetta.geojson", function (data) {
SecondoMotoradunoZena_a_Manetta.addData(data);
map.addLayer(SecondoMotoradunoZena_a_ManettaLayer);
});
var Sabato_in_piazzaLayer = L.geoJson(null);
var Sabato_in_piazza = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/Sabato_in_piazza.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);
Sabato_in_piazzaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "Sabato_in_piazza",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/curaepresidio/Sabato_in_piazza.geojson", function (data) {
Sabato_in_piazza.addData(data);
map.addLayer(Sabato_in_piazzaLayer);
});
var IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoLayer = L.geoJson(null);
var IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato.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);
IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato.geojson", function (data) {
IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato.addData(data);
map.addLayer(IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoLayer);
});
var CreativitaGuidataLayer = L.geoJson(null);
var CreativitaGuidata = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/CreativitaGuidata.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);
CreativitaGuidataSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "CreativitaGuidata",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitasanitarie/CreativitaGuidata.geojson", function (data) {
CreativitaGuidata.addData(data);
map.addLayer(CreativitaGuidataLayer);
});
var ambienteazionegenovaLayer = L.geoJson(null);
var ambienteazionegenova = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/ambienteazionegenova.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);
ambienteazionegenovaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "ambienteazionegenova",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/ambienteazionegenova.geojson", function (data) {
ambienteazionegenova.addData(data);
map.addLayer(ambienteazionegenovaLayer);
});
var lancetteLayer = L.geoJson(null);
var lancette = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/lancette.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);
lancetteSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "lancette",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/lancette.geojson", function (data) {
lancette.addData(data);
map.addLayer(lancetteLayer);
});
var inapneaciboLayer = L.geoJson(null);
var inapneacibo = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/inapneacibo.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);
inapneaciboSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "inapneacibo",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitasanitarie/inapneacibo.geojson", function (data) {
inapneacibo.addData(data);
map.addLayer(inapneaciboLayer);
});
var pompieropoliLayer = L.geoJson(null);
var pompieropoli = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/pompieropoli.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);
pompieropoliSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "pompieropoli",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/pompieropoli.geojson", function (data) {
pompieropoli.addData(data);
map.addLayer(pompieropoliLayer);
});
var PromozioneDiInterculturaLayer = L.geoJson(null);
var PromozioneDiIntercultura = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/PromozioneDiIntercultura.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);
PromozioneDiInterculturaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "PromozioneDiIntercultura",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/PromozioneDiIntercultura.geojson", function (data) {
PromozioneDiIntercultura.addData(data);
map.addLayer(PromozioneDiInterculturaLayer);
});
var CANTAMIGRANTESLayer = L.geoJson(null);
var CANTAMIGRANTES = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/CANTAMIGRANTES.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);
CANTAMIGRANTESSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "CANTAMIGRANTES",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/legalitaediritti/CANTAMIGRANTES.geojson", function (data) {
CANTAMIGRANTES.addData(data);
map.addLayer(CANTAMIGRANTESLayer);
});
var direfaregiocareLayer = L.geoJson(null);
var direfaregiocare = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/direfaregiocare.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);
direfaregiocareSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "direfaregiocare",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/direfaregiocare.geojson", function (data) {
direfaregiocare.addData(data);
map.addLayer(direfaregiocareLayer);
});
var camminandopergenovaLayer = L.geoJson(null);
var camminandopergenova = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/camminandopergenova.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);
camminandopergenovaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "camminandopergenova",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/camminandopergenova.geojson", function (data) {
camminandopergenova.addData(data);
map.addLayer(camminandopergenovaLayer);
});
var ArteSopranaLayer = L.geoJson(null);
var ArteSoprana = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/ArteSoprana.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);
ArteSopranaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "ArteSoprana",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/ArteSoprana.geojson", function (data) {
ArteSoprana.addData(data);
map.addLayer(ArteSopranaLayer);
});
var IlMondoInCasaLayer = L.geoJson(null);
var IlMondoInCasa = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/Il_Mondo_in_casa.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);
IlMondoInCasaSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "IlMondoInCasa",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/Il_Mondo_in_casa.geojson", function (data) {
IlMondoInCasa.addData(data);
map.addLayer(IlMondoInCasaLayer);
});
var LaLunaAlGuinzaglioLayer = L.geoJson(null);
var LaLunaAlGuinzaglio = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/LaLunaAlGuinzaglio.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);
LaLunaAlGuinzaglioSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "LaLunaAlGuinzaglio",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/attivitaeducative/LaLunaAlGuinzaglio.geojson", function (data) {
LaLunaAlGuinzaglio.addData(data);
map.addLayer(LaLunaAlGuinzaglioLayer);
});
var UnaRotondaSulRighiLayer = L.geoJson(null);
var UnaRotondaSulRighi = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/Una_Rotonda_sul_Righi.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/ciclica/attivitaeducative/Una_Rotonda_sul_Righi.geojson", function (data) {
UnaRotondaSulRighi.addData(data);
map.addLayer(UnaRotondaSulRighiLayer);
});
var musicaNoRumoreLayer = L.geoJson(null);
var musicaNoRumore = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({
iconUrl: "assets/img/ciclica/musicaNoRumore.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);
musicaNoRumoreSearch.push({
name: layer.feature.properties.nome,
address: layer.feature.properties.luogo,
source: "musicaNoRumore",
id: L.stamp(layer),
lat: layer.feature.geometry.coordinates[1],
lng: layer.feature.geometry.coordinates[0]
});
}
}
});
$.getJSON("data/ciclica/legalitaediritti/musicaNoRumore.geojson", function (data) {
musicaNoRumore.addData(data);
map.addLayer(musicaNoRumoreLayer);
});
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 === associazioneBalgasarLayer) {
markerClusters.addLayer(associazioneBalgasar);
syncSidebar();
}
if (e.layer === EsposizioneMostraFotograficaGenovaC_eraUnaVoltaLayer) {
markerClusters.addLayer(EsposizioneMostraFotograficaGenovaC_eraUnaVolta);
syncSidebar();
}
if (e.layer === AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereLayer) {
markerClusters.addLayer(AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere);
syncSidebar();
}
if (e.layer === settembrataLayer) {
markerClusters.addLayer(settembrata);
syncSidebar();
}
if (e.layer === circumnavigandoLayer) {
markerClusters.addLayer(circumnavigando);
syncSidebar();
}
if (e.layer === culturaCambiaIlMondoDiscriminazioneLayer) {
markerClusters.addLayer(culturaCambiaIlMondoDiscriminazione);
syncSidebar();
}
if (e.layer === MostraSuOreginaAnticaLayer) {
markerClusters.addLayer(MostraSuOreginaAntica);
syncSidebar();
}
if (e.layer === culturaCambiaIlMondoStereotipiLayer) {
markerClusters.addLayer(culturaCambiaIlMondoStereotipi);
syncSidebar();
}
if (e.layer === PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaLayer) {
markerClusters.addLayer(PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina);
syncSidebar();
}
if (e.layer === divulgazioneScientificaLayer) {
markerClusters.addLayer(divulgazioneScientifica);
syncSidebar();
}
if (e.layer === electroparkFestivalLayer) {
markerClusters.addLayer(electroparkFestival);
syncSidebar();
}
if (e.layer === filmPerTuttiLayer) {
markerClusters.addLayer(filmPerTutti);
syncSidebar();
}
if (e.layer === ghostTourLayer) {
markerClusters.addLayer(ghostTour);
syncSidebar();
}
if (e.layer === piccolaBibliotecaLayer) {
markerClusters.addLayer(piccolaBiblioteca);
syncSidebar();
}
if (e.layer === MostraFotograficaZenaCummeLeaLayer) {
markerClusters.addLayer(MostraFotograficaZenaCummeLea);
syncSidebar();
}
if (e.layer === AperitiviAlloStatutoLayer) {
markerClusters.addLayer(AperitiviAlloStatuto);
syncSidebar();
}
if (e.layer === SecondoMotoradunoZena_a_ManettaLayer) {
markerClusters.addLayer(SecondoMotoradunoZena_a_Manetta);
syncSidebar();
}
if (e.layer === Sabato_in_piazzaLayer) {
markerClusters.addLayer(Sabato_in_piazza);
syncSidebar();
}
if (e.layer === IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoLayer) {
markerClusters.addLayer(IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato);
syncSidebar();
}
if (e.layer === CreativitaGuidataLayer) {
markerClusters.addLayer(CreativitaGuidata);
syncSidebar();
}
if (e.layer === ambienteazionegenovaLayer) {
markerClusters.addLayer(ambienteazionegenova);
syncSidebar();
}
if (e.layer === lancetteLayer) {
markerClusters.addLayer(lancette);
syncSidebar();
}
if (e.layer === inapneaciboLayer) {
markerClusters.addLayer(inapneacibo);
syncSidebar();
}
if (e.layer === pompieropoliLayer) {
markerClusters.addLayer(pompieropoli);
syncSidebar();
}
if (e.layer === PromozioneDiInterculturaLayer) {
markerClusters.addLayer(PromozioneDiIntercultura);
syncSidebar();
}
if (e.layer === CANTAMIGRANTESLayer) {
markerClusters.addLayer(CANTAMIGRANTES);
syncSidebar();
}
if (e.layer === direfaregiocareLayer) {
markerClusters.addLayer(direfaregiocare);
syncSidebar();
}
if (e.layer === camminandopergenovaLayer) {
markerClusters.addLayer(camminandopergenova);
syncSidebar();
}
if (e.layer === ArteSopranaLayer) {
markerClusters.addLayer(ArteSoprana);
syncSidebar();
}
if (e.layer === IlMondoInCasaLayer) {
markerClusters.addLayer(IlMondoInCasa);
syncSidebar();
}
if (e.layer === LaLunaAlGuinzaglioLayer) {
markerClusters.addLayer(LaLunaAlGuinzaglio);
syncSidebar();
}
if (e.layer === UnaRotondaSulRighiLayer) {
markerClusters.addLayer(UnaRotondaSulRighi);
syncSidebar();
}
if (e.layer === musicaNoRumoreLayer) {
markerClusters.addLayer(musicaNoRumore);
syncSidebar();
}
});
map.on("overlayremove", function(e) {
if (e.layer === associazioneBalgasarLayer) {
markerClusters.removeLayer(associazioneBalgasar);
syncSidebar();
}
if (e.layer === EsposizioneMostraFotograficaGenovaC_eraUnaVoltaLayer) {
markerClusters.removeLayer(EsposizioneMostraFotograficaGenovaC_eraUnaVolta);
syncSidebar();
}
if (e.layer === AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereLayer) {
markerClusters.removeLayer(AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere);
syncSidebar();
}
if (e.layer === settembrataLayer) {
markerClusters.removeLayer(settembrata);
syncSidebar();
}
if (e.layer === circumnavigandoLayer) {
markerClusters.removeLayer(circumnavigando);
syncSidebar();
}
if (e.layer === culturaCambiaIlMondoDiscriminazioneLayer) {
markerClusters.removeLayer(culturaCambiaIlMondoDiscriminazione);
syncSidebar();
}
if (e.layer === MostraSuOreginaAnticaLayer) {
markerClusters.removeLayer(MostraSuOreginaAntica);
syncSidebar();
}
if (e.layer === culturaCambiaIlMondoStereotipiLayer) {
markerClusters.removeLayer(culturaCambiaIlMondoStereotipi);
syncSidebar();
}
if (e.layer === PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaLayer) {
markerClusters.removeLayer(PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina);
syncSidebar();
}
if (e.layer === divulgazioneScientificaLayer) {
markerClusters.removeLayer(divulgazioneScientifica);
syncSidebar();
}
if (e.layer === electroparkFestivalLayer) {
markerClusters.removeLayer(electroparkFestival);
syncSidebar();
}
if (e.layer === filmPerTuttiLayer) {
markerClusters.removeLayer(filmPerTutti);
syncSidebar();
}
if (e.layer === ghostTourLayer) {
markerClusters.removeLayer(ghostTour);
syncSidebar();
}
if (e.layer === piccolaBibliotecaLayer) {
markerClusters.removeLayer(piccolaBiblioteca);
syncSidebar();
}
if (e.layer === MostraFotograficaZenaCummeLeaLayer) {
markerClusters.removeLayer(MostraFotograficaZenaCummeLea);
syncSidebar();
}
if (e.layer === AperitiviAlloStatutoLayer) {
markerClusters.removeLayer(AperitiviAlloStatuto);
syncSidebar();
}
if (e.layer === SecondoMotoradunoZena_a_ManettaLayer) {
markerClusters.removeLayer(SecondoMotoradunoZena_a_Manetta);
syncSidebar();
}
if (e.layer === Sabato_in_piazzaLayer) {
markerClusters.removeLayer(Sabato_in_piazza);
syncSidebar();
}
if (e.layer === IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoLayer) {
markerClusters.removeLayer(IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato);
syncSidebar();
}
if (e.layer === CreativitaGuidataLayer) {
markerClusters.removeLayer(CreativitaGuidata);
syncSidebar();
}
if (e.layer === ambienteazionegenovaLayer) {
markerClusters.removeLayer(ambienteazionegenova);
syncSidebar();
}
if (e.layer === lancetteLayer) {
markerClusters.removeLayer(lancette);
syncSidebar();
}
if (e.layer === inapneaciboLayer) {
markerClusters.removeLayer(inapneacibo);
syncSidebar();
}
if (e.layer === pompieropoliLayer) {
markerClusters.removeLayer(pompieropoli);
syncSidebar();
}
if (e.layer === PromozioneDiInterculturaLayer) {
markerClusters.removeLayer(PromozioneDiIntercultura);
syncSidebar();
}
if (e.layer === CANTAMIGRANTESLayer) {
markerClusters.removeLayer(CANTAMIGRANTES);
syncSidebar();
}
if (e.layer === direfaregiocareLayer) {
markerClusters.removeLayer(direfaregiocare);
syncSidebar();
}
if (e.layer === camminandopergenovaLayer) {
markerClusters.removeLayer(camminandopergenova);
syncSidebar();
}
if (e.layer === ArteSopranaLayer) {
markerClusters.removeLayer(ArteSoprana);
syncSidebar();
}
if (e.layer === IlMondoInCasaLayer) {
markerClusters.removeLayer(IlMondoInCasa);
syncSidebar();
}
if (e.layer === LaLunaAlGuinzaglioLayer) {
markerClusters.removeLayer(LaLunaAlGuinzaglio);
syncSidebar();
}
if (e.layer === UnaRotondaSulRighiLayer) {
markerClusters.removeLayer(UnaRotondaSulRighi);
syncSidebar();
}
if (e.layer === musicaNoRumoreLayer) {
markerClusters.removeLayer(musicaNoRumore);
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": {
"
Aperitivi allo Statuto": AperitiviAlloStatutoLayer,
"
2° Motoraduno Zena a manetta": SecondoMotoradunoZena_a_ManettaLayer,
"
Sabato in piazza": Sabato_in_piazzaLayer,
},
"Attività di formazione": {
"
Attività di raccordo famiglia-scuola-territorio": associazioneBalgasarLayer,
},
"Attività di promozione della legalità e dei diritti": {
"
Electropark Festival": electroparkFestivalLayer,
"
CANTAMIGRANTES - il canto come mezzo per la fratellanza fra i popoli": CANTAMIGRANTESLayer,
"
Tavola rotonda - La musica non è rumore": musicaNoRumoreLayer,
},
"Condivisione con amministrazione degli obiettivi e ricerca delle soluzioni": {
},
"Attività culturali": {
"
Circumnavigando Festival internazionale di teatro e circo": circumnavigandoLayer,
"
Mostra fotografica - Zena cumm e a l'ea": MostraFotograficaZenaCummeLeaLayer,
},
"Attività sanitarie e/o socio-assistenziali": {
"
Creativitá guidata": CreativitaGuidataLayer,
"
In Apnea: cibo buono per nutrire la mente delle mamme": inapneaciboLayer,
},
"Attività educative, formative, artistiche": {
"
Esposizione Mostra Fotografica Genova C'era una volta": EsposizioneMostraFotograficaGenovaC_eraUnaVoltaLayer,
"
Attività educative con bambini e ragazzi delle scuole e delle associazioni del quartiere": AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereLayer,
"
Settembrata": settembrataLayer,
"
La Cultura cambia il mondo azioni di contrasto alla discriminazione attraverso il recupero della memoria storica": culturaCambiaIlMondoDiscriminazioneLayer,
"
Mostra su Oregina antica": MostraSuOreginaAnticaLayer,
"
La Cultura cambia il mondo azioni - elaborazioni a contrasto degli stereotipi di genere": culturaCambiaIlMondoStereotipiLayer,
"
Premio di poesia dialettale genovese Amici da Riunda Oregina": PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaLayer,
"
Divulgazione scientifica": divulgazioneScientificaLayer,
"
Film per tutti": filmPerTuttiLayer,
"
Ghost Tour e falò di San Giovanni": ghostTourLayer,
"
Piccola Biblioteca leggere senza stereotipi": piccolaBibliotecaLayer,
"
Incontri formativi sul Metodo Analogico di Camillo Bortolato": IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoLayer,
"
Ambient#Azione Genova": ambienteazionegenovaLayer,
"
Lancette - soggiorno estivo a Monteleco": lancetteLayer,
"
Pompieropoli": pompieropoliLayer,
"
Promozione di intercultura; convegno economia criminale: usura, lavoro minorile, ecc": PromozioneDiInterculturaLayer,
"
Dire, Fare e Giocare": direfaregiocareLayer,
"
Camminando per Genova": camminandopergenovaLayer,
"
Arte Soprana": ArteSopranaLayer,
"
Il Mondo in casa": IlMondoInCasaLayer,
"
La Luna al guinzaglio": LaLunaAlGuinzaglioLayer,
"
Una_Rotonda sul Righi": UnaRotondaSulRighiLayer,
},
};
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 associazioneBalgasarBH = new Bloodhound({
name: "RaccordoFamiglia-scuola-territorio",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: associazioneBalgasarSearch,
limit: 10
});
associazioneBalgasarBH.initialize();
var EsposizioneMostraFotograficaGenovaC_eraUnaVoltaBH = new Bloodhound({
name: "EsposizioneMostraFotograficaGenovaC_eraUnaVolta",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: EsposizioneMostraFotograficaGenovaC_eraUnaVoltaSearch,
limit: 10
});
EsposizioneMostraFotograficaGenovaC_eraUnaVoltaBH.initialize();
var AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereBH = new Bloodhound({
name: "AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereSearch,
limit: 10
});
AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereBH.initialize();
var settembrataBH = new Bloodhound({
name: "settembrata",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: settembrataSearch,
limit: 10
});
settembrataBH.initialize();
var circumnavigandoBH = new Bloodhound({
name: "circumnavigando",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: circumnavigandoSearch,
limit: 10
});
circumnavigandoBH.initialize();
var culturaCambiaIlMondoDiscriminazioneBH = new Bloodhound({
name: "culturaCambiaIlMondoDiscriminazione",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: culturaCambiaIlMondoDiscriminazioneSearch,
limit: 10
});
culturaCambiaIlMondoDiscriminazioneBH.initialize();
var MostraSuOreginaAnticaBH = new Bloodhound({
name: "MostraSuOreginaAntica",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: MostraSuOreginaAnticaSearch,
limit: 10
});
MostraSuOreginaAnticaBH.initialize();
var culturaCambiaIlMondoStereotipiBH = new Bloodhound({
name: "culturaCambiaIlMondoStereotipi",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: culturaCambiaIlMondoStereotipiSearch,
limit: 10
});
culturaCambiaIlMondoStereotipiBH.initialize();
var PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaBH = new Bloodhound({
name: "PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaSearch,
limit: 10
});
PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaBH.initialize();
var divulgazioneScientificaBH = new Bloodhound({
name: "divulgazioneScientifica",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: divulgazioneScientificaSearch,
limit: 10
});
divulgazioneScientificaBH.initialize();
var electroparkFestivalBH = new Bloodhound({
name: "electroparkFestival",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: electroparkFestivalSearch,
limit: 10
});
electroparkFestivalBH.initialize();
var filmPerTuttiBH = new Bloodhound({
name: "filmPerTutti",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: filmPerTuttiSearch,
limit: 10
});
filmPerTuttiBH.initialize();
var ghostTourBH = new Bloodhound({
name: "ghostTour",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: ghostTourSearch,
limit: 10
});
ghostTourBH.initialize();
var piccolaBibliotecaBH = new Bloodhound({
name: "piccolaBiblioteca",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: piccolaBibliotecaSearch,
limit: 10
});
piccolaBibliotecaBH.initialize();
var MostraFotograficaZenaCummeLeaBH = new Bloodhound({
name: "Mostra _fotografica_Zena_cumm_e_a_l_ea",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: MostraFotograficaZenaCummeLeaSearch,
limit: 10
});
MostraFotograficaZenaCummeLeaBH.initialize();
var AperitiviAlloStatutoBH = new Bloodhound({
name: "AperitiviAlloStatuto",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: AperitiviAlloStatutoSearch,
limit: 10
});
AperitiviAlloStatutoBH.initialize();
var SecondoMotoradunoZena_a_ManettaBH = new Bloodhound({
name: "SecondoMotoradunoZena_a_Manetta",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: SecondoMotoradunoZena_a_ManettaSearch,
limit: 10
});
SecondoMotoradunoZena_a_ManettaBH.initialize();
var Sabato_in_piazzaBH = new Bloodhound({
name: "Sabato_in_piazza",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: Sabato_in_piazzaSearch,
limit: 10
});
Sabato_in_piazzaBH.initialize();
var IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoBH = new Bloodhound({
name: "IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoSearch,
limit: 10
});
IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoBH.initialize();
var CreativitaGuidataBH = new Bloodhound({
name: "CreativitaGuidata",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: CreativitaGuidataSearch,
limit: 10
});
CreativitaGuidataBH.initialize();
var ambienteazionegenovaBH = new Bloodhound({
name: "ambienteazionegenova",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: ambienteazionegenovaSearch,
limit: 10
});
ambienteazionegenovaBH.initialize();
var lancetteBH = new Bloodhound({
name: "lancette",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: lancetteSearch,
limit: 10
});
lancetteBH.initialize();
var inapneaciboBH = new Bloodhound({
name: "inapneacibo",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: inapneaciboSearch,
limit: 10
});
inapneaciboBH.initialize();
var pompieropoliBH = new Bloodhound({
name: "pompieropoli",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: pompieropoliSearch,
limit: 10
});
pompieropoliBH.initialize();
var PromozioneDiInterculturaBH = new Bloodhound({
name: "PromozioneDiIntercultura",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: PromozioneDiInterculturaSearch,
limit: 10
});
PromozioneDiInterculturaBH.initialize();
var CANTAMIGRANTESBH = new Bloodhound({
name: "CANTAMIGRANTES",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: CANTAMIGRANTESSearch,
limit: 10
});
CANTAMIGRANTESBH.initialize();
var direfaregiocareBH = new Bloodhound({
name: "direfaregiocare",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: direfaregiocareSearch,
limit: 10
});
direfaregiocareBH.initialize();
var camminandopergenovaBH = new Bloodhound({
name: "camminandopergenova",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: camminandopergenovaSearch,
limit: 10
});
camminandopergenovaBH.initialize();
var ArteSopranaBH = new Bloodhound({
name: "ArteSoprana",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: ArteSopranaSearch,
limit: 10
});
ArteSopranaBH.initialize();
var IlMondoInCasaBH = new Bloodhound({
name: "IlMondoInCasa",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: IlMondoInCasaSearch,
limit: 10
});
IlMondoInCasaBH.initialize();
var LaLunaAlGuinzaglioBH = new Bloodhound({
name: "LaLunaAlGuinzaglio",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: LaLunaAlGuinzaglioSearch,
limit: 10
});
LaLunaAlGuinzaglioBH.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 musicaNoRumoreBH = new Bloodhound({
name: "musicaNoRumore",
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.name);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: musicaNoRumoreSearch,
limit: 10
});
musicaNoRumoreBH.initialize();
/* instantiate the typeahead UI */
$("#searchbox").typeahead({
minLength: 3,
highlight: true,
hint: false
}, {
name: "RaccordoFamiglia-scuola-territorio",
displayKey: "name",
source: associazioneBalgasarBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "EsposizioneMostraFotograficaGenovaC_eraUnaVolta",
displayKey: "name",
source: EsposizioneMostraFotograficaGenovaC_eraUnaVoltaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere",
displayKey: "name",
source: AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "settembrata",
displayKey: "name",
source: settembrataBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "circumnavigando",
displayKey: "name",
source: circumnavigandoBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "culturaCambiaIlMondoDiscriminazione",
displayKey: "name",
source: culturaCambiaIlMondoDiscriminazioneBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "MostraSuOreginaAntica",
displayKey: "name",
source: MostraSuOreginaAnticaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "culturaCambiaIlMondoStereotipi",
displayKey: "name",
source: culturaCambiaIlMondoStereotipiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina",
displayKey: "name",
source: PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "divulgazioneScientifica",
displayKey: "name",
source: divulgazioneScientificaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "electroparkFestival",
displayKey: "name",
source: electroparkFestivalBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "filmPerTutti",
displayKey: "name",
source: filmPerTuttiBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "ghostTour",
displayKey: "name",
source: ghostTourBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "piccolaBiblioteca",
displayKey: "name",
source: piccolaBibliotecaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "Mostra _fotografica_Zena_cumm_e_a_l_ea",
displayKey: "name",
source: MostraFotograficaZenaCummeLeaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "AperitiviAlloStatuto",
displayKey: "name",
source: AperitiviAlloStatutoBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "SecondoMotoradunoZena_a_Manetta",
displayKey: "name",
source: SecondoMotoradunoZena_a_ManettaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "Sabato_in_piazza",
displayKey: "name",
source: Sabato_in_piazzaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato",
displayKey: "name",
source: IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "CreativitaGuidata",
displayKey: "name",
source: CreativitaGuidataBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "ambienteazionegenova",
displayKey: "name",
source: ambienteazionegenovaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "lancette",
displayKey: "name",
source: lancetteBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "inapneacibo",
displayKey: "name",
source: inapneaciboBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "pompieropoli",
displayKey: "name",
source: pompieropoliBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "PromozioneDiIntercultura",
displayKey: "name",
source: PromozioneDiInterculturaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "CANTAMIGRANTES",
displayKey: "name",
source: CANTAMIGRANTESBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "direfaregiocare",
displayKey: "name",
source: direfaregiocareBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "camminandopergenova",
displayKey: "name",
source: camminandopergenovaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "ArteSoprana",
displayKey: "name",
source: ArteSopranaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "IlMondoInCasa",
displayKey: "name",
source: IlMondoInCasaBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}, {
name: "LaLunaAlGuinzaglio",
displayKey: "name",
source: LaLunaAlGuinzaglioBH.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: "musicaNoRumore",
displayKey: "name",
source: musicaNoRumoreBH.ttAdapter(),
templates: {
header: "",
suggestion: Handlebars.compile(["{{name}}
{{address}}"].join(""))
}
}).on("typeahead:selected", function (obj, datum) {
if (datum.source === "RaccordoFamiglia-scuola-territorio") {
if (!map.hasLayer(associazioneBalgasarLayer)) {
map.addLayer(associazioneBalgasarLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "EsposizioneMostraFotograficaGenovaC_eraUnaVolta") {
if (!map.hasLayer(EsposizioneMostraFotograficaGenovaC_eraUnaVoltaLayer)) {
map.addLayer(EsposizioneMostraFotograficaGenovaC_eraUnaVoltaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiere") {
if (!map.hasLayer(AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereLayer)) {
map.addLayer(AttivitaEducativeConBambiniEragazziDelleScuoleEdelleAssociazioniDelQuartiereLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "settembrata") {
if (!map.hasLayer(settembrataLayer)) {
map.addLayer(settembrataLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "circumnavigando") {
if (!map.hasLayer(circumnavigandoLayer)) {
map.addLayer(circumnavigandoLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "culturaCambiaIlMondoDiscriminazione") {
if (!map.hasLayer(culturaCambiaIlMondoDiscriminazioneLayer)) {
map.addLayer(culturaCambiaIlMondoDiscriminazioneLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "MostraSuOreginaAntica") {
if (!map.hasLayer(MostraSuOreginaAnticaLayer)) {
map.addLayer(MostraSuOreginaAnticaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "culturaCambiaIlMondoStereotipi") {
if (!map.hasLayer(culturaCambiaIlMondoStereotipiLayer)) {
map.addLayer(culturaCambiaIlMondoStereotipiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOregina") {
if (!map.hasLayer(PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaLayer)) {
map.addLayer(PremioDiPoesiaDialettaleGenoveseAmiciDaRiundaOreginaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "divulgazioneScientifica") {
if (!map.hasLayer(divulgazioneScientificaLayer)) {
map.addLayer(divulgazioneScientificaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "electroparkFestival") {
if (!map.hasLayer(electroparkFestivalLayer)) {
map.addLayer(electroparkFestivalLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "filmPerTutti") {
if (!map.hasLayer(filmPerTuttiLayer)) {
map.addLayer(filmPerTuttiLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "ghostTour") {
if (!map.hasLayer(ghostTourLayer)) {
map.addLayer(ghostTourLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "piccolaBiblioteca") {
if (!map.hasLayer(piccolaBibliotecaLayer)) {
map.addLayer(piccolaBibliotecaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "Mostra _fotografica_Zena_cumm_e_a_l_ea") {
if (!map.hasLayer(MostraFotograficaZenaCummeLeaLayer)) {
map.addLayer(MostraFotograficaZenaCummeLeaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "AperitiviAlloStatuto") {
if (!map.hasLayer(AperitiviAlloStatutoLayer)) {
map.addLayer(AperitiviAlloStatutoLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "SecondoMotoradunoZena_a_Manetta") {
if (!map.hasLayer(SecondoMotoradunoZena_a_ManettaLayer)) {
map.addLayer(SecondoMotoradunoZena_a_ManettaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "Sabato_in_piazza") {
if (!map.hasLayer(Sabato_in_piazzaLayer)) {
map.addLayer(Sabato_in_piazzaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "IncontriFormativiSulMetodoAnalogicoDiCamilloBortolato") {
if (!map.hasLayer(IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoLayer)) {
map.addLayer(IncontriFormativiSulMetodoAnalogicoDiCamilloBortolatoLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "CreativitaGuidata") {
if (!map.hasLayer(CreativitaGuidataLayer)) {
map.addLayer(CreativitaGuidataLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "ambienteazionegenova") {
if (!map.hasLayer(ambienteazionegenovaLayer)) {
map.addLayer(ambienteazionegenovaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "lancette") {
if (!map.hasLayer(lancetteLayer)) {
map.addLayer(lancetteLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "inapneacibo") {
if (!map.hasLayer(inapneaciboLayer)) {
map.addLayer(inapneaciboLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "pompieropoli") {
if (!map.hasLayer(pompieropoliLayer)) {
map.addLayer(pompieropoliLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "PromozioneDiIntercultura") {
if (!map.hasLayer(PromozioneDiInterculturaLayer)) {
map.addLayer(PromozioneDiInterculturaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "CANTAMIGRANTES") {
if (!map.hasLayer(CANTAMIGRANTESLayer)) {
map.addLayer(CANTAMIGRANTESLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "direfaregiocare") {
if (!map.hasLayer(direfaregiocareLayer)) {
map.addLayer(direfaregiocareLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "camminandopergenova") {
if (!map.hasLayer(camminandopergenovaLayer)) {
map.addLayer(camminandopergenovaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "ArteSoprana") {
if (!map.hasLayer(ArteSopranaLayer)) {
map.addLayer(ArteSopranaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "IlMondoInCasa") {
if (!map.hasLayer(IlMondoInCasaLayer)) {
map.addLayer(IlMondoInCasaLayer);
}
map.setView([datum.lat, datum.lng], 17);
if (map._layers[datum.id]) {
map._layers[datum.id].fire("click");
}
}
if (datum.source === "LaLunaAlGuinzaglio") {
if (!map.hasLayer(LaLunaAlGuinzaglioLayer)) {
map.addLayer(LaLunaAlGuinzaglioLayer);
}
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 === "musicaNoRumore") {
if (!map.hasLayer(musicaNoRumoreLayer)) {
map.addLayer(musicaNoRumoreLayer);
}
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);
}