_onClick()

in src/app/map/map.component.ts [159:169]


  _onClick(e: google.maps.MapMouseEvent) {
    // TODO(donmccurdy): Do we need a public API for determining when layer is ready?
    // if (!this._deckLayer._deck.layerManager) return;

    const { x, y } = e['pixel'];
    const picked = this._deckLayer.pickObject({ x, y, radius: 4 });

    if (picked) {
      this.showInfoWindow(picked.object, e.latLng);
    }
  }