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

[Questioin] offline will never be supported? #539

Open
shinriyo opened this issue Sep 1, 2023 · 15 comments
Open

[Questioin] offline will never be supported? #539

shinriyo opened this issue Sep 1, 2023 · 15 comments

Comments

@shinriyo
Copy link

shinriyo commented Sep 1, 2023

offline

It says This component is still under support but it will not be further developed. We don’t recommend starting new projects with it.

so do you have any alternative proposal?

@farfromrefug
Copy link
Contributor

I would say use it. It is 100% usable and some fork might come out hopefully soon enough. I am already maintaining my fork but we might start an organized effort

@shinriyo shinriyo changed the title [Offline] offline will never supported?? [Questioin] offline will never supported?? Sep 4, 2023
@shinriyo shinriyo changed the title [Questioin] offline will never supported?? [Questioin] offline will never be supported? Sep 4, 2023
@shinriyo
Copy link
Author

shinriyo commented Sep 4, 2023

Thank you for replying.
I tried to use the sample.
https://github.com/CartoDB/mobile-ios-samples

I registered my account but I can't find License key.

I want to replace it.
https://github.com/CartoDB/mobile-ios-samples/blob/master/HelloMap.Swift/HelloMap.Swift/AppDelegate.swift#L17

@farfromrefug
Copy link
Contributor

@shinriyo i am not part of carto so i cant say about the license part. I would use it without any carto stuff. What you are planning on doing with it? which map data are you planning to use?
I should point out that you should differentiate the SDK from carto as a map data provider. Here i am talking about the SDK.
If i was to select a map data provider i would go for maptiler https://docs.maptiler.com/cloud/api (i personally use offline map data i generate or openstreetmap)

@shinriyo
Copy link
Author

shinriyo commented Sep 4, 2023

Thank you for your response.
One feature I desire is a map of Japan.
Once downloaded, I would like it to be guaranteed to be retained offline for at least a month.

Also, rather than the current settings on iOS, I want to switch the language displayed on the map to Japanese, English, Simplified Chinese, Traditional Chinese, and Korean by passing parameters.

The ability to zoom in, zoom out, and change the coordinates position is also necessary.

@farfromrefug
Copy link
Contributor

@shinriyo all that is doable with Carto Mobile SDK. For the map offline you could generate it, store it on a server and give the option to the user to donwload it whenever you see fit. All that can be done but you need to implement it.

@shinriyo
Copy link
Author

shinriyo commented Sep 4, 2023

@farfromrefug
Is the server a web server?
Can I store data on my iPad?

@farfromrefug
Copy link
Contributor

@shinriyo yes the server would be a web server you setup. The downloaded files would be a mbtiles and it could be stored on an ipad for as long as you want. Though be careful a map of japan might be quite a big file.
Here is how you can generate such a file https://github.com/onthegomap/planetiler

@shinriyo
Copy link
Author

shinriyo commented Sep 5, 2023

@farfromrefug
I don't understand how to combine them.
So, you're saying we use CartoMobileSDK to manipulate the map, use maptiler for the map data itself, and use planetiler as the server to place data on the map?

@farfromrefug
Copy link
Contributor

No planetiler can generate map data which either can be used offline or served through a web server. Maptiler is simply a provider of map tiles so you dont have to generate anything.

@shinriyo
Copy link
Author

shinriyo commented Sep 5, 2023

@farfromrefug

I simply want to locally place a map of Japan (just Western Japan is fine) on an iPad, and just display, zoom, and support multiple languages on the map. However, I lack the knowledge related to maps, and it's too difficult for me to understand.

https://github.com/roblabs/openmaptiles-ios-demo
I tried using this sample, but it requires data called "mbtiles". I'm unsure about how to obtain this data. Do I need Docker?
I just want to download a map of Japan with a click of a button.

@shinriyo
Copy link
Author

shinriyo commented Sep 5, 2023

I don't understand why planetiler is necessary in the first place.
Is it used to generate .osm.pbf files?
Does this file also include language information?
If I have the .osm.pbf, do I no longer need the mbtiles?
I'm not specialized in mapping, so I don't understand.

What I want to do is just the following:

  • Download a map of western Japan.
  • Zoom in.
  • Focus on the desired coordinates.
  • Map language support (English, Japanese, Traditional Chinese, Simplified Chinese, Korean).

@lionpham-gis
Copy link

I would say use it. It is 100% usable and some fork might come out hopefully soon enough. I am already maintaining my fork but we might start an organized effort

That's great, can you build it into an aar file or publish it to maven?

@farfromrefug
Copy link
Contributor

farfromrefug commented Sep 11, 2023

@lionpham-gis yes I could. But I would prefer for this to get organized . the current published version is really stable. No major bug to fix so I think we can wait. Just know that it is not abandoned though currently the Dev is pretty slow.

@jaakla
Copy link
Contributor

jaakla commented Sep 11, 2023

I don't understand why planetiler is necessary in the first place.
Is it used to generate .osm.pbf files?

.osm.pbf is (usually) source OSM data what is just technically not usable for rendering map. These processing tools convert the data to mbtiles which is basically the same data (even uses also same pbf as encoding format), but info is reorganized heavily for fast display. The data map is indexed to map tiles and zoom levels, has presimplified data etc. Mbtiles also has selection of languages for labels, so I suggest to check if the processing includes all the languages you need.

@rexfordnyrk
Copy link

I don't understand why planetiler is necessary in the first place. Is it used to generate .osm.pbf files? Does this file also include language information? If I have the .osm.pbf, do I no longer need the mbtiles? I'm not specialized in mapping, so I don't understand.

What I want to do is just the following:

  • Download a map of western Japan.
  • Zoom in.
  • Focus on the desired coordinates.
  • Map language support (English, Japanese, Traditional Chinese, Simplified Chinese, Korean).

Were you able to get it done? if not hit me up on @rexfordnyrk twitter

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

5 participants