Zoomed Image

Maps

Configuration Guide

Settings

Maps

xAssets draws maps with MapLibre and xAssets map files by default. Google Maps is the other choice. A location appears on a map when its record has a latitude and a longitude. Place My Locations finds them for every location in one run.

Map Settings

Both settings are in the Integrations class of Admin > Settings.

Setting Values
Map Engine (MapEngine) MapLibre (xAssets map files), the default, or Google Maps (needs the Map Key)
Map Files Address (MapDataUrl) Blank uses the xAssets map server, or this server's own map files when it has no map server access. Set an address only to read the map files from somewhere else.

Google Maps also needs a Google Maps key in the Map Key setting (MapKey).

The Integrations settings class, showing Map Files Address, Map Engine and Map Key

Map Files

xAssets hosted servers read the map files from the xAssets map server. Leave Map Files Address blank.

A server you run yourself reads them from the MapData folder under CustomerData:

File Holds
world.pmtiles The world map. Required.
sites.pmtiles Street-level detail around your sites. Optional. When present it is drawn over the world map.
assets\fonts, assets\sprites The fonts and icons the map uses

When world.pmtiles is missing, the map uses Google Maps if a Map Key is set. Without a key the map says "The map files are not installed on this server. Ask your administrator to install them, or to set Map Engine to Google Maps."

Giving Locations Map Coordinates

The Mapping section of a location record holds Coord Units, Latitude and Longitude. Coord Units is MAP for a location that can appear on a map. Set them one at a time, or for every location with Place My Locations.

A location with no coordinates of its own takes the position of the nearest location above it that has them. Place a site, and every building, floor and room under it is placed too.

One Location

  1. Open the location from Classification > Location Hierarchy.
  2. Click Set Coordinates From Address in the Mapping section. It looks up the address with Google's geocoder. With a blank address it offers to use the location name.
  3. Check Latitude and Longitude and save the record.

Every Location: Place My Locations

Place My Locations is on the Classification menu. Administrators and Configuration Users can open it.

  1. Click Find Coordinates. It looks up up to 100 locations at a time that have no map position yet. Top-level locations go first. When a parent is found, the locations under it are not looked up.
  2. Each location is looked up by its address, or by its name when it has no address. A partial match counts as not found.
  3. A name the geocoder cannot find goes to the AI assistant. It turns the name into a place, such as "LON-DC2 Rack 4" into "London, United Kingdom". The place is then looked up again. The AI never supplies coordinates. The AI returns nothing for rooms, racks and departments.
  4. The review list shows each location, what was searched for, the place found, how it was found, and the latitude and longitude.
  5. Select the rows that are right and click Accept Selected. Each location is saved with its coordinates and address, with the normal audit history.
  6. Select wrong rows and click Discard Selected. To correct one, open the location from the list and fix its address or coordinates. Or discard it and click Find Coordinates again.

Place My Locations, with the Find Coordinates, Accept Selected and Discard Selected buttons above the review list

Nothing changes on a location until you accept it. A second run skips the locations already tried.

The run stops and says why in three cases. Google refuses the request (REQUEST_DENIED: the key does not allow geocoding). Google limits it (OVER_QUERY_LIMIT: wait a minute and run it again). Or Google cannot be reached. With no AI access the AI step is skipped and the names are kept as "No match".

Privacy

  • Set Coordinates From Address and Place My Locations send location names and addresses from the browser to Google's geocoder, using the Map Key. Google bills each lookup to that key.
  • Place My Locations sends the names Google cannot find to the xAssets AI gateway. Each goes with its address, its country and the names of the locations above it.
  • With Map Engine set to MapLibre, showing a map sends nothing to Google. The map files come from the xAssets map server or from your own server.