Maps Element Properties

To view the properties of the Maps element, select the Maps element you added to the workspace.

With the Properties panel on the right edge;

  • Datasource
  • Show Circle Center
  • AutoCenter
  • Latitude
  • Longitude
  • Marker Detail Width
  • Circle Radius In Km
  • Group Picker Icon
  • Group Picker Color
  • Selected Location Icon
  • Current Location Icon
  • Keep Center On Zoom
  • Authorization
  • Visibility
  • Actions

You can make the edits you need from the headings.

After placing the map in the workspace, it is necessary to create a Datasource for the Maps element.

Datasources: It allows you to select the data table of the locations to be shown in the map.

Open the Datasources module. Select the Add button (+) Rest APIon the top edge of the left panel and create it by giving it a name. Then enter the Service Base URLyou want to use. Finally, enter values for how you want the API Service to be terminated. To display the pins on the map, enter /pins and getPins in the API Endpoint section.

Get is used to list and display data in the API Service.

After the data source connection is made, actions should be added for Backend/API. Select Custom > GoogleMaps > GetPinsFromGoogleMaps custom action from the drop-down list with Add Actions in Properties panel.

Setting the action: After adding the actions, a final adjustment should be made in Properties > Datasources and a small adjustment should be made as follows.

Show Circle Center: It is used to show the center of the specified Radius value. If Radius is not specified, this feature is not available.

Auto Center: Allows you to specify the location you want to show fixed on the map. No matter where you go on the map, no matter how much you zoom in or out on the map, you can set the location to be opened when Auto Center is clicked with this parameter.

Latitude: This is the field where the central latitude value is given at the map opening. It can be static or dynamic, such as the value of an element or the result of an action with Symbol Picker.

Longitude: This is the field where the central longitude value at the map opening is entered. It can be static or it can take dynamic values such as the value of an element and the result of an action with Symbol Picker.

By entering latitude and longitude, the user specifies which coordinate the map will be centered at the first opening of the map.

The Maps element opens the map screen and displays other locations even when the latitude and longitude values are Null (empty).

Getting Latitude and Longitude Values in Google Maps

First, go to Google Maps in your browser. Select the desired location or area on the map and right-click. In the window that opens, you will find latitude and longitude in decimal format at the top. To copy the coordinates automatically, left-click on the latitude and longitude values. The values will be copied.

It is not recommended to use latitude and longitude values taken from a URL because they may be inaccurate.

Circle Radius In Km: A circle is created with the given diameter size on the map. This is the section where the circular diameter value of the area whose data will be displayed is entered. You can specify the diameter of the search area in kilometers.

Group Picker Icon: You can customize the icon where the icons are displayed one by one when zoomed in the application you have developed, and when zoomed out, they are grouped and turned into a single pin icon.

Group Picker Color: Determines the color of the markers in the same group on the map. With the Group Picker Color feature, you can easily distinguish markers in the same group.

Keep Center On Zoom: As the user scrolls in the Map, the center changes. This center is automatically selected and the event is called again.

Marker Pop-up On Width: Allows you to control whether the marker pop-up will be active when the map width reaches a certain size (For example, pop-ups appear if the map width is more than 600 pixels).

Selected Location Icon: Allows you to set the icon for the location you have selected on the map. You can use a custom icon to visually highlight the selected location.

Selected Location Color: You can set the color of the location you have selected on the map with the Selected Location Color feature.

Current Location Icon: Allows you to show the current location on the map with a custom icon.

Current Location Color: Allows you to customize the color of the current location on the map.