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

How to use CustomGeometrySource #2210

Open
feelingsonice opened this issue Jul 11, 2024 · 0 comments
Open

How to use CustomGeometrySource #2210

feelingsonice opened this issue Jul 11, 2024 · 0 comments

Comments

@feelingsonice
Copy link

New Feature

I'm looking for examples showing how to use CustomGeometrySource. I've posted this request as a form of question in the Discord forms [1][2] but requesting this here as a feature (any kind of help would be great).

I have a custom tile server that can take in requests of the form zoom/x/y serving points data, but it's not serving the data in any standard MVT format or GeoJSON. I want to be able to render the points data on my map as a layer using CircleLayer.

Digging through the source code I'm guessing that I'm suppose to use CustomGeometrySource for this, but there's no examples showing how you're suppose to use it.

Namely, what are you suppose to do inside of fetchTileFunction and cancelTileFunction? I'm guessing I should be fetching data from my server and adding it to the map using map.setCustomGeometrySourceTileData?

Why

There's no example showing how to use CustomGeometrySource and I'd like to understand how to use it.

kaustubh-seachange pushed a commit to kaustubh-seachange/mapbox-maps-ios that referenced this issue Jul 24, 2024
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