Description

Map Location Container is a component to display a map (based on the ArcGIS system) with markers representing sites. Markers can be set using MapAddress or MapCoordinates. The markers are displayed in the color of the point or the set up defined for each one: Niagara station status (NiagaraStation), point status, etc.

 

Usage advice

The view can consume a lot of data, a good internet connection is required on the terminal used (computer, tablet, phone etc.).

The view may encounter authentication problems with Arcgis Services in WorkPIace, so it is strongly recommended it to be used in a normal browser.

It is not possible to have this component twice in the same px.


Implementation

  • Drag and drop the component into a directory of the station.
  • Enter the clientlD and clientSecret slots obtained in the arcGIS account creation tutorial
  • Drag and drop a MapAddress component from the palette and enter the site address or a MapCoordinates component and then enter the coordinates in decimal degrees.
  • Access the MapLocationView view, the map will automatically center according to the indicated sites. 
  • If your version of Niagara is lower than 4.10 then make sure to connect from the web browser and not WorkPIace. Otherwise please make sure to do what is described below.


The connected user needs at least `r` wrights to see the view.


In Niagara 4.10 you need to add some extra configurations in the WebService to use the Map.

Go to the WebService in the Workbench, and then go to the Http Header Providers

In the Content-Security-Policy section, add https://www.arcgis.com in the connect-src value to use Arcgis API and https://geocode.arcgis.com to use reverse geocoding for the adresses.
Complete value of connect-src: 'self' workbench ws://%hostname%:%port% wss://%hostname%:%port% https://www.arcgis.com https://geocode.arcgis.com/

And add https: in the image-src value.

By Adding those configurations, you will be able to use the Map in the WorkPlace

 

 

   



Properties

  • Advanced Config: The advanced config contains markers clustering properties. It is enabled by default. If you want to go deeper in clustering configuration see ClusterConf.
  • Map Center Override: Allows you to force the default position of the map (the default position and the zoom level are calculated automatically when this slot is false).
  • Center Latitude Override: The latitude on which the map should be centered (in case the Map Center Override property is enabled).
  • Center Longitude Override: The longitude on which the map should be centered (in case the Map Center Override property is enabled).
  • Zoom Override: The desired zoom for displaying the default map (in case the Map Center Override property is enabled). The zoom level must be between 1 and 17.
  • Client Id: The identifier used to connect to the Arcgis services.
  • Client Secret: The password of your Arcgis ID