maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.19k stars 632 forks source link

Edge cropping and Label overlap issue with same style and data in different server #377

Open toton6868 opened 5 years ago

toton6868 commented 5 years ago

I have two different servers with Ubuntu 18.04. I am running tileserver-gl with docker in both servers though I have built tileserver-gl in those servers. With built from the source I was unable to run raster server. whenever I tried the servers crashed. But with docker I was lucky to run raster server. I have tried to develop own custom vector mbtiles. For a few reasons, I have multiple vector mbtiles file and here is my config

{
  "options": {
    "paths": {
      "root": "",
      "fonts": "fonts",
      "styles": "styles",
      "mbtiles": "",
      "sprites": "sprites"
    },
    "formatQuality": {
      "jpeg": 80,
      "webp": 90
    },
    "maxScaleFactor": 3,
    "maxSize": 2048,
    "pbfAlias": "pbf",
    "serveAllFonts": false,
    "serveStaticMaps": true
  },
  "styles": {
    "v3": {
      "style": "v3/style.json",
      "tilejson": {
        "type": "overlay",
        "bounds": [
          87.99765,
          18.58403,
          92.69043,
          26.64677
        ]
      }
    }
  },
  "data": {
    "cluster_1": {
      "mbtiles": "cluster_1.mbtiles"
    },
    "cluster_2": {
      "mbtiles": "cluster_2.mbtiles"
    },
    "cluster_3": {
      "mbtiles": "cluster_3.mbtiles"
    }
  }
}

In my style I have used in all labelling

"text-allow-overlap": false,
"text-ignore-placement": false,
"symbol-avoid-edges": true

But still there is edge cropping and label overlapping issue. I was surprised and the interesting part is in one server only edge cropping happening and in other overlapping happening in Raster server. See the following images from different servers.

First Server Overlap Issue:

Screenshot 2019-07-10 at 10 58 20 AM

Second Server Edge Cropping Issue:

Screenshot 2019-07-10 at 10 58 34 AM
yongzhixu commented 5 years ago

same issue here. concerned! don't know how to tackle this yet.

marek-polewski commented 4 years ago

Hi,

I have the same issue (edge cropping). Looks like it was introduced around v2.5.0 release. You can fall back to v2.4.0 to fix that.

BR.