Interface CreatePopupContentProps<F, L>

Type Parameters

  • F extends Feature = Feature

  • L = any

Hierarchy

Properties

close: (() => void)

Type declaration

    • (): void
    • Close the pop-up programmatically

      Returns void

feature: F

A vector layer object in geojson format.

getBounds: (() => LngLatBoundsArray)

Type declaration

getCenter: (() => LngLatArray)

Type declaration

layer?: L

Native layer for a specific adapter layers of a specific map adapter.

onClose: ((cb) => void)

Type declaration

    • (cb): void
    • The callback function that is called when the popup is closed

      Parameters

      Returns void

      Example

      createPopupContent: (e) => {
      const onZoomEnd = () => e.close();
      ngwMap.emitter.on('zoomend', onZoomEnd)
      e.onClose(() => {
      ngwMap.emitter.off('zoomend', onZoomEnd)
      })
      return createContentFunc(e);
      },
target: LayerAdapter<any, any, AdapterOptions<Record<string, any>, Record<string, any>>>

The adapter in which the layer is created.

The source of the event call. User click, hover, or programmatic api call

visible?: boolean

Is layer on the map

Generated using TypeDoc