-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added Tile Matrix Set Retrieval and Collection Tile URL Generation #34
Conversation
1b8d133
to
0d7cd25
Compare
Added a methods to get the TileMatrixSet and genrate collection tile url add fixtures & tests
0d7cd25
to
d8fb199
Compare
bf01ceb
to
dff2983
Compare
I have implemented the The method works by first checking if the endpoint offers tiles. If it does, it fetches the collections and filters them to only include those that offer vector tiles. This is determined by checking if the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It's looking really good. I made a comment about the vectorTilesCollections
getter, somehow I think we have to find a simpler way to get that list.
Maybe allCollections
could return more than an identifier for each, e.g. a small object containing information like "hasVectorTiles", "hasMapTiles" etc.
761d4e4
to
16d6f18
Compare
@jahow following your suggestion, the In this update:
|
16d6f18
to
8e959db
Compare
8e959db
to
f1d1099
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!! This is much better now 🙂 good work!
This pull request introduces three new functionalities to the OGC API endpoint:
getTileMatrixSets
: This method retrieves the tile matrix sets advertised by the endpoint. Tile matrix sets are a crucial part of the OGC API, as they define the grid used for map tiling.parseTileMatrixSets
: This function is used to parse the tile matrix sets from the fetched document. It ensures the correct extraction and formatting of the tile matrix set data.getCollectionTileUrl
: This method generates a URL for the tiles of a specified collection, with a specified tile matrix set. This allows for easy access to specific tiles within a collection.Tests can be performed using this ogc-api (contains vector tiles): https://maps.gnosis.earth/ogcapi/
These additions enhance the library's capabilities in handling tiled map data, providing developers with more tools to interact with OGC APIs.