Class MapGeocoderComponent
- Namespace
- LansMap.Map.Views.Components
Attach a subclass to a map to search places with your own provider instead of the shipped one.
public abstract class MapGeocoderComponent : MapComponentBase
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourMapGeocoderComponent
- Inherited Members
Remarks
Create() is called once, when the search tool is enabled, and hands ownership of the returned geocoder to that tool: the tool disposes it when it is disabled. Return a fresh instance per call rather than a shared one.
Methods
Create()
Builds the geocoder for one search tool on the main thread; the caller takes ownership of the result.
public abstract IGeocoder Create()