3D maps
Edit the 3D site map, see where its map data comes from, serve map tiles yourself and keep the map fast.
The Aniston Nexus map is the 3D site map widget (nexus_water.map3d): a MapLibre GL map with extruded buildings, terrain and 3D icons for tanks, pumps, buildings and campus equipment, coloured by live status. Every map in the Water, BMS and Smart Campus dashboards uses it. Without WebGL 2 it falls back to a flat 2D view.
Editing the map
Tenant administrators edit the map on the Water – Map Editor dashboard (widget nexus_water.map_editor):
- place and move icons, link them to devices or assets,
- draw areas and lines (zones, pipelines),
- manage scenes: named 3D layouts with uploaded GLB models and images, kept with revisions in nexus-services (
/api/water/v1/scenes) and selected per asset (nexusMapSceneattribute) or for the whole tenant/customer (nexusMapScope).
Uploaded models and images are stored in the services-data volume; back it up (see Backup).
Live water network, camera views and per-customer visibility: see 3D map: water network, camera views and visibility.
Where map data comes from
| Data | Default | Self-hosted / offline option |
|---|---|---|
| Map libraries (MapLibre GL 5.24, three.js r147, GLTFLoader) | Uploaded to the tenant as JavaScript resources by the Water installer (solutions/nexus-water/vendor/) | Already local; the public CDN is used only when the resources are missing |
| Campus outline, buildings, roads, water bodies | Embedded in the widget from solutions/uoh-campus/uoh_campus.geojson (OpenStreetMap, ODbL) | Already local |
| Satellite imagery | Esri World Imagery (server.arcgisonline.com) in the browser | Your own tile server: Satellite tile URL (satelliteTileUrl), or the custom basemap below |
| Street map | OpenStreetMap tiles (light use only under the OSM tile policy) | Custom basemap with Custom tiles URL (customTilesUrl) |
| Terrain | AWS Terrain Tiles (terrarium PNG) | Your own terrain tiles: Terrain tile URL (terrainTilesUrl), Terrain encoding (Terrarium or Mapbox Terrain-RGB), Terrain maximum zoom, Terrain attribution; or turn terrain off |
| OpenStreetMap buildings outside the campus | Overpass API (overpassUrl) when OSM buildings is on | Turn OSM buildings off, or point overpassUrl at your own Overpass server |
| Libraries when the tenant resources are missing | unpkg CDN | Turn CDN fallback off so the widget never calls a CDN |
A configurable URL is not the same as offline. The map works fully offline only when imagery and terrain come from servers on your network, or are turned off (the 3D buildings, icons and campus data still show).
Serving tiles yourself
- Produce tiles you are licensed to use (your own drone or survey imagery, a licensed product, or open data such as Sentinel-2 cloudless (CC BY 4.0) or OpenStreetMap rendered yourself). Do not bulk-download tiles from public services; their terms forbid it.
- Put them as XYZ folders into
docker-local/tiles/(production: the folderNEXUS_TILES_DIRindeploy/production/.env, default/opt/nexus/shared/tiles):imagery/{z}/{x}/{y}.jpg,terrain/{z}/{x}/{y}.png. The frontend nginx serves them at/tiles/on the same origin, read live (no restart).docker-local/tiles/README.mdshows how to make tiles with GDAL;check-tiles.shtests one. - In the 3D map widget settings, choose the custom basemap, set Custom tiles URL to
/tiles/imagery/{z}/{x}/{y}.jpg(same origin, no CORS issues) and Custom attribution to the text your licence requires. For terrain, serve terrarium (or Terrain-RGB) PNG tiles, e.g./tiles/terrain/{z}/{x}/{y}.png, and set Terrain tile URL, or turn Show terrain off. Turn OSM buildings and CDN fallback off for a fully offline map.
Attribution: the map shows the attribution of each active source. Keep "© OpenStreetMap contributors" for the campus data and the imagery provider's credit.
Performance
If a PC struggles with the 3D map, turn off terrain, 3D models and OSM buildings in the widget settings, and lower the pitch for a flatter view. The dashboards that carry a map also have a list view (tank grid, device tables) with the same information, for keyboard and screen-reader users.