Skip to content

Commit c0f889b

Browse files
committed
Update colors
1 parent de45e46 commit c0f889b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example/geojson.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/three/plugins/images/sources/GeoJSONImageSource.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { ProjectionScheme } from '../utils/ProjectionScheme.js';
66
// TODO: Add support for padding of tiles to avoid clipping "wide" elements
77
// TODO: Scale points ellipse radii based on localized lat / lon distortion to preserve a circular appearance
88
// TODO: Need to clip / fix geojson shapes across the 180 degree boundary
9+
// TODO: Add support for easy regeneration when colors / styles / geojson change
910
export class GeoJSONImageSource extends TiledImageSource {
1011

1112
constructor( {
@@ -14,9 +15,9 @@ export class GeoJSONImageSource extends TiledImageSource {
1415
tileDimension = 256,
1516
levels = 20,
1617
pointRadius = 6,
17-
strokeStyle = 'red',
18+
strokeStyle = 'white',
1819
strokeWidth = 2,
19-
fillStyle = 'rgba( 255,0,0,0.65 )',
20+
fillStyle = 'rgba( 255, 255, 255, 0.65 )',
2021
} = {} ) {
2122

2223
super();

0 commit comments

Comments
 (0)