Read/Write "mapThemeId"

Allows you to select one of the predefined map themes to be shown.

Synopsis

shape.mapThemeId(string themeId);

Parameters

Parameter Description
themeId

Relative path to the .dgml file of the map theme. Following themes are provided with the Maps Widget and located within the "data/marble/maps/" directory of the version:

  • Earth at Night (earth/citylights/citylights.dgml)
  • Empty Map (used as a base for offline maps) (earth/empty/empty.dgml)
  • OpenStreetMap (earth/openstreetmap/openstreetmap.dgml)
  • OpenTopoMap (earth/opentopomap/opentopomap.dgml)
  • Plain Map (cities, borders, rivers etc.) (earth/plain/plain.dgml)
  • Satellite View (earth/bluemarble/bluemarble.dgml)
  • WMS Example (earth/wmsexample/wmsexample.dgml)

Details

Additional themes can be manually added to the Maps Widget, see Configuration - Map Themes.

The themes must be selected by stating the relative path to either the project directory "data/maps/maps/" or the version directory "data/marble/maps/" to the .dgml file of the map theme.

Note:

Note that additional folders within the version, e.g. "clouds" or "humanitarian" cannot be used as a map theme but are referenced by other map themes.

For downloading the map material it is also necessary to set the property workOffline to false.

Assignment

Maps Widget