Options
All
  • Public
  • Public/Protected
  • All
Menu

This class will help you to add or use search bar for geocoding with a Mapbox GL JS map.

Hierarchy

Index

Constructors

constructor

Methods

attachMap

  • attachMap(map: Map | Map): Mapbox

close

  • close(): void

destroy

  • destroy(): void
  • Clear created DOM elements and listeners. This could be usefull when you recreate a JawgPlace object for the same input.

    Returns void

getDefaultPosition

  • getDefaultPosition(): "top-left"

getValue

  • getValue(): string

onAdd

  • onAdd(map: Map | Map): HTMLElement

search

  • Search a random text or lat/lon using Jawg Places. All features are points with properties, more details on our documentation.

    Parameters

    • text: string

      to search using Jawg Places

    Returns Promise<FeatureCollection>

    promise with the feature collection received from Jawg Places

setValue

  • setValue(value: string): void

showError

  • showError(error: any): void

showResults

submit

  • submit(): void

Generated using TypeDoc