[]
        
(Showing Draft Content)

Map

The Map settings allow you to manage the Mapbox usage and GEOJSON packages in Wyn Enterprise. To configure the Map settings on the Admin Portal, navigate to Configuration > Dashboards Settings > Map.


Screenshot 2024-11-27 at 10.29.54 AM


Map settings provide the following three options:

Mapbox Setting

Use Mapbox: Set the Use Mapbox property to True, to use the Mapbox services. When the Mapbox property is set to True, the settings shown in the below image are enabled.


Screenshot 2024-11-27 at 10.37.50 AM

The map settings and their descriptions are given in the following table.

Setting

Description

Mapbox

Set this property to True, to use the Mapbox services.

Mapbox Token

When you register a "Mapbox" account(https://www.mapbox.com/) and log into it, you get an access token. This token is the Mapbox Token.

Custom Styles

You can add the custom styles created in the Mapbox, into the Wyn from here and then use them in the Map under the Base Map Style property while designing the dashboards. By default, the following styles are provided by Mapbox: Normal, Dark, and Light.

Adding Custom Style(s) Using Mapbox

  1. Register a "Mapbox" account (https://www.mapbox.com/) and log in to get the access token.

  2. Add the Mapbox token to the Wyn Admin portal in the Map under Configuration -> Dashboard Settings


    Screenshot 2024-11-27 at 10.47.04 AM


  3. Add the Custom Style

    You can add the custom styles in Mapbox as follows:

    1. Login to the Mapbox website (https://www.mapbox.com/)

    2. Click the Create a map in studio link to customize a style and choose a template to create a map. You can modify the style as per your preference.

    3. Publish the style and copy the Style URL.

    4. In the Wyn Admin portal in the Map under Configuration->Dashboard Settings, click the Add Style button corresponding to Custom Styles and add the copied custom style.

      add-custome-styles

    5. Click the Save Changes button to save the map style.

  4. Set the Base Map style for the Map component in the Document and Resource Portal.


    Once the Use Mapbox property is set to True and the custom style is added in the Admin Portal, then in the Document and Resource portal, the Base Map Type menu is displayed to customize the appearance of a map scenario under the Inspector Panel properties of the dashboard designer window.


    Screenshot 2024-11-27 at 11.15.34 AM


    Once you select the Mapbox style from the dropdown menu another property Base Map Style is displayed. The Custom Style added in the Admin portal will also be displayed in the Base Map Style dropdown list along with the default styles provided by Mapbox (Normal, Dark, and Light).


    Screenshot 2024-11-27 at 11.15.40 AM

    Note: Mapbox property is supported for the built-in maps (including "Bubble/Flow line/Heat/Area" maps) that use the open street map as a tile layer. It is not for the old map control. For more information see the MAP Setting property under the Customize Appearance section for the following help articles Bubble Map, Heat Map, Flow Line Map, Area Map

Custom GIS Styles

  1. In the dashboard settings, click the + Add GIS Layer button to open the GIS Layer Panel.


    Add GIS Style Button


    2. Once you open up the GIS layer panel, you will notice there are three tabs: "Tile Layer", "WMS" and "WMTS".


    Screenshot 2024-12-02 at 11.43.04 AM

Tile Layer

TileLayer

Key

Description

Required

Name

GIS layer name

Yes

URL

Tile Layer's URL

Yes

Attribution

Identify the Attributions of the Layer. This is a piece of text displayed in the bottom right corner of the map.

No

WMS Layer

WMS Layer

Key

Description

Required

Name

GIS layer name

Yes

URL

WMS service base URL

Yes

Get Layers

Click the Get Layers button to request all WMS Layers. A checkbox group for all WMS layers will be displayed. Select the layers you would like to display, as shown in the scenario below.

No

Screenshot 2024-12-02 at 5.48.01 PM

WMTS Layer

WMTS Layer

Key

Description

Required

Name

GIS layer name

Yes

URL

WMTS service base URL. "Layer", "style", "tilematrixset" are required parameters in the URL.

Yes

Attribution

Identify the Attributions of the Layer. This is a piece of text displayed in the bottom right corner of the map.

No

  1. Click Save Changes to save a GIS Layer.

  2. Set the Base Map style for the Map component in the Document and Resource Portal.


    Once GIS layer is added in the Admin Portal, then in the Document and Resource portal, the Base Map Type menu is displayed to customize the appearance of a map scenario under the Inspector Panel properties of the dashboard designer window.


    Screenshot 2024-11-27 at 11.31.37 AM


    Once you select the Custom style from the dropdown menu another property Custom GIS Base Styles is displayed. The GIS Layer added in the Admin portal will also be displayed in the Custom GIS Base Styles dropdown list.


    Select Custom

Map Data Setting

Use the Map Data Setting to upload updated GEOJSON packages in Wyn Enterprise through the admin portal. This eliminates the need for users to manually log in and update the GEOJSON files on the system where Wyn Enterprise is installed.

To upload an updated GeoJSOSN package, follow the below instructions,

  1. Click the Download Map Data button. The built-in map data (GeoJSON) will automatically download as a zip file.


    Pixelated

  2. Extract the zip file items at the specified location and make the necessary changes like adding countries, states, counties, cities, and more. After making the changes, compress the files into a zip archive and upload them using the Upload New Map Data button.

    MapSetting-UploadMapData

    Note: Ensure that GEOJSON files are placed in the correct hierarchy

  3. Click the Save Changes button to save the updated GeoJSON data.