_initMap() {
    this._map = new window.google.maps.Map( // eslint-disable-line
      document.getElementById(MAP_CONTAINER_ID),
      {
        zoom: 14,
        center: { lat: 56.840375, lng: 60.568951 },
        mapTypeId: 'terrain',
      });

    // Define an info window on the map.
    this._infoWindow = new window.google.maps.InfoWindow(); // eslint-disable-line

    // This event listener will call addMarker() when the map is clicked.
    this._map.addListener('click', (event) => { // eslint-disable-line
      // if editable field is exist -> nothing
      if (this.props.map.editableMarker) return;
      this.addMarker(event.latLng);
    });

    this.setState({
      mapInitialized: true,
    });
  }
/**
   * Create Map Object if Google API loaded
   * @private
   */
Create Map Object if Google API loaded
@private
Create Map Object if Google API loaded @private
_initMap() {
    this._map = new window.google.maps.Map( 
      document.getElementById(MAP_CONTAINER_ID),
      {
        zoom: 14,
        center: { lat: 56.840375, lng: 60.568951 },
        mapTypeId: 'terrain',
      });
    this._infoWindow = new window.google.maps.InfoWindow(); 
    this._map.addListener('click', (event) => { 
      if (this.props.map.editableMarker) return;
      this.addMarker(event.latLng);
    });
    this.setState({
      mapInitialized: true,
    });
  }
_initMap ( ) { this . _map = new window . google . maps . Map ( document . getElementById ( MAP_CONTAINER_ID ) , { zoom : 14 , center : { lat : 56.840375 , lng : 60.568951 } , mapTypeId : 'terrain' , } ) ; this . _infoWindow = new window . google . maps . InfoWindow ( ) ; this . _map . addListener ( 'click' , ( event ) => { if ( this . props . map . editableMarker ) return ; this . addMarker ( event . latLng ) ; } ) ; this . setState ( { mapInitialized : true , } ) ; }
Create Map Object if Google API loaded
 @private
Create Map Object if Google API loaded @private
// eslint-disable-line // Define an info window on the map. // eslint-disable-line // This event listener will call addMarker() when the map is clicked. // eslint-disable-line // if editable field is exist -> nothing