Skip to main content

WemapMapInteractionOptions

wemap-sdk-js


Interface: WemapMapInteractionOptions

Opt-in automatic POI userflow wiring. Off by default. Each toggle is independent.

Properties​

autoHighlightSearch?​

optional autoHighlightSearch?: boolean

When true, WemapMap.search highlights the result pinpoints and filters every other pinpoint out of the default layers. When false, WemapMap.search only returns results and leaves the map untouched.


autoSelectOnClick?​

optional autoSelectOnClick?: boolean

When true, clicking a stylesheet POI selects it (replacing any previous selection), and clicking the empty map background clears the selection. Equivalent to wiring WemapMap.onPoiClick to WemapMap.setPoiSelected by hand.


centerOnSelect?​

optional centerOnSelect?: boolean

When autoSelectOnClick is on, also ease the camera to the selected POI. Defaults to true; set false to keep the camera still on select.