Skip to content

Commit

Permalink
Add a little altitude to capitol layer for better rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerstolzenberg committed Mar 8, 2024
1 parent 720ca2f commit 9f8f218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/map/map.constants.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ScatterplotLayer } from '@deck.gl/layers/typed';

export const DEFAULT_ZOOM = 4;
export const DEFAULT_TRANSITION_DURATION_MS= 'auto';
export const DEFAULT_TRANSITION_DURATION_MS = 'auto';

export const FLY_TO_ZOOM = 7;

export const MAP_CENTER = {
longitude: 15.2551,
latitude: 49
}
};

export const INITIAL_VIEW_STATE: Record<string, number> = {
latitude: MAP_CENTER.latitude,
Expand Down Expand Up @@ -43,7 +43,7 @@ export const CAPITOLS_LAYER = new ScatterplotLayer({
visible: true,

getRadius: () => 2000,
getPosition: d => [d.coordinates[1], d.coordinates[0]],
getPosition: d => [d.coordinates[1], d.coordinates[0], 50], // need a bit of altitude for proper rendering
getLineColor: () => [255, 214, 23, 255],
getFillColor: () => [255, 214, 23, 50],
getLineWidth: () => 3000
Expand Down

0 comments on commit 9f8f218

Please sign in to comment.