Impossible to see the map of my area via documentation

I cannot render the map of my area. These are the steps I have taken in case they weren’t the right ones.

  • From maptiler download OpenStreetMap vector tiles Cadiz (Europe-Sapin), for instance as input.mbtiles file.

  • Follow instructions to extract smaller file tiles from Developer Guide: Working on map to generate output.mbtiles renaming to mapdata.mbtiles

  • On docker-compose i have:

    manager:
    restart: always
    image: openremote/manager:${MANAGER_VERSION:-latest}
    depends_on:
    keycloak:
    condition: service_healthy
    volumes:
    - ./deployment:/deployment
    environment:
    DEV_MODE: ${DEV_MODE:-false}
    SETUP_ADMIN_PASSWORD: ${SETUP_ADMIN_PASSWORD:-secret}

  • Move smalller file mapdata.mbtiles files to local /deployments/map as the docker mounted volume.

  • No mapsettings.json defined, but if defined notyhing (center maps and bounds defined too) happens. I do not know where to find mapsettings.json corresponding to Openstreetmap vector downloaded.

  • No error on manager container via logs file mapdata.mbtiles is found and loaded when reload container.

  • Nothing display y map area. No maps in the interface.

Any help would be appreciated !! I need help. Thanks in advance.

The mapsettings.json file contains two things:

  1. The mapbox styling to use for the vector map data (road colours, etc.)
  2. Manager UI map widget settings (initial centre point, zoom level, etc.)

So if you are providing a custom mapdata.mbtiles then you need to also provide custom centre point values for the map widget as by default the centre point and bounds will be around Rotterdam.

mapsettings.json is explained in the wiki article here

As you can see the mapping is ./deployment/ and you are putting mbtiles in /deployments/map. Not only it isn’t a subdirectory to the current path but it has extra ‘s’ letter at the end.

Thank you for your answer. It’is an error in my forum transcription message, but it is ok in my deploy (in singular too).

OK, can you run the following command and see if your files are there?

docker exec openremote_manager_1 ls -Rl /deployment

you should see an output like this:

/deployment:
total 21936
drwxr-xr-x 3 1000 1000     4096 May 26 15:02 keycloak
drwxr-xr-x 5 1000 1000     4096 Jun  7 20:08 manager
drwxr-xr-x 2 1000 1000     4096 May 26 15:02 map

/deployment/keycloak:
total 4
drwxr-xr-x 2 1000 1000 4096 May 26 15:02 themes

/deployment/keycloak/themes:
total 0

/deployment/manager:
total 16
drwxr-xr-x 3 1000 1000 4096 May 26 15:02 app
drwxr-xr-x 2 1000 1000 4096 May 26 15:02 extensions
-rw-r--r-- 1 root root  223 Jun  7 20:47 keycloak.json
drwxr-xr-x 3 1000 1000 4096 May 26 15:02 provisioning

/deployment/manager/app:
total 8
drwxr-xr-x 2 1000 1000 4096 May 26 15:02 images
-rw-r--r-- 1 1000 1000  581 May 26 15:02 manager_config.json

/deployment/manager/app/images:
total 16
-rw-r--r-- 1 1000 1000 6850 May 26 15:02 favicon.png
-rw-r--r-- 1 1000 1000  961 May 26 15:02 logo-mobile.png
-rw-r--r-- 1 1000 1000 2529 May 26 15:02 logo.png

/deployment/manager/extensions:
total 4
-rw-r--r-- 1 1000 1000 261 May 26 15:04 openremote-deployment-1.0-SNAPSHOT.jar

/deployment/manager/provisioning:
total 4
drwxr-xr-x 2 1000 1000 4096 May 26 15:02 consoleappconfig

/deployment/manager/provisioning/consoleappconfig:
total 4
-rw-r--r-- 1 1000 1000 658 May 26 15:02 master.json

/deployment/map:
total 1006992
-rw-rw-r-- 1 1000 1000 1031077888 Mar 18 12:38 mapdata.mbtiles
-rw-r--r-- 1 1000 1000      75726 May 26 15:02 mapsettings.json

Note the bottom with map config files.

Thxs again for all information. The problem was in mapsettings.json. I took coordinates from google maps to center map (latitude, longitude) but in mapsettings.json is defined (longitude, latitude).

Now it’s working properly.

2 Likes