MCPcopy
hub / github.com/visgl/deck.gl / getDefaultView

Function getDefaultView

modules/mapbox/src/deck-utils.ts:176–181  ·  view source on GitHub ↗
(map: Map)

Source from the content-addressed store, hash-verified

174}
175
176export function getDefaultView(map: Map): GlobeView | MapView {
177 if (getProjection(map) === 'globe') {
178 return new GlobeView({id: MAPBOX_VIEW_ID});
179 }
180 return new MapView({id: MAPBOX_VIEW_ID});
181}
182
183export function getViewState(map: Map): MapViewState & {
184 repeat: boolean;

Callers 3

_getViewsMethod · 0.90
getDeckInstanceFunction · 0.85
getViewportFunction · 0.85

Calls 1

getProjectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…