Skip to content
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

Parsing error with using MapServer layer #10

Open
JoseAlmeidaCamenAi opened this issue Sep 12, 2023 · 0 comments
Open

Parsing error with using MapServer layer #10

JoseAlmeidaCamenAi opened this issue Sep 12, 2023 · 0 comments

Comments

@JoseAlmeidaCamenAi
Copy link

Hi, I have an implementation of Mapbox using this package where I can load features from a FeatureServer without issue (i.e.: https://basisregistraties.arcgisonline.nl/arcgis/rest/services/BGT/BGT_objecttypen/FeatureServer/4 ).

I read in the docs that it should also support MapServer URLs, however I am having issues with a specific service I need to use:

https://diensten.rotterdam.nl/arcgis/rest/services/SB_Infra/Container/MapServer/0

where it just throws the following error:
Could not parse arcgis buffer. Please check the url you requested. (mapbox-gl-arcgis-featureserver.esm.js:297 )

I think this might be due to some problem with the data on that service and the decoding of the 'pbf' format, but I don't think I can easily get that checked / fixed with the provider / maintainer of that service, particularly without more specific details on the exact cause of the problem.

I am curious if it would be possible to force the calls to this endpoint to use geojson format instead of pbf, and if that wouldn't have the same issue with parsing, but there doesn't seem to be an option / parameter I can pass for that, or if you could maybe have more insight on why this pbf parsing is failing and how that could be fixed (at the source).

I think I still have the fallback option of using that layer as a WFS service, but that is a bit more convoluted to implement so I would rather stick with this FeatureServer / MapServer approach if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant