To use geolocation in Athento, several configurations are necessary:
For each space where you want to use geolocation, you will need to enable the feature flag use_geolocation in the advanced configuration of the space.
Geolocation in Athento is obtained locally, that is, every time a file is uploaded with geolocation enabled, the browser sends the necessary data.
By default, the location permissions are not enabled, therefore, the first time Athento needs the location to register the location of the document, the same browser will ask for the location permissions (something similar to the following image).
Note: The permission depends on the user using Athento, if he does not accept the permissions the location will not be registered.
Once the above is configured, to visualize the locations, in the document view there is a new modal in which it appears on the map, in this location.
In order to configure the map you need to add in the settings 2 attributes.
- GOOGLE_MAP_API_KEY: The API key of google maps that is obtained to be able to use your map.
- GOOGLE_MAP_ID_MAP: In addition to the API key, we must create a map and put in the settings its id.
Comments
0 comments
Please sign in to leave a comment.