Trying to build with PMTiles support #3025
-
@tdcosta100 I'm trying to build the library with pmtiles support. I merged in your PR to the main branch and followed the build steps here: https://github.com/maplibre/maplibre-native/blob/main/platform/ios/CONTRIBUTING.md The full style file I'm using is below. I'm doing something wrong? Is the port in the URL the issue? I checked that the {
"version": 8,
"name": "Harris County Parcels",
"sources": {
"parcels-source": {
"type": "vector",
"url": "pmtiles://192.168.50.231:8080/harris.pmtiles"
}
},
"layers": {
"id": "parcels",
"type": "line",
"source": "parcels-source",
"source-layer": "stratmap24-landparcels_48201_harris_202407",
"layout": {},
"paint": {
"line-color": "#aaa"
}
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Hi, @scriptprojectsdev. Before trying to figure out if there's something wrong with the build, please try to correct your URL using this: |
Beta Was this translation helpful? Give feedback.
-
I created this protomaps test style that seems like it works for me locally, if you wanted to try it and see what you get with it. I used this command I built on ubuntu 22.04 using the instructions from I checked the pmtiles test branch using the following
|
Beta Was this translation helpful? Give feedback.
Hi, @scriptprojectsdev. Before trying to figure out if there's something wrong with the build, please try to correct your URL using this:
pmtiles://http://192.168.50.231:8080/harris.pmtiles
. The PMTiles provider just remove thepmtiles://
part of the URL and then forwards it to the next provider available. Since you are not putting anything afterpmtiles://
as protocol, none provider accepts it.