Closed robyngit closed 6 months ago
From https://github.com/NCEAS/metacatui/issues/2360 (duplicate):
Having more base layer options is (almost) always preferable. Sometimes a feature is easier to visualize on a topo map versus the flat OSM.
OSM
OTM
These are the changes I made locally:
initialAppearance
object{
label: "OpenTopoMap",
icon: "urn:uuid:ff153eab-490b-46a4-b11e-47e0592735f6",
type: "OpenStreetMapImageryProvider",
visible: false,
description: "OpenTopoMap is a free topographic map generated from OpenStreetMap and SRTM elevation data. The map style is based on the official maps and relies on good readability through high contrast and balanced signatures.",
attribution: "Stefan Erhardt",
moreInfoLink: "https://opentopomap.org/credits",
cesiumOptions: {
url: "https://a.tile.opentopomap.org/"
},
opacity: 0.4,
// Make the base map grayscale
saturation: 0.1
},
{
label: "OpenStreetMaps",
icon: "urn:uuid:ff153eab-490b-46a4-b11e-47e0592735f6",
type: "OpenStreetMapImageryProvider",
description: "OpenStreetMap is built by a community of mappers that contribute and maintain data about roads, trails, cafés, railway stations, and much more, all over the world.",
attribution: "OpenStreetMap's community is diverse, passionate, and growing every day. Our contributors include enthusiast mappers, GIS professionals, engineers running the OSM servers, humanitarians mapping disaster-affected areas, and many more.",
moreInfoLink: "https://www.openstreetmap.org/about",
// No need to set cesiumOptions since the OSM URL is the default
opacity: 0.6,
// Make the base map grayscale
saturation: 0.1,
visible: true
}
I think Yvonne is working on the saturation piece already.
Repurposing this ticket to track all config changes instead of just the base maps
Items from Doug and I:
@ianguerin to add items from his side
zoomPresets
field
"zoomPresets": [
{
"title": "Brevig Mission",
"latitude": 65.33144099720694,
"longitude": -166.48300287007706,
"height": 1500,
"description": "Brevig Mission is a community in the Norton Sound region of Alaska. In recent years it has experienced permafrost-related degradation of historic mass burial sites dating back to the 1918 Spanish flu pandemic.",
"layerIds": [
"pe",
"ls",
"bsi"
]
},
{
"title": "Golovin",
"latitude": 64.5442236390748,
"longitude": -163.03229679467594,
"height": 10000,
"description": "Erosion has been an ongoing challenge in the community in the Norton Sound region of Alaska. Numerous pieces of infrastructure have been impacted, including roads, gravesites, the community’s former dumpsite, and an abandoned fish processing facility.",
"layerIds": [
"ls",
"osm"
]
},
{
"title": "Kivalina",
"latitude": 67.73266848,
"longitude": -164.52463932,
"height": 5000,
"description": "A community on an island, Kivalina has experienced some of the most extreme shoreline erosion in Alaska. In addition, a recently completed evacuation road from the community to an inland storm refuge has begun to settle and crack.",
"layerIds": [
"isv1",
"ls",
"osm"
]
},
{
"title": "Kotzebue",
"latitude": 66.89646022958524,
"longitude": -162.59337003545508,
"height": 5000,
"description": "The largest community in northwest Alaska, Kotzebue, is the location of an unusual, sudden draining event that caused a small lake to go completely dry in a matter of hours.",
"layerIds": [
"iwphir",
"ls",
"osm"
]
},
{
"title": "MacKenzie Delta",
"latitude": 68.83495712716915,
"longitude": -136.65759540212943,
"height": 300000,
"description": "Low-centered ice wedge polygons in the Big Lake Delta Plain of the outer Mackenzie Delta are unusual because their bounding ramparts appear to have a single ridge",
"layerIds": [
"iwplmir",
"iwphir",
"pe",
"ls",
"otm"
]
},
{
"title": "Newtok",
"latitude": 60.93797441,
"longitude": -164.63669644,
"height": 300000,
"description": "This coastal river community has experienced severe riverbank erosion that has impacted transportation infrastructure, power poles, and the community’s school and landfill.",
"layerIds": [
"iwplmir",
"ls",
"osm"
]
},
{
"title": "Noatak",
"latitude": 67.56859844,
"longitude": -162.98116346,
"height": 5000,
"description": "Riverbank erosion in Noatak, a community in interior Alaska, has been well-documented by citizen observers in recent years. Impacts to gravesites, homes, water treatment facilities, roads, and the community landfill have all been observed.",
"layerIds": [
"iwphir",
"ls",
"bsi"
]
},
{
"title": "Point Lay",
"latitude": 69.78348827,
"longitude": -162.8671125,
"height": 80000,
"description": "Point Lay, a coastal community in northern Alaska, has had ongoing challenges with water and sewer infrastructure failing as permafrost softens and subsides. Water line breaks have resulted in flooding and critical community infrastructure, such as the clinic, being without for days at a time.",
"layerIds": [
"iwphir",
"ls",
"otm"
]
},
{
"title": "Selawik",
"latitude": 66.59727354,
"longitude": -160.01106646,
"height": 2000,
"description": "This community has had ongoing challenges with shoreline erosion, including impacts to transportation and sanitation infrastructure.",
"layerIds": [
"iwphir",
"ls",
"otm"
]
},
{
"title": "St. Michael",
"latitude": 63.47091804,
"longitude": -162.10616243,
"height": 12500,
"description": "In St. Michael, ground subsidence and erosion have impacted sanitation infrastructure. Recent erosion of a historic Russian-era cemetery have exposed human remains dating back to the 1918 Spanish flu pandemic.",
"layerIds": [
"isv1",
"ls",
"bsi",
"osm"
]
},
{
"title": "Teshekpuk Lake",
"latitude": 70.73207605337483,
"longitude": -153.89238150436773,
"height": 300000,
"description": "North of Teshekpuk Lake in Alaska, thermokarst lakes cover 22.5% of the landscape, and 61.8% of these basins have drained. The primary drainage pathway is made up of drained lake basins, rivers, and lakes.",
"layerIds": [
"dlbns1419",
"ls",
"otm"
]
}
]
This feature requires that all of the layers have a unique ID field (layerId
). The layer IDs above are a bit arbitrarily created.
otm="OpenTopoMap"
ls="Local Stories" (what Local News Stories layer is to be renamed as)
dlbns1419="Drained Lake Basins, North Slope, 2014-2019"
osm="OpenStreetMaps"
bsi="Bing Satellite Imagery"
pe="Permafrost Extent"
iwplmir="Ice Wedge Polygons (low & medium ice regions)"
iwphir="Ice-Wedge Polygons (high ice regions)"
isv1="Infrastructure (SACHI version 1)"
These are arbitrary, but must match with the layers specified in layers
or layerCategories
config field layerId
And then to enable the feature in viewfinder UI:
✅ Done!
⚠️ ...But note: The viewfinder presets were built with the layers in demo, not the layers in production, I had to make the following changes:
pe="Permafrost Extent"
- removed "pe" from all layerIds lists because we don't have the Permafrost Extent layer in prodiwplmir="Ice Wedge Polygons (low & medium ice regions)"
, iwphir="Ice-Wedge Polygons (high ice regions)"
- Used iwp
as the id in both cases, which references the one ice wedge polygon prod layerisv1="Infrastructure (SACHI version 1)"
, used the layerId infrastructure
, for the production "Infrastructure" layer^ @ianguerin @yvonnesjy
Thank you Robyn for making those alterations to the configuration!
@hngrtr has a couple of new/different base layers that we'd like to use on the next version of the PDG portal