MCPcopy Index your code
hub / github.com/google-map-react/google-map-react / draw

Method draw

src/google_map.js:686–711  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

684 },
685
686 draw() {
687 this_.updateCounter_++;
688 this_._onBoundsChanged(map, maps, !this_.props.debounced);
689
690 if (!this_.googleApiLoadedCalled_) {
691 this_._onGoogleApiLoaded({ map, maps, ref: this_.googleMapDom_ });
692 this_.googleApiLoadedCalled_ = true;
693 }
694
695 if (this_.mouse_) {
696 const latLng = this_.geoService_.fromContainerPixelToLatLng(
697 this_.mouse_
698 );
699 this_.mouse_.lat = latLng.lat;
700 this_.mouse_.lng = latLng.lng;
701 }
702
703 this_._onChildMouseMove();
704
705 if (this_.markersDispatcher_) {
706 this_.markersDispatcher_.emit('kON_CHANGE');
707 if (this_.fireMouseEventOnIdle_) {
708 this_.markersDispatcher_.emit('kON_MOUSE_POSITION_CHANGE');
709 }
710 }
711 },
712 });
713
714 this.overlay_ = overlay;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected