Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty street names and building names #1365

Open
proton5000 opened this issue Aug 23, 2024 · 4 comments
Open

empty street names and building names #1365

proton5000 opened this issue Aug 23, 2024 · 4 comments

Comments

@proton5000
Copy link

I'm trying to start the tile server using your instructions
https://github.com/maptiler/tileserver-gl?tab=readme-ov-file#getting-started-with-docker

wget https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/test_data.zip
unzip test_data.zip
docker run --rm -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-gl
[in your browser, visit http://[server ip]:8080]

when I go to http://localhost:8080 I see the style I need, I select it and see the map I need, everything is fine with this, but there is one problem - the names of streets and buildings are not displayed, there are only icons displaying the type of task like a pharmacy, a shopping store, etc.
path to the map file in config.json I I have updated it according to my map

image
image

I use the map at https://download.geofabrik.de/europe/ukraine-latest.osm.pbf
I generate mbtiles like this:

docker run -it --rm -v $(pwd):/data ghcr.io/systemed/tilemaker:master /data/ukraine-latest.osm.pbf --output /data/ukraine-latest.mbtiles

Please tell me what needs to be done to make the names of streets and buildings appear?

@acalcutt
Copy link
Collaborator

In the data section if you go to 'Inspect' and your data source and look at those building and roads, what do you see. Do you see any points with attributes?

For example, I get something like this with my planetiler generated openmaptiles source
image

If it does show up in Inspect, you may look at updating osm bright, by making a config file and downloading the latest version of the style ( https://github.com/openmaptiles/osm-bright-gl-style/releases/tag/v1.11 ) since sometimes there are schema updates

@proton5000
Copy link
Author

proton5000 commented Aug 30, 2024

@acalcutt

I just cloned the latest version from the repository https://github.com/openmaptiles/osm-bright-gl-style and it is with it that I have this problem

I checked the data on your recommendation - everything is displayed here
image_2024-08-30_17-27-11

@acalcutt
Copy link
Collaborator

acalcutt commented Aug 30, 2024

I don't see the building name or road names you are missing in that screenshot., but if they are there you would have to look at your style and see why they aren't included.

also, what do you mean by building names? Do you mean house numbers? I'm not sure the osm-bright theme has house numbers in the style I think I had to add it like this in my modified style https://github.com/acalcutt/wifidb-tileserver-gl/blob/master/tileserver-gl/styles/WDB_OSM/style.json#L4548-L4569

@dot-mike
Copy link

dot-mike commented Feb 6, 2025

Also seeing this "issue". Downloading the latest style resolved the issue for me. You can get it here: https://github.com/openmaptiles/osm-bright-gl-style/releases/tag/v1.11

Download this zip file. Unpack it and use setup-local.json as your style file. Important, in config.json you have to have the mbfile definition in the v3 key. See my example below.

PS, also make sure you have the fonts. They can be gotten by downloading this zip file https://github.com/openmaptiles/fonts/releases/download/v2.0/noto-sans.zip and extract it into data/fonts directory.

here is my working setup directory for reference

tileserver $ tree
.
├── compose.yaml
├── data/
│   ├── mbtiles/
│   │   └── country.mbtiles
│   ├── config.json
│   ├── fonts/
│   └── styles/
│       ├── osm-bright/
│       │   ├── sprite.json
│       │   ├── sprite.png
│       │   ├── [email protected]
│       │   ├── [email protected]
│       │   └── style.json

and this is my docker compose

name: tileserver

services:
  tileserver:
    image: maptiler/tileserver-gl:latest
    ports:
      - 8080:8080
    restart: unless-stopped
    volumes:
       - ./data:/data

this is a working config.json

{
  "options": {
    "paths": {
      "root": "/data",
      "fonts": "/data/fonts",
      "styles": "styles"
    },
    "serveStaticMaps": true,
    "formatQuality": {
      "jpeg": 90,
      "webp": 90
    },
    "maxSize": 8192,
    "pbfAlias": "pbf",
    "staticAttributionText": "© OpenMapTiles  © OpenStreetMaps contributors"
  },
  "styles": {
    "osm-bright": {
      "style": "osm-bright/style.json",
      "tilejson": {
        "type": "overlay"
      }
    }
  },
  "data": {
    "v3": {
      "mbtiles": "/data/mbtiles/country.mbtiles"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants