MCPcopy Create free account
hub / github.com/google-map-react/google-map-react / setView

Method setView

src/lib/geo/index.js:15–20  ·  view source on GitHub ↗
(center, zoom, bearing)

Source from the content-addressed store, hash-verified

13 }
14
15 setView(center, zoom, bearing) {
16 this.transform_.center = LatLng.convert(center);
17 this.transform_.zoom = +zoom;
18 this.transform_.bearing = +bearing;
19 this.hasView_ = true;
20 }
21
22 setViewSize(width, height) {
23 this.transform_.width = width;

Callers 2

constructorMethod · 0.80
GoogleMapClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected