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

Offline XYZ tile generation #69

Open
luzianscherrer opened this issue May 19, 2022 · 4 comments
Open

Offline XYZ tile generation #69

luzianscherrer opened this issue May 19, 2022 · 4 comments

Comments

@luzianscherrer
Copy link

In my iOS app I need the XYZ tiles (http://api.geo.admin.ch/services/sdiservices.html#xyz) like the ones that are available from the GeoAdmin API online service. Is this SDK able to produce those files? And if so, can it produce them also in an offline fashion so that one can download the material and then have the SDK generate those files without the need for an internet connection?

Should I instead check out the Open Mobile Maps SDK or is my requirement completely out of the scope?

The background for my question is that I need to provide that data to a Google Maps SDK GMSTileLayer (https://developers.google.com/maps/documentation/ios-sdk/reference/interface_g_m_s_tile_layer).

Any pointers would be much appreciated!

@stmitt
Copy link
Contributor

stmitt commented May 20, 2022

The lib-open-swiss-maps-sdk and Open Mobile Maps SDK do not render vector data to raster tiles. It parses the WMTSCapabilities and renders the raster tiles using metal and OpenGL on mobile devices.
We do not interoperate with the Google Maps SDK. I think you might be able to use swisstopo tiles in the EPSG:3857 projection directly with the Google Maps SDK.

@luzianscherrer
Copy link
Author

Thanks for getting back to me.

The Swisstopo API for the EPSG:3857 tiles is working fine but my issue is that I need an offline functionality.

I'm looking for a way to download the data and then render the tiles on the mobile device. Sorry to be asking again, but it is still not 100% clear to me: so producing the tile images using lib-open-swiss-maps-sdk or Open Mobile Maps SDK on the mobile device is not possible?

Outside of that question and in general: does the lib-open-swiss-maps-sdk or Open Mobile Maps SDK have any offline capabitilies or does it only work online?

@stmitt
Copy link
Contributor

stmitt commented May 20, 2022

lib-open-swiss-maps-sdk and Open Mobile Maps SDK only work online and does not have any offline capabilities build-in apart from default url caching behaviour.
What do you mean by producing the tile images? The pre-rendered raster tiles are already provided by wmts service of swisstopo.

@luzianscherrer
Copy link
Author

By producing the images I've ment the following:

In the Google Maps SDK for iOS you have a GMSSyncTileLayer method that takes XYZ parameters as input and returns an image. This can be used to provide the Google map with tiles locally in an offline context.

I was hoping that maybe the lib-open-swiss-maps-sdk or Open Mobile Maps SDK was able to download the map content and then produce those images in order to feed it to the Google map. This is the way I'm using another framework to generate an offline map in a Google Maps SDK context (as in [frameWork getTileBitmapWithSize:256 andZoom:zoom andX:x andY:y]).

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

2 participants