Official Content

Enables the possibility to draw the route between two points on the map.

Values

False
True

Scope

Objects: Panel for Smart Devices, Work With for Smart Devices
Generators: Android, Apple
Controls: Grid (Control Type: SD Maps)

Description

When the property is set to True, it is possible to draw the route between two points on the map. These points are given by the values loaded using Location Attribute property or Location Field Specifier property.

Two more properties are enabled to configure the Directions layer: Transport Type property and Default Route Class property.

SDLayer2Direction

The implementation of this property is server-side and is done by the DirectionsServiceRequest Rest Service
In the case of using Google provider, it is necessary a Google Direction API Key. It is recommended to protect with security mechanisms such as GAM.

Requirement

In order to visualize the direction, it is necessary to have the Google API Key property at Environment level configured with a valid API Key. This Key must have configured the restriction of API Direction.

Runtime/Design time

This property applies only at design time.

How to apply changes

To apply the corresponding changes when the property value is configured, execute a Build with this Only of the object.

Availability

This property is available since GeneXus 16 upgrade 6.

See Also

Maps Control Type
Transport Type property
Default Route Class property

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant