GeoLocation

Let the user select a point from the map.

Reference type: dasf_exb.input_models.GeoLocation

Usage
from dasf_exb.input_models import GeoLocation


def get_point_information(point: GeoLocation) -> str:
    return f"selected point at {point.lon}°E and {point.lat}°N"

Using this model in the annotation of your method or function call requires the DASF widget to be connected to a map widget. This then let’s the user select a single point on the map by clicking a button, instead of manually entering longitude and latitude of a location.

screenshot of a GeoLocation Button

Once the user clicks the button, he/she can either manually enter latitude and longitude, or click on the map. The little button can optionally clicked to avoid manipulation via hovering over the map.

activate geolocation button