Solved

Maps overlay

  • 15 December 2023
  • 3 replies
  • 107 views

Userlevel 5
Badge +20

Can anyone explain how we can configure a maps overlay?

 

The documentation does not provide enough details. Can a working example be attached?


https://docs.thinkwisesoftware.com/docs/sf/maps2#overlay-settings

icon

Best answer by J. de Lange 20 December 2023, 10:53

View original

This topic has been closed for comments

3 replies

Userlevel 3
Badge +4

The overlays work much the same way the base layer works. You need to find (or create) a tile source which takes /{z}/{x}/{y} in the url. Z being the zoom level for which you can define a min and max zoom level in the software factory.
Here is an example of a configured overlay:
 


Is this enough information or is there a specific problem you try to solve?

Userlevel 3
Badge +4

For future reference: If you want an overlay that looks like the ‘Truck-free zone’ in the docks, you can use data mappings instead of an overlay and create a polygon data mapping and feed it with waypoints through a view or table:


 Make sure that the map component uses a view or table that contains columns with coordinates in JSON for example:

{
"CoordSets": [
[
{
"Lon": "6.932740",
"Lat": "53.329700"
},
{
"Lon": "6.932740",
"Lat": "51.329700"
},
{
"Lon": "8.932740",
"Lat": "51.329700"
},
{
"Lon": "8.932740",
"Lat": "53.329700"
},
]
]
}

and each row should contain a definition of the type of entity you want to display on the maps. You can make a domain with elements for this and select the element you would like to display on each row.

The two columns (coordinate and entity) should match the columns configured on your map component in the SF: 

 

Userlevel 5
Badge +20

Thank you Jitse,

We could make a work around with a data mapping instead of an overlay, but this is not the desired solution.

The overlay functionality is already available in the platform an should work I asume? 

@Erwin Ekkel could you ask someone from the development team to provide just a simple example of how to enable a overlay on a map, like the Truck-free zone?

This is our goal: (Overlay = Gray windmills, Data Mapping: Other Icons)