Make aggregate layers clean up, add service request aggregate

This commit is contained in:
Eli Ribble 2026-01-15 04:10:54 +00:00
parent 248cffd323
commit d46d988b4d
No known key found for this signature in database
3 changed files with 157 additions and 66 deletions

View file

@ -26,17 +26,29 @@ function onLoad() {
//'maxzoom': 14
});
map.addLayer({
'id': 'nidus', // Layer ID
'id': 'mosquito_source', // Layer ID
'type': 'fill',
'filter': ['==', ['zoom'], ['+', 2, ['to-number', ['get', 'resolution']]]],
'source': 'tegola-nidus', // ID of the tile source created above
'source-layer': 'h3_aggregation',
'source-layer': 'mosquito_source',
'paint': {
'fill-opacity': 0.3,
'fill-color': 'rgb(250, 100, 100)'
}
//slot: 'middle' // middle slot in Mapbox Standard style
});
map.addLayer({
'id': 'service_request', // Layer ID
'type': 'fill',
'filter': ['==', ['zoom'], ['+', 2, ['to-number', ['get', 'resolution']]]],
'source': 'tegola-nidus', // ID of the tile source created above
'source-layer': 'service_request',
'paint': {
'fill-opacity': 0.3,
'fill-color': 'rgb(100, 100, 250)'
}
//slot: 'middle' // middle slot in Mapbox Standard style
});
map.addInteraction("nidus-click-interaction", {
type: 'click',
target: { layerId: 'nidus' },