fix map not flying until map moved
This commit is contained in:
parent
431d48f1c3
commit
65cbee4ea2
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ export const [mapRotate, setMapRotate] = createSignal(false);
|
||||||
createEffect(() => console.log('Rotate:', mapRotate()));
|
createEffect(() => console.log('Rotate:', mapRotate()));
|
||||||
|
|
||||||
export const [viewport, setViewport] = createSignal<Viewport>({
|
export const [viewport, setViewport] = createSignal<Viewport>({
|
||||||
|
id: '0-0-0-0-0-0-0-0-0-1-0-0-0-1-0-0-0', // this is what it likes to be called or the map won't move...
|
||||||
center: { lng: -96, lat: 38, },
|
center: { lng: -96, lat: 38, },
|
||||||
zoom: 4.25,
|
zoom: 4.25,
|
||||||
bearing: 0,
|
bearing: 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue