Closed karakostis closed 6 years ago
@karakostis did you check the console and network logs from the browsers inspector? The following thread has some debugging tips: https://github.com/maputnik/editor/issues/208
@pathmapper yes I have checked that thread. I get the following error in my network logs:
Cannot GET /data/wld_airports.mbtiles/{x}/{y}/{z}.pbf
and in my console:
mapbox-gl.js:29 GET http://localhost:8080/data/wld_airports.mbtiles/%7Bz%7D/%7Bx%7D/%7By%7D.pbf 404 (Not Found) t.getJSON @ mapbox-gl.js:29 k @ mapbox-gl.js:33 i.load @ mapbox-gl.js:33 i.onAdd @ mapbox-gl.js:33 i.onAdd @ mapbox-gl.js:33 i.addSource @ mapbox-gl.js:33 (anonymous) @ mapbox-gl.js:33 i.setState @ mapbox-gl.js:33 o.setStyle @ mapbox-gl.js:33 updateMapFromProps @ MapboxGlMap.jsx:96 componentDidUpdate @ MapboxGlMap.jsx:105 commitLifeCycles @ react-dom.development.js:9792 commitAllLifeCycles @ react-dom.development.js:11455 callCallback @ react-dom.development.js:100 invokeGuardedCallbackDev @ react-dom.development.js:138 invokeGuardedCallback @ react-dom.development.js:187 commitRoot @ react-dom.development.js:11594 completeRoot @ react-dom.development.js:12502 performWorkOnRoot @ react-dom.development.js:12452 performWork @ react-dom.development.js:12370 performSyncWork @ react-dom.development.js:12347 interactiveUpdates @ react-dom.development.js:12597 interactiveUpdates @ react-dom.development.js:1958 dispatchInteractiveEvent @ react-dom.development.js:4259 mapbox-gl.js:29 e {status: 404, url: "http://localhost:8080/data/wld_airports.mbtiles/{z}/{x}/{y}.pbf", name: "e", message: "Not Found"}
Its weird since I actually am able to display these data on a local OL map.
@karakostis is this still an issue for you?
For me it looks like an issue with your local tile server or with the URL you are using.
Maybe a missing identifier: localhost:8080/data/identifier/{z}/{x}/{y}.pbf ?
Which tileserver are you using? Maybe try tileserver-gl-light
?
Are you able to request a single tile directly using something like http://localhost:8080/data/v3/8/134/89.pbf in your browser? (Replace {z}/{x}/{y}
with the values for an existing tile. You should be able to get valid values from the network logs from the browsers inspector when browsing your working local OL map).
Closing here - if this is still an issue, please let us know and we'll reopen the issue.
Hi, I am having sort of the same problem: I am able to display succesfully this group of geoserver layers in qgis with no problem, and through the Network activity panel in qgis I see all tiles served: http://localhost:8080/geoserver/gwc/service/tms/1.0.0/burgos-callejero@EPSG%3A900913@pbf/{z}/{x}/{-y}.pbf
On the other hand, when adding it as a Vector (XYZ URL) in maputnik version Editor: 1.7.0; Desktop: 1.0.7, I don´t even get any signal of it in my browser network.
If I do http://localhost:8080/geoserver/gwc/service/tms/1.0.0/burgos-callejero@EPSG%3A900913@pbf/{x}/{-y}/{z}.pbf or http://localhost:8080/geoserver/gwc/service/tms/1.0.0/burgos-callejero@EPSG%3A900913@pbf/{x}/{y}/{z}.pbf nothing happens also.
What I migh be missing? Thx
Greetings, I, too, am having the same sort of problem.
I logged an Issue #905 because I could not get Maputnik to see (or even make requests to) data served from a MapLibre Martin server on port 3000 in the form of ZXY.
http://localhost:3000/jlptiles/{z}/{x}/{y}
The Martin server which I built was validated with QGIS.
My Issue was converted into a Discussion.
I launched my martin server and maputnik, both on a Debian server, and then tried accessing maputnik from my Window workstation using Firefox and 2 CORS errors appeared without my doing anything within the interface. Here are the error messages copied form the Firefox console in full:
I am running maputnik in my localserver and I try to add a new source from my local tile server. I add a Vector XYZ url but nothing appears on the map:
http://localhost:8080/data/KingCo_2000_Census_BlockGroups/{x}/{y}/{z}.pbf
I also tried adding with this combination:
http://localhost:8080/data/KingCo_2000_Census_BlockGroups/{z}/{x}/{y}.pbf
I get no errors on the inspector.
Anyone can advise me how to make it work? I need to add the source to style the layer and get information about the source-layer (is there another way to get information about the source-layer?)