Overview
OMA can install a dedicated package of Basic Landbase maps for use while the device is disconnected. To minimize device storage and improve rendering performance, use street centerline data and other simple landbase features, such as railroad centerlines and water body outlines.
Configure the following items for the project:
1. Create a [project]-build-landbase-mobile-maps script based on $NMS_BASE/OPAL/bin/OPAL-build-landbase-mobile-maps. The script reads Basic Landbase files named *_lb.geojson from $OPERATIONS_MODELS/export and stages them under $OPERATIONS_MODELS/export/landbase. It then generates mobile_geojson_landbase_maps.json and creates the dedicated offline_landbase_maps.zip package. The script also creates offline_landbase_maps.json, which contains the package version. Place offline_landbase_maps.json and offline_landbase_maps.zip in the OMA2 project directory so that the OMA2 build includes them.
2. Create a [project]_landbase_geojson_export.dat file containing the definitions of the objects to transform from the landbase centerline .mb file into the resulting GeoJSON files. Use $NMS_BASE/OPAL/sql/OPAL_landbase_geojson_export.dat as a template. The OPAL template uses the NMS standard street centerline model and OPAL-specific railroad and waterway objects. Do not include text objects or street intersection points.
The OMA product template includes example Basic Landbase maps for the OPAL model area.
After login, when Automatically Download Offline Landbase is enabled, OMA checks offline_landbase_maps.json. If the cached package version is missing or older, OMA downloads offline_landbase_maps.zip and installs every map in the package. OMA records the package version only after all maps are installed successfully. If installation is incomplete, the version is not recorded and OMA retries the package at a later login.
Automatically Download Offline Landbase controls whether OMA acquires and updates the package. Show Offline Landbase When Offline controls whether OMA automatically uses the installed Basic Landbase maps while disconnected; it does not download or update the maps. Note that Basic Landbase can still be loaded from the server while connected to NMS.
Use Basic Landbase as the user-facing map name. Retain the deployment filenames offline_landbase_maps.json, offline_landbase_maps.zip, and mobile_geojson_landbase_maps.json.