Free javascript Hosting


mfy-ukir.js

Uploaded on Jan 10 2022 19:26 by vdechartres

// Essai de groupement non encore réussi



// var monum = L.WMS.overlay('http://mappingforyou.eu/geoserver/wms?', {

// layers: 'france.patrim.mhareas',

// 'format': 'image/png',

// 'transparent': true,

// });

// var mon = L.layerGroup([featureLayer, monum]);





// Categories



// panel layers

// base layers fonctionne sur la même architecture, mais je n'en veux pas donc caché

var baseLayers = [

// {

// name: "Carte paysagère",

// layer: vdlibraries

// },

];






var overLayers = [
{
group: " ",
layers: [

{
name: "Aerial view (amharc ón aer)",
layer: L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {

})
},

{
active: false,
name: "Accommodation (cóiríocht)",
icon: '<i class="icon icon-tente"></i>',
layer: {
type: "tileLayer.wms",
args: ["http://mappingforyou.eu/geoserver/wms", {
layers: 'ukir.poi.hebergement',
format: 'image/png',
maxZoom: 20,
transparent: true,
//minZoom: 13
}
]
}
},
{
active: false,
name: "Eating out (athchóiriú)",
icon: '<i class="icon icon-restaurant"></i>',
layer: {
type: "tileLayer.wms",
args: ["http://mappingforyou.eu/geoserver/wms", {
layers: 'ukir.poi.barrest',
format: 'image/png',
transparent: true,
maxZoom: 20,
//minZoom: 13
}
]
}
},
{
active: false,
name: "Stores (siopaí)",
icon: '<i class="icon icon-supermarche"></i>',
layer: {
type: "tileLayer.wms",
args: ["http://mappingforyou.eu/geoserver/wms", {
layers: 'ukir.poi.stores',
format: 'image/png',
maxZoom: 20,
transparent: true,
//minZoom: 13
}
]
}
},

{
active: false,
name: "Services/emerg. (seirbhísí/éigeand.",
icon: '<i class="icon icon-emergency"></i>',
layer: {
type: "tileLayer.wms",
args: ["http://mappingforyou.eu/geoserver/wms", {
layers: 'ukir.poi.services',
format: 'image/png',
maxZoom: 20,
transparent: true,
//minZoom: 13
}
]
}
},

{
active: false,
name: "Going out (rudaí le déanamh)",
icon: '<i class="icon icon-loisirs"></i>',
layer: {
type: "tileLayer.wms",
args: ["http://mappingforyou.eu/geoserver/wms", {
layers: 'ukir.poi.loisirs',
format: 'image/png',
maxZoom: 20,
transparent: true,
//minZoom: 13
}
]
}

},

{
active: false,
name: "Listed bldgs (foirgnimh liostaithe)",
icon: '<i class="icon icon-monument"></i>',
layer: {
type: "tileLayer.wms",
args: ["http://mappingforyou.eu/geoserver/wms", {
layers: 'ukir.patrim.listed.aclassuk',
format: 'image/png',
maxZoom: 20,
transparent: true,
//minZoom: 13
}
]
}

},



{
active: true,
name: "Photos Flickr",
icon: '<i class="icon icon-monument"></i>',
layer: flickr,
},




{

name: "Roads (bóithre)",

icon: '<i class="icon icon-road"></i>',

layer: L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lines/{z}/{x}/{y}{r}.{ext}', {

maxZoom:20,



})

},



{

name: "Cycling (lánaí rothar)",

icon: '<i class="icon icon-velo"></i>',

layer: L.tileLayer('https://tile.waymarkedtrails.org/cycling/{z}/{x}/{y}.png', {

maxZoom:20,



})

},






{

name: "Hiking (trek)",

icon: '<i class="icon icon-randonnee"></i>',

layer: L.tileLayer('https://tile.waymarkedtrails.org/hiking/{z}/{x}/{y}.png', {

maxZoom:20,



})

},



{

name: "Skiing (sciála)",

icon: '<i class="icon icon-mountains"></i>',

layer: L.tileLayer('https://tiles.opensnowmap.org/pistes/{z}/{x}/{y}.png', {

maxZoom:20,



})

},





{
active: false,
name: "Contour lines (líne chomhrianach))",
icon: '<i class="icon icon-mountains"></i>',
layer: {
type: "tileLayer.wms",
args: ["https://ows.terrestris.de/osm/service?", {
layers: 'SRTM30-Contour',
format: 'image/png',
transparent: true,
//minZoom: 13
}
]
}

},



{

active: false,

name: "Drawn items",

icon: '<i class="icon icon-monument"></i>',

layer: drawnItems,

},





// {
// active: true,
// name: "River",
// layer: (function() {
// var l = L.geoJson();
// $.getJSON('data/river.json', function(j) {
// l.addData(j);
// });
// return l;
// }())
// },
]
},

];





// panel

var panelLayers = new L.Control.PanelLayers(baseLayers, overLayers, {

compact: true,

collapsed: true,

collapsibleGroups: true

});


map.addControl(panelLayers);

Back to list