Map Widget

<< Click to Display Table of Contents >>

Navigation:  Enterprise > Widgets >

Map Widget

Data Requirements

Widget Interface

oMap Controls

o3D Map Option

oPopups

Interaction with Other Widgets and Filters

Widget Properties

 

Use the Map widget to:

Display multi-layered map with facility locations;

View map and features in three dimensions (3D);

Interact directly with features on the map, such as clicking on the map to view additional information;

Interact with other reporting widgets;

Display report output on the map;

Display georeferenced documents and photographs on the map; and

Measure distance and/or area on the map.

 

The Map widget allows the user to display a map using Esri ArcGIS API for JavaScript (JS). Please review the ArcGIS API licensing information before using this widget.

 

Esri JS API Requirements: 4.20 (https://js.arcgis.com/4.20)

 

 

Data Requirements

 

In addition to the coordinate data stored in the DT_COORDINATE table, the following fields need to be populated for the Map widget to correctly display locations:

RT_COORD_TYPE.COORD_TYPE_CODE

RT_COORD_TYPE.SRID

RT_COORD_TYPE.STATUS_FLAG (must be set to "A")

DT_FACILITY.COORD_TYPE_CODE

DT_FACILITY.IDENTIFIER

DT_COORDINATE.COORD_TYPE_CODE

DT_COORDINATE.IDENTIFIER

 

The SRID in the RT_COORD_TYPE table needs to be populated with the value of the Well-known ID (WKID). In Esri GIS, projected and geographic coordinate systems are defined by a WKID (or a definition string (WKT)). See the reference here:

https://developers.arcgis.com/javascript/jsapi/spatialreference-amd.html.  

 

 

Widget Interface

Ent-Map_Widget_2D

The widget displays a multi-layered map with facility locations (as defined in VW_LOCATION), report output, and other map layers. By default, the Map widget displays layers in two dimensions (2D), but users can enable an option to display the map layers in 3D (see section below for more details).

 

Note: The Map widget will convert elevation units to:

DT_FACILITY.ELEV_UNIT,

DT_LOCATION.UNITS, or

DT_COORDINATE.ELEV_UNIT.

The first non-null value will be selected from this list.

 

Map Controls

 

The Map widget has the following user interface functions that can be enabled/disabled on the User Interface tab in the Widget Editor:

Zoom In and Zoom Out – Although the default view extents for the map can be set, the user can always change how much of the map is displayed. Click either the Zoom In (Ent-Map_Zoom_In-Icon) or Zoom Out (Ent-Map_Zoom_Out-Icon) buttons to view the page as needed. These buttons are located on the top-left of the widget. Users can also zoom in and out by using the scroll button on the mouse.

Fullscreen – Click the Enter Fullscreen Ent-Map_Widget_Full_Screen_Button button to expand the map to the extent of the user's screen. Selecting the Exit Fullscreen Ent-Map_Widget_Full_Screen_Exit_Button button, hitting escape on the keyboard, or hitting F11 on the keyboard will exit full screen and return to the dashboard.

Layer List – Select the Expand the Layer List Ent-Map_Widget_Layers_Button button to display a list of layers and sub-layers added to the map. Layers can be toggled on and off by selecting the View Ent-Map_Widget_See_Layers_Icon icon for the layer. Click the Open Ent-Map_Widget_Layers_Open_Icon icon for a layer to display a menu that allows zooming to the layer or editing the layer. Selecting Edit Layer will display an editing window that allows users to edit the layer without having to open the Widget Editor. Users can apply the changes in the current window or save them to persist next time the widget is opened. Click on the Collapse Ent-Map_Collapse_iconicon to close the drop-down menu.

Ent-Map_Widget_Layers_Expanded

Ent-Map_Widget_Layers_Edit Layer

Basemap Gallery – A variety of map types are available within Enterprise. Select the Basemap Gallery Ent-Map_Widget_Basemap_Gallery_Button button to open the drop-down selection of map types. The current options are ArcGIS defaults types. Click on the CollapseEnt-Map_Collapse_icon2 icon to close the drop-down menu.

Ent-Map_Widget_Basemap_Gallery_Expanded

The default basemaps are stored in the ST_CONFIG table. Acceptable entries for the default basemaps are as follows:

Basemap Gallery Name

ST_CONFIG Table Entry

Imagery

satellite

Imagery with Labels

hybrid

Streets

streets

Topographic

topo

Dark Gray Canvas

dark-gray

Light Gray Canvas

gray

National Geographic

national-geographic

Terrain with Labels

terrain

Oceans

oceans

OpenStreetMap

osm

USA Topo Maps

topo-vector

USGS National Map

streets-relief-vector

Search – The Search functionality is disabled by default and can be enabled by selecting the "Enabled" check box on the User Interface tab in the Map Widget Editor. The Search Ent-Map_Widget_Search_Button option allows the user to search for geographic locations (e.g., address) on the map. This option does not search for EQuIS data. Click on the CollapseEnt-Map_Collapse_icon2 icon to close the search box.

Print – Users can print (export) the current Map widget display and extents. Only visible layers will be included. The print functionality is disabled by default and can be enabled by selecting the "Enabled" check box on the User Interface tab in the Map Widget Editor. The print functionality uses Esri's PrintingTools service hosted on ArcGIS Online. The supported output formats from the PrintingTools service are PDF, PNG32, PNG8, JPG, GIF, EPS, SVG, SVGZ, TIFF and AIX.

Select the Print Ent-Map_Widget_Print_Button button to view a drop-down list of exporting options for a page Layout or Map Only. The Layout tab can be used to include additional information, such as a title, legend, etc. The scale can be set using either tab.

Ent-Map_Widget_Print_Expanded-All

Ent-Map_Widget_Print_Expanded-MapOnly

Click the Export button after all options are set to generate the designated file. The exported file will be displayed beneath the Export button. Click on the file to open the file from Esri's server in a browser window. Download or save the file from the browser.

Click on the CollapseEnt-Map_Collapse_icon2 icon to close the drop-down menu in the Map widget.

Legend – When a layer is added to the map, the LegendEnt-Map_Widget_Legend_Button button can be selected to view a drop-down list of map symbols. Click on the CollapseEnt-Map_Collapse_icon2 icon to close the drop-down menu.

Area Measurement – The area measurement option allows the user to delineate a polygon on the map and measure the area and perimeter in various spatial units. Click the Area Measurement Ent-Map_Widget_Area_Button icon to begin delineating the polygon and open the measurement dialog box. Select the unit drop-down menu to change units. The area and perimeter measurements will automatically update. This option does not add data to EQuIS.

ent-map_widget_area_example_zoom60

Click on the CollapseEnt-Map_Collapse_icon2 icon to close the measurement box. Click on the Clear Ent-Map_Widget_Area-Clear_Button icon to remove the user-generated polygon from the map. The area measurement functionality is disabled by default and can be enabled selecting the "Enabled" check box on the User Interface tab in the Map Widget Editor.

Distance Measurement – The distance measurement option allows the user to delineate a line on the map and measure the distance in various spatial units. Click the Distance Measurement Ent-Map_Widget_Distance_Button icon to begin delineating the line and open the measurement dialog box. Select the unit drop-down menu to change units. The distance measurements will automatically update. This option does not add data to EQuIS.

ent-map_widget_distance_example_zoom60

Click on the CollapseEnt-Map_Collapse_icon2 icon to close the measurement box. Click on the Clear Ent-Map_Widget_Area-Clear_Button icon to remove the user-generated line from the map. The distance measurement functionality is disabled by default and can be enabled selecting the "Enabled" check box on the User Interface tab in the Map Widget Editor.

 

 

3D Map Option

 

Users can select a "Use 3D" option on the General tab in the Widget Editor to display the map layers in 3D. When checked, the map will render in 3D and additional tools are available on the map to allow different view perspectives by panning and rotating. For layers that include Z coordinate data, features may be rendered above or below the map’s surface. It is possible to rotate the map view to see sub-surface features.

Ent-Map_Widget_3D

When the "Use 3D" option is checked, the following additional controls display on the map:

Toggle to Pan or Rotate in 3D – Click the Pan Ent-Map_Widget_3DPan_Button button to move the map horizontally and vertically without changing the extent or the compass orientation. Click the Rotate Ent-Map_Widget_3DRotate_Button button to adjust the angle and compass orientation of the map view.

Reset Compass Orientation – Click on the Reset Compass Orientation Ent-Map_Widget_3DCompass_Button button to reset the compass orientation to point north.

 

 

Popups

 

Popups can be defined to display when a user selects a location on the map. The Popup Window can display data, images, charts, crosstabs, and other information.

Ent-Map_Widget_Time_series_sys_loc_code

By default, the Popup Window has a leader to the selected location, however, it can be docked to the frame of the Map widget by selecting the Dock icon in the Popup Window. Once the Popup Window is docked, clicking on any other location will populate the Popup Window for that location. Select the Undock icon to undock the Popup Window or the Close icon to close the Popup Window.

Ent-Map_Widget_Time_series_sys_loc_code-Docked

Image files (e.g., PNG, JPG, GIF, SVG) associated with a location will display as a thumbnail in the Map Widget Popup Window. Image files can be associated to a location and uploaded via the Explorer widget. See the File Management article.

 

 

Interaction with Other Widgets and Filters

 

When a location on the Map widget is selected and the Time Series Chart widget is setup to separate charts by SYS_LOC_CODE, the time series chart will automatically adjust to the selected location.

Ent-Map_Widget_Time_series_sys_loc_code

Ent-Time_Series_Chart_Widget_B-38

The Map widget allows the EZView widget to add a report layer onto the map. Users can drag and drop a valid (mappable) report from the EZView widget to a Map widget by dragging the report name from the EZView widget onto the map. The map will zoom to the extent of the report and display points for the report locations. This report layer will appear until the widget is refreshed.

 

The Dashboard Filter widgets allow the user to select a parameter value and filter the report output of reporting widgets (e.g., Map widget) on the dashboard. When the Filter-List widget filters on Location, the Map widget will display only the filtered locations or location groups. This function only works for report layers and does not apply to the facility layer.

 

Note: Due to the asynchronous nature of filtering and layer loading within the Map widget, the Map widget may create duplicates of layers if a user filters the dashboard quickly and does not allow the Map widget to finish loading. Users who experience this issue can fix it by simple refreshing the Map widget after filtering.

 

 

Widget Properties

 

Use the Widget Editor to change the properties of the Map widget. The widget properties are divided into six tabs (General, Layers, Labels, Symbology, Extents, and User Interface) in the Widget Editor and are each described in separate help articles.