HowTo: Use SD Geolocation Control in Smart Devices

Official Content
This documentation is valid for:
Deprecated: Since GeneXus 17. Replaced by Maps Control Type.

This document provides a brief overview about SD Geolocation and explains how to use it.

SD Geolocation is a control applicable to a geolocation field. This control will show the geolocation field over a map, indicating the position with a pin. It can be applied to an attribute from a Transaction object based on Geolocation domain and also to a variable with same domain.

Samples

1. Create a Transaction (called "TRNGeolocation") with two Attributes (Id and Description) as shown in the image.

TRNGeolocation

2. Apply the Work With pattern and Work With object pattern to the Transaction (for further information see Applying Work With Pattern).

GeolocationPattern

3. Change the Control Type property of the attribute "TRNGeolocationDescription" to SD Geolocation.

SDGeolocationPatternControl

4. Create the following dashboard and add the WorkWithDevicesTRNGeolocation as an item.

DashboardGeolocation1

Done!

5. Deploy your application on different devices (don't forget to set your dashboard as main object).

Android

AndroidSDGeolocation1 AndroidSDGeolocation2

AndroidSDGeolocation3 AndroidSDGeolocation4

AndroidSDGeolocation5

iOS

iOSGeolocation1 iOSGeolocation2

In this case, there's already an item on the list.

iOSGeolocation3

Scope

Generators: Android Apple

See Also

Geolocation external object
Geolocation - Show points near me
Geolocation - Showing My Location
HowTo: Use Location Tracking