Upload files to "js"
This commit is contained in:
parent
33ec087c4a
commit
5505313648
6 changed files with 3140 additions and 0 deletions
565
js/layers.js
Normal file
565
js/layers.js
Normal file
|
|
@ -0,0 +1,565 @@
|
|||
// *** map ***
|
||||
var map;
|
||||
|
||||
function runMap(){
|
||||
|
||||
map = new L.Map('map', {
|
||||
// österreich
|
||||
center: [47.3528, 13.1837],
|
||||
zoom: 8,
|
||||
// Feldkirch
|
||||
// center: [47.2488, 9.5972],
|
||||
// zoom:14,
|
||||
zoomControl: false,
|
||||
maxBounds: L.latLngBounds([[49.017428776484316, 9.53449775395898],[46.40945029545016, 17.127066591654227]]).pad(0.5)
|
||||
});
|
||||
|
||||
// *** var to link ...***
|
||||
var link1 = '"https://gis.geologie.ac.at/geoserver/'
|
||||
var link2 = '/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style='
|
||||
|
||||
// *** create OSM layer ... ***
|
||||
var osm = new L.TileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||
{
|
||||
attribution: 'Map data <a href="https://openstreetmap.org">OpenStreetMap</a> contributors' }
|
||||
)
|
||||
.addTo(map)
|
||||
;
|
||||
var opentopomap = new L.TileLayer('https://{a|b|c}.tile.opentopomap.org/{z}/{x}/{y}.png',
|
||||
{
|
||||
attribution:'© OpenStreetMap-Mitwirkende, SRTM | Kartendarstellung: © OpenTopoMap (CC-BY-SA)'
|
||||
}
|
||||
);
|
||||
var geolandbasemap = new L.tileLayer("https://{s}.wien.gv.at/basemap/geolandbasemap/normal/google3857/{z}/{y}/{x}.png",
|
||||
{
|
||||
attribution: 'Map data <a href="https://basemap.at">basemap.at</a>',
|
||||
subdomains : ['maps', 'maps1', 'maps2', 'maps3', 'maps4'],}
|
||||
);
|
||||
var bmapoverlay = new L.tileLayer("https://{s}.wien.gv.at/basemap/bmapoverlay/normal/google3857/{z}/{y}/{x}.png",
|
||||
{
|
||||
attribution: 'Map data <a href="https://basemap.at">basemap.at</a>',
|
||||
subdomains : ['maps', 'maps1', 'maps2', 'maps3', 'maps4'],}
|
||||
);
|
||||
var grau = new L.tileLayer("https://{s}.wien.gv.at/basemap/bmapgrau/normal/google3857/{z}/{y}/{x}.png",
|
||||
{
|
||||
attribution: 'Map data <a href="https://basemap.at">basemap.at</a>',
|
||||
subdomains : ['maps', 'maps1', 'maps2', 'maps3', 'maps4'],}
|
||||
);
|
||||
|
||||
var bmaporthofoto30cm = new L.tileLayer("https://maps{s}.wien.gv.at/basemap/bmaporthofoto30cm/normal/google3857/{z}/{y}/{x}.jpeg",
|
||||
{
|
||||
attribution : '&copy <a href=”https://basemap.at” target=”_blank”>basemap.at</a>',
|
||||
subdomains : ["", "1", "2", "3", "4"],
|
||||
maxZoom : 19
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
var bmapoberflaeche = new L.tileLayer("https://maps{s}.wien.gv.at/basemap/bmapoberflaeche/grau/google3857/{z}/{y}/{x}.jpeg",
|
||||
{
|
||||
attribution : '&copy <a href=”https://basemap.at” target=”_blank”>basemap.at</a>',
|
||||
subdomains : ["", "1", "2", "3", "4"],
|
||||
maxZoom : 19
|
||||
}
|
||||
);
|
||||
var bmapgelaende = new L.tileLayer("https://maps{s}.wien.gv.at/basemap/bmapgelaende/grau/google3857/{z}/{y}/{x}.jpeg",
|
||||
{
|
||||
attribution : '&copy <a href=”https://basemap.at” target=”_blank”>basemap.at</a>',
|
||||
subdomains : ["", "1", "2", "3", "4"],
|
||||
maxZoom : 19
|
||||
}
|
||||
);
|
||||
|
||||
// bmapoberflaeche/grau/google3857/18/91745/141702.jpeg.
|
||||
// bmapgelaende/grau/google3857/18/91743/141700.jpeg
|
||||
// bmaporthofoto30cm/normal/google3857/20/366969/566855.jpeg.
|
||||
// bmaphidpi/normal/google3857/20/366968/566460.jpeg
|
||||
|
||||
|
||||
// var bmapoberflaeche = new L.tileLayer("https://{s}.wien.gv.at/basemap/bmapgelaende/normal/google3857/{z}/{y}/{x}.jpeg",
|
||||
// {
|
||||
// attribution: 'Map data <a href="https://basemap.at">basemap.at</a>',
|
||||
// subdomains : ['maps', 'maps1', 'maps2', 'maps3', 'maps4'],
|
||||
// });
|
||||
// var bmapoberflaeche = new L.TileLayer("https://www.basemap.at/wmts/1.0.0/WMTSCapabilities.xml",
|
||||
/* var bmapoberflaeche = new L.wms.overlay('https://maps.wien.gv.at/basemap/wms', {
|
||||
pane: 'pane_GeolandBasemapGelnde_0',
|
||||
layers: 'bmapgelaende',
|
||||
tilematrixSet: 'google3857_0-17',
|
||||
format: 'image/jpeg',
|
||||
style: 'grau',
|
||||
uppercase: true,
|
||||
transparent: true,
|
||||
continuousWorld : true,
|
||||
opacity: 1.0,
|
||||
attribution: '',
|
||||
}); */
|
||||
var light = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',{
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://cartodb.com/attributions">CartoDB</a>'
|
||||
});
|
||||
|
||||
var dark = L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',{
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://cartodb.com/attributions">CartoDB</a>'
|
||||
});
|
||||
|
||||
|
||||
// *** add gba group layer ge_einheiten ***
|
||||
var urlein = 'https://gis.geologie.ac.at/geoserver/ge_einheiten/wms';
|
||||
var h = new Object();
|
||||
// *** add gba group layer ge_tectline ***
|
||||
var url_tect = 'https://gis.geologie.ac.at/geoserver/ge_tectlines/wms';
|
||||
var h = new Object();
|
||||
|
||||
// *** add gba group layer ge_geophysic ***
|
||||
var url_phy = 'https://gis.geologie.ac.at/geoserver/gp_geophysik/wms';
|
||||
var h = new Object();
|
||||
|
||||
// *** add gba group layer mr_lagerst ***
|
||||
var url_lagerst = 'https://gis.geologie.ac.at/geoserver/mr_lagerst/wms';
|
||||
var h = new Object();
|
||||
// *** add gba group layer ge_hg_hydgeol ***
|
||||
var url_well = 'https://gis.geologie.ac.at/geoserver/hg_hydgeol/wms';
|
||||
var h = new Object();
|
||||
|
||||
// *** add gba group layer ge_risken ***
|
||||
var url_nz = 'https://gis.geologie.ac.at/geoserver/nz_risiken/wms';
|
||||
var h = new Object();
|
||||
|
||||
// *** add gba group layer ge_hg_aquifer500 ***
|
||||
var url_aqu = 'https://gis.geologie.ac.at/geoserver/hg_aquifer500/wms';
|
||||
var h = new Object();
|
||||
/*
|
||||
// *** add gba group layer ge_lagerst ***
|
||||
var url = 'https://gis.geologie.ac.at/geoserver/ge_lagerst/wms';
|
||||
var h = new Object();
|
||||
*/
|
||||
|
||||
// *** gba layer ge_einheiten ***
|
||||
|
||||
var attribution = ' | (c) <a href="https://www.geosphere.at"> GeoSphere Austria <img src="favicon96.png" width="12" ><a href="mailto:inspire@geologie.ac.at"> mail | </a>'
|
||||
|
||||
//50k.AgeOfRocks
|
||||
var GE_GeologicUnit_k50_AgeOfRocks = new L.tileLayer.betterWms(urlein, {
|
||||
layers: 'ge_einheiten:GE.GeologicUnit.50k.AgeOfRocks ',
|
||||
styles:'GE.GeologicUnit.50k.AgeOfRocks',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var GE_GeologicUnit_k50_AgeOfRocks_Legend = "https://gis.geologie.ac.at/geoserver/ge_einheiten/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicUnit.50k.AgeOfRocks";
|
||||
h["Geologic Units 50k - Age"] = GE_GeologicUnit_k50_AgeOfRocks_Legend;
|
||||
|
||||
//200k.AgeOfRocks
|
||||
var GE_GeologicUnit_k200_AgeOfRocks = new L.tileLayer.betterWms(urlein, {
|
||||
layers: 'ge_einheiten:GE.GeologicUnit.200k.AgeOfRocks ',
|
||||
styles:'GE.GeologicUnit.200k.AgeOfRocks',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var GE_GeologicUnit_k200_AgeOfRocks_Legend = "https://gis.geologie.ac.at/geoserver/ge_einheiten/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicUnit.200k.AgeOfRocks";
|
||||
h["Geologic Units 200k - Age"] = GE_GeologicUnit_k200_AgeOfRocks_Legend;
|
||||
|
||||
//k500.AgeOfRocks
|
||||
var GE_GeologicUnit_k500_AgeOfRocks = new L.tileLayer.betterWms(urlein, {
|
||||
layers: 'ge_einheiten:GE.GeologicUnit.500k.AgeOfRocks ',
|
||||
styles:'GE.GeologicUnit.500k.AgeOfRocks',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var GE_GeologicUnit_k500_AgeOfRocks_Legend = "https://gis.geologie.ac.at/geoserver/ge_einheiten/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicUnit.500k.AgeOfRocks";
|
||||
h["Geologic Units 500k - Age"] = GE_GeologicUnit_k500_AgeOfRocks_Legend;
|
||||
// *** GeologicUnit_1M_AgeOfRocks ***
|
||||
var GE_GeologicUnit_1M_AgeOfRocks = new L.tileLayer.betterWms(urlein, {
|
||||
layers: 'ge_einheiten:GE.GeologicUnit.1M.AgeOfRocks',
|
||||
styles:'GE.GeologicUnit.1000k.AgeOfRocks',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var ge_einheiten_GE_GeologicUnit_1M_AgeOfRocks = "https://gis.geologie.ac.at/geoserver/ge_einheiten/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicUnit.1000k.AgeOfRocks";
|
||||
h["Geologic Units 1 Mio. - Age"] = ge_einheiten_GE_GeologicUnit_1M_AgeOfRocks;
|
||||
|
||||
var GE_GeologicUnit_k50_Lithology = new L.tileLayer.betterWms(urlein, {
|
||||
layers: 'ge_einheiten:GE.GeologicUnit.50k.Lithology ',
|
||||
styles:'GE.GeologicUnit.50k.Lithology',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var GE_GeologicUnit_k50_Lithology_Legend = "https://gis.geologie.ac.at/geoserver/ge_einheiten/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicUnit.50k.Lithology";
|
||||
h["Geologic Units 50k - Lithology"] = GE_GeologicUnit_k50_Lithology_Legend;
|
||||
// 200k Lithology
|
||||
var GE_GeologicUnit_200k_Lithology = new L.tileLayer.betterWms(urlein, {
|
||||
layers: 'ge_einheiten:GE.GeologicUnit.200k.Lithology',
|
||||
styles:'GE.GeologicUnit.200k.Lithology',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var GE_GeologicUnit_200k_Lithology_Legend = "https://gis.geologie.ac.at/geoserver/ge_einheiten/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicUnit.200k.Lithology";
|
||||
h["Geologic Units 200k - Lithology"] = GE_GeologicUnit_200k_Lithology_Legend;
|
||||
|
||||
// 500k Lithology
|
||||
var GE_GeologicUnit_k500_Lithology = new L.tileLayer.betterWms(urlein, {
|
||||
layers: 'ge_einheiten:GE.GeologicUnit.500k.Lithology',
|
||||
styles:'GE.GeologicUnit.500k.Lithology',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var GE_GeologicUnit_k500_Lithology_Legend = "https://gis.geologie.ac.at/geoserver/ge_einheiten/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicUnit.500k.Lithology";
|
||||
h["Geologic Units 500k - Lithology"] = GE_GeologicUnit_k500_Lithology_Legend;
|
||||
|
||||
// 1M Lithology
|
||||
var GE_GeologicUnit_1M_Lithology = new L.tileLayer.betterWms(urlein, {
|
||||
layers: 'ge_einheiten:GE.GeologicUnit.1M.Lithology',
|
||||
styles:'GE.GeologicUnit.1000k.Lithology',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var GE_GeologicUnit_1M_Lithology_Legend = "https://gis.geologie.ac.at/geoserver/ge_einheiten/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicUnit.1000k.Lithology";
|
||||
h["Geologic Units 1 Mio. - Lithology"] = GE_GeologicUnit_1M_Lithology_Legend;
|
||||
|
||||
|
||||
// *** Tektonische Linien Österreich ... ***
|
||||
|
||||
// ge_tectlines:GE.GeologicFault.1Mio
|
||||
var ge_tectlines_GE_GeologicFault_1Mio = new L.tileLayer.betterWms(url_tect, {
|
||||
layers: 'ge_tectlines:GE.GeologicFault.1Mio',
|
||||
styles:'GE.GeologicFault.1Mio',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.8
|
||||
});
|
||||
var ge_tectlines_GE_GeologicFault_1Mio_Legend = "https://gis.geologie.ac.at/geoserver/ge_tectlines/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicFault.1Mio";
|
||||
h["Geologic Faults 1 Mio."] = ge_tectlines_GE_GeologicFault_1Mio_Legend;
|
||||
|
||||
// ge_tectlines:GE.GeologicFault.50k
|
||||
var ge_tectlines_GE_GeologicFault_50k = new L.tileLayer.betterWms(url_tect, {
|
||||
layers: 'ge_tectlines:GE.GeologicFault.50k',
|
||||
styles:'GE.GeologicFault.50k',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.8
|
||||
});
|
||||
var ge_tectlines_GE_GeologicFault_50k_Legend = "https://gis.geologie.ac.at/geoserver/ge_tectlines/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.GeologicFault.50k";
|
||||
h["Geologic Faults 50k"] = ge_tectlines_GE_GeologicFault_50k_Legend;
|
||||
|
||||
// *** gp_geophysik ... ***
|
||||
|
||||
// gp_geophysik:GE.AirborneGeophysicalSurvey
|
||||
var GE_AirborneGeophysicalSurvey = new L.tileLayer.betterWms(url_phy, {
|
||||
layers: 'gp_geophysik:GE.AirborneGeophysicalSurvey',
|
||||
styles:'GE.airborneGeophysicalSurvey',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 1
|
||||
});
|
||||
var GE_AirborneGeophysicalSurvey_Legend = "https://gis.geologie.ac.at/geoserver/gp_geophysik/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.airborneGeophysicalSurvey";
|
||||
h["Airborne geophysical surveys"] = GE_AirborneGeophysicalSurvey_Legend;
|
||||
|
||||
// gp_geophysik:GE.GeoradarProfile
|
||||
var gp_geophysik_GE_GeoradarProfile = new L.tileLayer.betterWms(url_phy, {
|
||||
layers: 'gp_geophysik:GE.GeoradarProfile',
|
||||
styles:'GE.georadarProfile',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 1
|
||||
});
|
||||
var gp_geophysik_GE_GeoradarProfile_Legend = "https://gis.geologie.ac.at/geoserver/gp_geophysik/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.georadarProfile";
|
||||
h["Georadar profiles"] = gp_geophysik_GE_GeoradarProfile_Legend;
|
||||
|
||||
// gp_geophysik:GE.MultielectrodeDCProfile
|
||||
var GE_MultielectrodeDCProfile = new L.tileLayer.betterWms(url_phy, {
|
||||
layers: 'gp_geophysik:GE.MultielectrodeDCProfile',
|
||||
styles:'GE.multielectrodeDCProfile',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 1
|
||||
});
|
||||
var GE_MultielectrodeDCProfile_Legend = "https://gis.geologie.ac.at/geoserver/gp_geophysik/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.multielectrodeDCProfile";
|
||||
h["Multi-electrode dc profiles"] = GE_MultielectrodeDCProfile_Legend;
|
||||
|
||||
// gp_geophysik:GE.SeismicLine
|
||||
var GE_SeismicLine = new L.tileLayer.betterWms(url_phy, {
|
||||
layers: 'gp_geophysik:GE.SeismicLine',
|
||||
styles:'GE.seismicLine',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 1
|
||||
});
|
||||
var GE_SeismicLine_Legend = "https://gis.geologie.ac.at/geoserver/gp_geophysik/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.seismicLine";
|
||||
h["Seismic lines"] = GE_SeismicLine_Legend;
|
||||
|
||||
// *** Mineral Occurrence ... ***
|
||||
// mr_lagerst:MR.MineralOccurrence
|
||||
var MR_MineralOccurrence = new L.tileLayer.betterWms(url_lagerst, {
|
||||
layers: 'mr_lagerst:MR.MineralOccurrence',
|
||||
styles:'MR.MineralOccurrence',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 1
|
||||
});
|
||||
var MR_MineralOccurrence_Legend = "https://gis.geologie.ac.at/geoserver/mr_lagerst/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=MR.MineralOccurrence";
|
||||
h["Mineral Occurrences"] = MR_MineralOccurrence_Legend;
|
||||
|
||||
// *** Active Wells ... ***
|
||||
// hg_hydgeol:GE.ActiveWell
|
||||
var hg_hydgeol_GE_ActiveWell = new L.tileLayer.betterWms(url_well, {
|
||||
layers: 'hg_hydgeol:GE.ActiveWell',
|
||||
styles:'GE.ActiveWell',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 1
|
||||
});
|
||||
var GE_ActiveWell_Legend = "https://gis.geologie.ac.at/geoserver/hg_hydgeol/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.ActiveWell";
|
||||
h["Active Wells"] = GE_ActiveWell_Legend;
|
||||
|
||||
// Natural Hydrogeological Objects hg_hydgeol:GE.HydrogeologicalObjectNatural
|
||||
var GE_HydrogeologicalObjectNatural = new L.tileLayer.betterWms(url_well, {
|
||||
layers: 'hg_hydgeol:GE.HydrogeologicalObjectNatural',
|
||||
styles:'GE.HydrogeologicalObjectNatural',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 1
|
||||
});
|
||||
var GE_HydrogeologicalObjectNatural_Legend = "https://gis.geologie.ac.at/geoserver/hg_hydgeol/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.HydrogeologicalObjectNatural";
|
||||
h["Natural Hydrogeological Objects"] = GE_HydrogeologicalObjectNatural_Legend;
|
||||
|
||||
// Aquifers hg_aquifer500:GE.Aquifer
|
||||
var hg_aquifer500_GE_Aquifer = new L.tileLayer.betterWms(url_aqu, {
|
||||
layers: 'hg_aquifer500:GE.Aquifer',
|
||||
styles:'GE.Aquifer.MediaType',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 0.5
|
||||
});
|
||||
var GE_Aquifer_MediaType_Legend = "https://gis.geologie.ac.at/geoserver/hg_aquifer500/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=GE.Aquifer.MediaType";
|
||||
h["Aquifers 500k"] = GE_Aquifer_MediaType_Legend;
|
||||
|
||||
// *** NZ Risken ... ***
|
||||
// nz_risiken:NZ.ObservedEvent
|
||||
var NZ_ObservedEvent = new L.tileLayer.betterWms(url_nz, {
|
||||
layers: 'nz_risiken:NZ.ObservedEvent',
|
||||
styles:'NZ.ObservedEvent',
|
||||
transparent: true,
|
||||
attribution: attribution,
|
||||
format: 'image/png',
|
||||
pointerCursor: true,
|
||||
opacity: 1
|
||||
});
|
||||
var NZ_ObservedEvent_Legend = "https://gis.geologie.ac.at/geoserver/hg_hydgeol/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=NZ.ObservedEvent";
|
||||
h["Observed Event (Media)"] = NZ_ObservedEvent_Legend;
|
||||
|
||||
// *** Basislayer ... ***
|
||||
var overlays = [
|
||||
{
|
||||
groupName : "Basemap",
|
||||
expanded : false,
|
||||
layers : {
|
||||
"bmapoberflaeche": bmapoberflaeche,
|
||||
"bmapgelaende": bmapgelaende,
|
||||
"basemap.at": geolandbasemap,
|
||||
"basemap grau": grau,
|
||||
"bmaporthofoto30cm": bmaporthofoto30cm,
|
||||
"OSM light": light,
|
||||
"OSM dark": dark,
|
||||
"OSM": osm
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
//bmapgelaende, bmapoberflaeche, bmaporthofoto30cm, bmaphidpi, bmapgrau, bmapoverlay, geolandbasemap
|
||||
|
||||
// *** Overlay Layer ... ***
|
||||
var baseLayers = [
|
||||
|
||||
{
|
||||
groupName : "Geology (GE)",
|
||||
expanded : false,
|
||||
layers: {
|
||||
"Geologic Units 1:50k - Age":GE_GeologicUnit_k50_AgeOfRocks,
|
||||
"Geologic Units 1:50k - Lithology":GE_GeologicUnit_k50_Lithology,
|
||||
"Geologic Units 1:200k - Age":GE_GeologicUnit_k200_AgeOfRocks,
|
||||
"Geologic Units 1:200k - Lithology":GE_GeologicUnit_200k_Lithology,
|
||||
"Geologic Units 1:500k - Age":GE_GeologicUnit_k500_AgeOfRocks,
|
||||
"Geologic Units 1:500k - Lithology":GE_GeologicUnit_k500_Lithology,
|
||||
"Geologic Units 1:1M - Age":GE_GeologicUnit_1M_AgeOfRocks,
|
||||
"Geologic Units 1:1M - Lithology":GE_GeologicUnit_1M_Lithology,
|
||||
"Geologic Faults 1:1M":ge_tectlines_GE_GeologicFault_1Mio,
|
||||
"Geologic Faults 1:50k":ge_tectlines_GE_GeologicFault_50k
|
||||
}},
|
||||
|
||||
{
|
||||
groupName : "Geophysics (GE)",
|
||||
expanded : false,
|
||||
layers : {
|
||||
// Layer
|
||||
"Airborne geophysical surveys":GE_AirborneGeophysicalSurvey,
|
||||
"Georadar profiles":gp_geophysik_GE_GeoradarProfile,
|
||||
"Multi-electrode dc profiles":GE_MultielectrodeDCProfile,
|
||||
"Seismic lines":GE_SeismicLine
|
||||
|
||||
}},
|
||||
{
|
||||
groupName :"Hydrogeology (GE)",
|
||||
expanded :false,
|
||||
layers : {
|
||||
// Layer
|
||||
"Active Wells":hg_hydgeol_GE_ActiveWell,
|
||||
"Natural Hydrogeological Objects":GE_HydrogeologicalObjectNatural,
|
||||
"Aquifers 500k":hg_aquifer500_GE_Aquifer
|
||||
}
|
||||
},
|
||||
|
||||
/* {
|
||||
groupName : "Tectlines",
|
||||
expanded : false,
|
||||
layers : {
|
||||
// Layer
|
||||
|
||||
|
||||
}},
|
||||
*/
|
||||
{
|
||||
groupName : "Mineral resources (MR)",
|
||||
expanded : false,
|
||||
layers : {
|
||||
// Layer
|
||||
"Mineral Occurrences":MR_MineralOccurrence
|
||||
}},
|
||||
|
||||
{
|
||||
groupName :"Natural risk zones (NZ)",
|
||||
expanded :false,
|
||||
layers : {
|
||||
// Layer
|
||||
"Observed Event (Media)":NZ_ObservedEvent
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
// *** Layer menue ... ***
|
||||
var options = {
|
||||
container_width : "380px",
|
||||
container_maxHeight : "450px",
|
||||
group_maxHeight : "800px",
|
||||
exclusive : false
|
||||
};
|
||||
|
||||
var info = L.control({position: 'topright'});
|
||||
|
||||
// *** Überschrift und Layername ... ***
|
||||
info.onAdd = function (map) {
|
||||
this._div = L.DomUtil.create('div', 'info');
|
||||
this.update('<h3><img src="logo_gsa.png" alt="INSPIRE" title="GBA" width="25" /> GBA INSPIRE Services</h3>');
|
||||
return this._div;
|
||||
};
|
||||
info.update = function (props) {
|
||||
this._div.innerHTML = props;
|
||||
};
|
||||
info.addTo(map);
|
||||
|
||||
// *** Zoom Control ... ***
|
||||
var zoomControl = new L.Control.Zoom({position: 'topright'}).addTo(map);
|
||||
|
||||
// *** Suche nach ort ... ***
|
||||
map.addControl(L.control.search());
|
||||
/* var osmGeocoder = new L.Control.Geocoder({
|
||||
collapsed: true,
|
||||
position: 'topleft',
|
||||
text: 'Search',
|
||||
title: 'Testing'
|
||||
}).addTo(map);
|
||||
document.getElementsByClassName('leaflet-control-geocoder-icon')[0]
|
||||
.className += ' fa fa-search';
|
||||
document.getElementsByClassName('leaflet-control-geocoder-icon')[0]
|
||||
.title += 'Search for a place'; */
|
||||
|
||||
|
||||
// *** Layer Control ... ***
|
||||
var control = L.Control.styledLayerControl(baseLayers, overlays, options).addTo(map);
|
||||
// *** geolocation ****
|
||||
// map.locate({setView: true, maxZoom: 16});
|
||||
|
||||
// function onLocationFound(e) {
|
||||
// var radius = e.accuracy;
|
||||
//
|
||||
// L.marker(e.latlng).addTo(map)
|
||||
// .bindPopup("You are within " + radius + " meters from this point").openPopup();
|
||||
//
|
||||
// L.circle(e.latlng, radius).addTo(map);
|
||||
// }
|
||||
|
||||
// map.on('locationfound', onLocationFound);
|
||||
|
||||
// function onLocationError(e) {
|
||||
// alert(e.message);
|
||||
// }
|
||||
|
||||
// map.on('locationerror', onLocationError);
|
||||
|
||||
// *** Sidebar ... ***
|
||||
try{
|
||||
var sidebar = L.control.sidebar('sidebar').addTo(map);
|
||||
}catch(e){}
|
||||
|
||||
// *** Tausch der Überschrift ... ***
|
||||
map.on('baselayerchange', function (eventLayer) {
|
||||
// Switch to the legend...
|
||||
try{
|
||||
legend.removeFrom(map);
|
||||
} catch(e){}
|
||||
// legend = L.wmsLegend(h[eventLayer.name]);
|
||||
info.update('<h3><img src="logo_gsa.png" alt="INSPIRE" title="GSA" width="25" /> GeoSphere INSPIRE Services<br><br>' + eventLayer.name + '</h3>');
|
||||
|
||||
// *** Switch to to location ***
|
||||
if (eventLayer.name.indexOf("Geologic Units 200k - Age") > -1){
|
||||
map.setView(new L.LatLng(47.4688, 12.7772), 10);
|
||||
} else if (eventLayer.name.indexOf("Wien") > -1){
|
||||
map.setView(new L.LatLng(48.20077376, 16.25000000), 13);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue