-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature: Enable PMTile protocol support #186
Comments
In my opinion the useAddProtocol hook provides the required functionality to work well with the pmtiles package. The example from pmtiles can be easily adapted to work with MapComponents though.
If you provide an example that is not working now, we can take a look at it. |
Thanks very much for the help! Your example is very straight forward, but I don't seem to be able to get it to work. If you checkout https://github.com/bcgov/WetpaddlersV2/tree/issue_example that branch, and EDIT: This branch got a bit closer, but gives a 'invalid PMTile URL error: issue_example_2 |
I have created a pull request for your repo that fixes the implementation. The examples in the pmtiles repo are working too though. The props object passed to the protocol handler in the pmtiles repo examples has a |
Thank you again for the help and insight! |
@mapcomponents/react-maplibre version:
Feature description
PMTile vector sources can be rendered
Example
<MlPMTileLayer or MlVectorTileLayer
Summary
For react devs using maplibre your library is a clear win, however some of us are using pmtile files and its not super intuitive to add a new protocol just yet
The text was updated successfully, but these errors were encountered: