Hello everyone -

I am running geoserver with the docker image kartoza/geoserver:2.18.2. I
have added the mbtiles-store and mbstyle plugin in order to upload and
style OSM data from maptiler. And it works! However I cannot get the
sprites to work, so the map is full of dark patches where there should be
dot patterns. I installed the sprites in the styles folder and I configure
my style like this:

{
  "version": 8,
  "name": "Toner - Landcover",
  "sources": {
    "openmaptiles": {
      "type": "vector",
      "url": "
https://api.maptiler.com/tiles/v3-openmaptiles/tiles.json?key={key}";
    }
  },
  "glyphs": "
http://localhost:8080/geoserver/data/styles/{fontstack}/{range}.pbf";,
  "sprite": "http://localhost:8080/geoserver/data/styles/sprite";,
  "layers": etc....

I have checked the permissions of the sprite.png and sprite.json files and
they're fine. But when I run curl the resource is not recognized:

geoserveruser@neckarinsel_geoserver:/opt/geoserver/data_dir/styles$ curl
http://localhost:8080/geoserver/data/styles/sprite.json
<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not
Found</title><style type="text/css">body
{font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b
{color:white;background-color:#525D76;} h1 {font-size:22px;} h2
{font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;}
.line
{height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP
Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status
Report</p><p><b>Description</b> The origin server did not find a current
representation for the target resource or is not willing to disclose that
one exists.</p><hr class="line" /><h3>Apache
Tomcat/9.0.44</h3></body></html>

This is also true for the fonts that I installed in the styles folder. Does
anyone know how to solve this problem?

best, Brian Holmes
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to