Skip to content

Commit

Permalink
feat: styling for deformation layers other test
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercchase committed Nov 21, 2024
1 parent cc96756 commit 99236d5
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/app/services/map/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,31 @@ export class MapService {
});

this.displacementOverview = new TileLayer({
'style': {
color: [
'palette',
[
'case',
['between', ['band', 4], 0.0, 0.99],
0,
['between', ['band', 1], 0.0, 0.2],
0,
['between', ['band', 1], 0.2, 0.5],
1,
['between', ['band', 1], 0.5, 0.6],
2,
['between', ['band', 1], 0.6, 0.8],
3,
['between', ['band', 1], 0.8, 1.0],
4,
0
],
['#00000000', '#0d0887', '#7e03a8', '#cb4778', '#f89540', '#f0f921']
],
gamma: 1
},
'source': overview_source,
'extent': response['extent']
'extent': response['extent'],
});

this.map.addLayer(this.displacementOverview);
Expand Down

0 comments on commit 99236d5

Please sign in to comment.