geolocation-8.x-3.x-dev/modules/geolocation_leaflet/js/MapFeature/LeafletMapFeature.js

modules/geolocation_leaflet/js/MapFeature/LeafletMapFeature.js
import { GeolocationMapFeature } from "../../../../js/MapFeature/GeolocationMapFeature.js";

/**
 * @prop {L.Map} map.leafletMap
 */
export class LeafletMapFeature extends GeolocationMapFeature {
  /**
   * @param {LeafletMapMarker} marker
   *   Leaflet marker.
   */
  onMarkerAdded(marker) {
    super.onMarkerAdded(marker);
  }

  /**
   * @param {LeafletMapMarker} marker
   *   Leaflet marker.
   */
  onMarkerClicked(marker) {
    super.onMarkerClicked(marker);
  }

  /**
   * @param {LeafletMapMarker} marker
   *   Leaflet marker.
   */
  onMarkerRemove(marker) {
    super.onMarkerRemove(marker);
  }

  /**
   * @param {LeafletMapMarker} marker
   *   Leaflet marker.
   */
  onMarkerUpdated(marker) {
    super.onMarkerUpdated(marker);
  }

  /**
   *
   * @param {String?} position
   */
  getLeafletPosition(position = null) {
    if (!["topleft", "topright", "bottomleft", "bottomright"].includes(position)) {
      return "bottomright";
    }

    return position;
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc