MCPcopy Create free account
hub / github.com/visgl/react-map-gl / constructor

Method constructor

modules/react-mapbox/src/mapbox/mapbox.ts:206–214  ·  view source on GitHub ↗
(
    MapClass: {new (options: any): MapInstance},
    props: MapboxProps,
    container: HTMLDivElement
  )

Source from the content-addressed store, hash-verified

204 static savedMaps: Mapbox[] = [];
205
206 constructor(
207 MapClass: {new (options: any): MapInstance},
208 props: MapboxProps,
209 container: HTMLDivElement
210 ) {
211 this._MapClass = MapClass;
212 this.props = props;
213 this._initialize(container);
214 }
215
216 get map(): MapInstance {
217 return this._map;

Callers

nothing calls this directly

Calls 1

_initializeMethod · 0.95

Tested by

no test coverage detected