All Implemented Interfaces:
Serializable, Evented, Identifiable, LayerPopupFunctions, LayerTooltipFunctions, ExecutableFunctions

@NpmPackage(value="leaflet-kmz", version="1.0.9") @JsModule("leaflet-kmz/dist/leaflet-kmz-src.js") public class KmzLayer extends Layer

KMZ file loader for Leaflet Maps

Web component: https://www.npmjs.com/package/leaflet-kmz

Since:
2020-07-23
Version:
1.0
Author:
Gabor Kokeny Email: kokeny19@gmail.com
See Also:
  • Constructor Details

    • KmzLayer

      public KmzLayer(String url)
      Instantiates a KMZ layer that loads the KMZ file at the given URL.
      Parameters:
      url - the URL of the KMZ file to load
  • Method Details

    • load

      public void load(String url)
      Loads the KMZ file at the given URL into this layer.
      Parameters:
      url - the URL of the KMZ file to load
    • onLoad

      public void onLoad(LeafletEventListener<LeafletEvent> listener)
      Registers a listener notified when the KMZ file has finished loading.
      Parameters:
      listener - the listener to call when the event occurs, not null
    • getUrl

      public String getUrl()
      Returns the URL of the KMZ file loaded by this layer.
      Returns:
      the KMZ file URL