mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix crash when viewState does not contain pitch or bearing (#671)
This commit is contained in:
parent
556e63bb83
commit
fadff6a3e9
@ -385,8 +385,8 @@ export default class Mapbox {
|
||||
longitude,
|
||||
latitude,
|
||||
zoom,
|
||||
pitch,
|
||||
bearing,
|
||||
pitch = 0,
|
||||
bearing = 0,
|
||||
altitude = 1.5
|
||||
} = props.viewState || props;
|
||||
return {longitude, latitude, zoom, pitch, bearing, altitude};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user