Class: Near

Near

Extends

Methods

activate(coords, title)

Sets the location to search around. Takes WGS84 coordinates as an array and an optional title (as a string).

Name Type Description
coords ol.Coordinate
title string

getDistance(){number}

Gets the set search distance

Deprecated
  • Yes

hideLayer()

Hides the searchNear layer.

setDistance(distance)

Sets the search distance based on a string value

Name Type Description
distance string

showLayer()

Shows the searchNear layer.