Map Portlet Options

Available options depend on the type of map and other factors.

Map portlets use GeoJSON format files (which are bundled inside diveport.war). Additional information can be found in the webapps Map Portlet folder. If you have existing map files in a different format, you can use a utility such as ogr2ogr to convert the original shapefiles to GeoJSON format. Place the new file in the Solution\webdata\diveport\customizations\map-data folder. For more information, see Converting a shapefile to GeoJSON format.pdf or contact DI support.

 

Option Description
Street Layer Defines the map base layer. The default Automatic, uses ClosedOpen Street Map (OSM), which is a collaborative mapping site. Map data appears in the native language of the displayed area.

Other options are:

ClosedThunderforest: Outdoors

ClosedThunderforest: Transport

ClosedThunderforest: Open Cycle Map

ClosedThunderforest: Neighbourhood

Example of a neighborhood map layer.

ClosedThunderforest: Mobile Atlas

Example of a mobile atlas map layer.

ClosedStamen: Toner

Example of a toner map layer.

ClosedStamen: Toner Lite

Example of a toner lite map layer.

None Renders the map without a street layer.

NOTE: The use of Thunderforest base layers requires a Thunderforest API key to be defined in the Portal Settings dialog box. See DivePort Portal-Level Settings.

Add a layer

Opens the Select a layer type dialog box, which you can use to select the type of map that you want to use. Options are Boundary, Heat, Line, Point, and Web Map Service.

TIP: You can create a multi-layer map. This Closedexample shows a map with a boundary level and point level.

Boundary map with a point layer.

Select a data source page
Project Specifies the Workbench Project that you are using.
Look in Specifies the project folder where the marker is saved.
Up one level icon. Moves the browse sequence up one level.
File name Specifies the Spectre Dive, cBase, cPlan, Marker, or DiveBook source file to be used for map data.
Files of type Specifies the type of files that appear in the data source list on this page. You can select a type to filter the data source list.

Select Line ID page

Applies to line maps. This page lists available values from the selected Spectre Dive, cBase, cPlan, Marker, or DiveBook. Double-click the value that contains descriptive labels that display in a tooltip that appears when you place your pointer on the line.

Select a location value page

This page lists available values from the selected Spectre Dive, cBase, cPlan, Marker, or DiveBook.

Select the type of location value:

  • Use latitude and longitude columns

  • Use a location string

And then double-click the value that you want to use.

Select a source location/Select a target location pages

Applies to line maps. This page lists available values from the selected Spectre Dive, cBase, cPlan, Marker, or DiveBook. Double-click the value that contains geographical formatted longitude/latitude data to define the source (origin) and target (destination) points for the line.

Menu icon that looks like three vertical dots. Opens a context menu that you can use to sort the lists on this page. Options are Sort by type and Sort by name.

Select a geometry source page

Applies to boundary maps only. This page lists available geometry sources. Double-click the value that aligns with the selected location value. ClosedOptions.

Geometry source options.

The World States-Provinces 50m (Natural Earth).json is limited to US and Canada maps. However, the World States-Provinces 10m, World Countries 10m, World Countries 50m, and World Countries 110m json files contain data for all countries.

TIP: If you are migrating a portal from DivePort 6.4 or earlier that uses an older 3-digit zip code map, you might need to edit the portlet to update the geometry source and location key.

Select a location key page

Applies to boundary maps only. Specifies the format of the geographical data in the source data file. For example, if you are mapping the data by county, the location key could be County Code or County Name. You must enter the same location key that is used in the Spectre Dive, cBase, cPlan, Marker, or DiveBook.

NOTE: The values in the geographical dimension must use the same format as the geometry source. These values are case-sensitive. For example, the US Counties source that is included with DivePort uses the format <County,ST> where County is the county name, and ST is the two-letter state abbreviation.

Select a value page

This page lists available dimensions from the selected Spectre Dive, cBase, cPlan, Marker, or DiveBook. Double-click the data value that you want to use.

Layer Settings page

This page summarizes the selections that were made for the map portlet.

Source Specifies the source file.
Change data source icon, that looks like a folder and a magnifying glass. Opens the Select a data source page, which you can use to browse to a different source file.
Open file in another application icon. Opens a context menu where you can select an application in which to display the selected source data file.
Type Specifies the map type that was selected on the Select a layer type page.
Name Specifies a label for the map legend.
Line ID Applies to line maps. Specifies the dimension that was selected on the Select Line ID page. Click the chevron if you want to change the value.
Source Location Applies to line maps. Specifies the dimension that was selected on the Select a Source Location page. Click the chevron if you want to change the value.
Target Location Applies to line maps. Specifies the dimension that was selected on the Select a Target Location page. Click the chevron if you want to change the value.
Location Specifies the dimension that was selected on the Select a location value page. Click the chevron if you want to change the value.
Location ID Applies to maps that specify separate latitude and longitude columns. Identifies the location for click actions.
Latitude Applies to maps that specify separate latitude and longitude columns. Defines the latitude coordinate.
Longitude Applies to maps that specify separate latitude and longitude columns. Defines the longitude coordinate.
Value Specifies the dimension for map data that was selected on the Select a value page. Click the chevron if you want to change the value.
Auxiliary Measure Value Specifies a baseline or goal value that is defined in the Measure Factory.
Time series icon that looks like a gear.

Available in DivePort 7.1(24) and later with Measure Factory.

Opens the time series mode settings box. Options are Basic and Advanced.

Basic time series settings

Basic features are as follows:

Date Range

 

Specifies the date range. Options are:

  • Year to Date (The first day of the year returns 0)
  • Year to Complete Month (The first month of the year returns data for all of last year)
  • Quarter to Date (The first day of the quarter returns 0)
  • Month to Date (The first day of the month returns 0)
  • Week to Date (The first day of the week returns 0)
  • Complete Year
  • Complete Quarter
  • Complete Month
  • Complete Week
  • Complete Day
  • Rolling Year by Month (the last 12 complete months)
  • Year
  • Future Months
  • Time Range QuickView

Time period

 

Specifies the time period. Options are:

  • All
  • Current
  • Previous
  • Current Versus Previous
  • Current Versus Previous (%)

Advanced time series settings

Advanced features allow the following customization of the time period:

To Date

Uses the specified time range and offset values to define the time series. The default Time Range is the current Year to complete Day. Other options are Year to complete Month, Year to complete Quarter, Week to complete Day, Month to complete Day, and Quarter to complete Day.

The Offset value can adjust the time series by the specified time period. For example, setting the Time Range to Year to complete Day, with an offset of -1 Year, is the equivalent of last year to complete day. Available options for the offset time period are those time periods that are larger than or equal to the first time range.

Relative

Uses the specified complete time range and offset values to define the time series. The default Time Range is 1 Year, which is the current complete year. Other time period options are Day, Week, Month, and Quarter.

The Offset value can adjust the time series by the specified time period. For example, setting the Time Range to 1 Year, with an offset of -1 Year, is the equivalent of the year before the current complete year. Available options for the offset time period are those time periods that are larger than or equal to the specified time range.

Absolute

Uses the specified time range and offset values to define the time series. The default Time Range is Month 1 of the current year. The other time period option is Quarter. This option supports custom calendars.

The Offset value can adjust the time series by the specified number of years.

Comparison time series settings

Available in DivePort 7.1(25) and later. Comparison time series calculates the difference between two specified time series.

To Date

Uses the specified time range and offset values to define the time series. The default Time Range is the current Year to complete Day. Other options are Year to complete Month, Year to complete Quarter, Week to complete Day, Month to complete Day, and Quarter to complete Day.

The From offset and To offset arguments specify the timeframes that are used for comparison.

Relative

Uses the specified complete time range and offset values to define the time series. The default Time Range is 1 Year, which is the current complete year. Other time period options are Day, Week, Month, and Quarter.

The From offset and To offset arguments specify the timeframes that are used for comparison.

Absolute

Uses the specified time range and offset values to define the time series. The default Time Range is Month 1 of the current year. The other time period option is Quarter. This option supports custom calendars.

The From offset and To offset arguments specify the timeframes that are used for comparison.

Boundary map options
Geometry Source Applies to boundary maps. Specifies the json file that was selected on the Select a geometry source page. Click the chevron if you want to change the value.
Location Key Applies to boundary maps. Specifies the location key that was selected on the Select a location key page. Click the chevron if you want to change the value.
Point map options
Cluster points with descriptor Applies to point maps only. Combines data points into a cluster, and provides a text box that you can use to specify a custom tooltip for the cluster of points.
Shape Applies to point maps. Specifies the shape of the data points. The default is Triangle. Other options are Circle, Square, and Icon.
Icon Source

Applies to point maps using an Icon shape. Specifies a custom icon that located in the \webdata\<diveport>\doc-libraries\Portal Media\images folder.

NOTE: On the map, icons assume the size of the source image.

Heat map options
Radius Applies to heat maps. Specifies the radius, in pixels, of each data point.
Blur Applies to heat maps. Specifies the blur factor, in pixels, that is applied to the data points. Higher blur factors produce smoother gradients.
Line map options
Shape Applies to line maps. Specifies if the line is Strait or Curved. If Curved is selected, you can specify the angle of the curve by degrees in the range of -45 to 45. Setting 0 degrees draws a straight line.
Thickness Applies to line maps. Specifies the line thickness, in pixels.
Point Shape Applies to line maps. Specifies the shape of the source and target data points. The default is Triangle. Other options are Circle and Square.
Point size

Applies to line maps. Specifies the size, in pixels, of the source and target data points.

Web Map Service options
URL

Applies to Web Map Service maps. Specifies the URL of the Web Map Service. For example, https://idpgis.ncep.noaa.gov/arcgis/services/NWS_Forecasts_Guidance_Warnings/NDFD_temp/MapServer/WMSSever?

Note the following:

  • The URL must begin with https
  • Attributes can be appended to the URL in the format <attribute>=<value>&
  • Pipe characters cannot be used as attribute separators
  • The URL must end with a question mark if there are no attributes, or an ampersand if there are attributes
WMS Layer Name Applies to Web Map Service maps. Specifies the name of the WMS layer.

More settings

The Street Layer page has links to More settings at the bottom of the page. These options affect the map base layer.

TIP: You can use both Position and Extent to constrain latitudes and longtitudes—this locks the map so it can only scroll up and down. If you want full drag capability, do not use these attributes at the same time.\

 

The Layer Settings page has links to More settings at the bottom of the page. Options vary, depending on the map type.