Options
All
  • Public
  • Public/Protected
  • All
Menu

leaflet-control-geocoder

Index

Type aliases

FinishGeocodeEvent

FinishGeocodeEvent: { input: string; results: GeocodingResult[] }

Event is fired before after receiving results from IGeocoder.geocode (or IGeocoder.suggest). The event data contains the query string as input and the geocoding results.

Type declaration

FinishGeocodeEventHandlerFn

FinishGeocodeEventHandlerFn: (event: FinishGeocodeEvent) => void

Type declaration

GeocodingCallback

GeocodingCallback: (result: GeocodingResult[]) => void

A callback function used in IGeocoder.geocode and IGeocoder.suggest and IGeocoder.reverse

Type declaration

MarkGeocodeEvent

MarkGeocodeEvent: { geocode: GeocodingResult }

Event is fired when selecting a geocode result. By default, the control will center the map on it and place a marker at its location. To remove the control's default handler for marking a result, set GeocoderControlOptions.defaultMarkGeocode to false.

Type declaration

MarkGeocodeEventHandlerFn

MarkGeocodeEventHandlerFn: (event: MarkGeocodeEvent) => void

Type declaration

StartGeocodeEvent

StartGeocodeEvent: { input: string }

Event is fired before invoking IGeocoder.geocode (or IGeocoder.suggest). The event data contains the query string as input.

Type declaration

  • input: string

StartGeocodeEventHandlerFn

StartGeocodeEventHandlerFn: (event: StartGeocodeEvent) => void

Type declaration

Variables

Const GeocodeEarth

GeocodeEarth: Pelias = Pelias

Const Mapzen

Mapzen: Pelias = Pelias

r.i.p.

deprecated

Const geocodeEarth

geocodeEarth: pelias = pelias

Const mapzen

mapzen: pelias = pelias

r.i.p.

deprecated

Functions

arcgis

bing

geocoder

google

here

latLng

mapQuest

mapbox

neutrino

nominatim

openLocationCode

opencage

openrouteservice

parseLatLng

  • parseLatLng(query: string): LatLng | undefined
  • Parses basic latitude/longitude strings such as '50.06773 14.37742', 'N50.06773 W14.37742', 'S 50° 04.064 E 014° 22.645', or 'S 50° 4′ 03.828″, W 14° 22′ 38.712″'

    Parameters

    • query: string

      the latitude/longitude string to parse

    Returns LatLng | undefined

    the parsed latitude/longitude

pelias

photon

what3words

Generated using TypeDoc