Using the MapBox iOS SDK (routeme) is it possible to point to an offline TMS directory structure of tiles?
I know that I can point to an online TMS source like OpenStreetMap but I would like to just store a TMS directory structure on the device for offline use.
It doesn't out of the box, but you can create your own RMTileSource to easily do this. You want to go straight up to RMTileSource as opposed to modeling after something like RMOpenStreetMapSource since this is a subclass of the general web tile handling class.
Related
I'd like to transition the map in my app from currently Apple-Maps-SDK to Mapbox. My users already downloaded a lot of offline maps into several .mbtiles tiles containing raster data.
My question now is if it's possible to still use those while the user will be transitioning to the new maps? I just don't simply want to delete all offline maps and tell the user that he needs to download everything again right now, but rather give them a time-window to do that...
I was looking at MGLRasterTileSource/MGLSource and thought that I can create a subclass and somehow provide my own data to the map, but this does not seem to be supported. There are no datasource methods on it for that purpose...
Would be great if somebody could point me into the direction on how to archive what I want.
EDIT:
So I thought it might work that way... I migrate my existing raster tiles into a downloaded pack inside the mapbox offline database. So I had a look at the caches.db but at least the data in there is not just a plain png/jpg (tried with the mapbox satellite images, which should be raster).
Cause there is no public interface for getting existing raster-tiles in there, is there?
I've seen an other solution where somebody is hosting a webserver inside the app... but that somehow looks like quite an overkill to me?!?
https://gist.github.com/namannik/3b7c8b69c2d0768d0c2b48d2ed5ff71c
I understand that this is a basic question; however, I've spent hours googling and have yet to find an answer that works.
I have a javascript webapp that uses Leaflet to display a map. I can get it to work when the tile source URL is some online repository like mapbox, but I want my application to work offline. How/where can I download tiles and save them in a folder structure that I can then set the tile source URL to point to?
Thanks
You can generate tiles by yourself using same engine as OSM's : Mapnik and OSM database.
I have using Phap 2 pro for my graduation project.
The project theme is 3D object recognition using Google Tango.
So, I run the area learning in Project Tango SDK's example!
I need the area learning data!
However, I can't find it.
Where is the learning data stored?
Area description picker image
I can't find where ADF is stored from Google's document.
I think there is no specific path to ADF.
But we can export ADF to any path by using areaDescription.ExportToFile(string filePath)
How to use :
AreaDescription m_areaDescription = AreaDescription.ForUUID(string UUID);
m_areaDescription.ExportToFile(Application.persistentDataPath);
reference
UUID is an unique ID allocated to each ADF. In your picture, small size string like "7ad2e08e-..." is the UUID.
ADF is a binary file. So you can't use this outside a Tango application. If you want a captured mesh data, maybe ExperimentalMeshBuilderWithColor scene can be helpful.
good luck!
I personally never managed to get into Area Description Files, but looking at your question here are two facts that came to my mind:
The A of ADF is for Area... so I am not sure that the learnt data can help to recognize objects (except maybe for some key points)
PTC (Vuforia) recently came out with 3D objects recognition in their SDK (if you haven't checked it out already, their demo is pretty cool)
I'm creating maptiles with arc2earth and ArcGIS and it creates a lot of duplicate tiles.
I would like to reduce its size using mbtiles. I think it is possible to "compact" tiles, but I don't find the way.
Do you know if mbtiles still have compact command or it is just been deprecated?
Thanks!
At the moment mbutil doesn't expose this as an option - TileMill is the only client that supports properly compressed tiles. Of course, mbutil is an open source project, so if you're game, you can built it and add it.
I am trying to build a custom-designed map, with correct geodata. It could even be an image created in illustrator, but it has to be exported as a set of tiles in correct map format - so that it can be read by tools like Leaflet.js
What confuses me is that none of the available map tools seem to work very well together. I did find Tilemill, which looks very promising (it has a very clean interface and works with CSS), but:
Openstreetmaps does not allow downloading tile images, only XML data in OSM format.
Tilemill does not allow importing Openstreetmaps XML data (why!).
Even if you manage to design a map in Tilemill, you still cannot export tile images, only a proprietary SQL database format? What's the point of that?
If Tilemill is useless, are there other tools that allow opening OSM XML data and applying your own design styles?
There are some sources that talk about building your own tile server:
This source suggests converting OSM to PostGIS using SQL, and then using a custom python script and a tool named Mapnik. Then it says that it's not recommended to use Mapnik for OSM....
This source sounds promising, but then it casually mentions that you have to build and run your own custom Linux distribution...
Is there a simpler way to create map tiles with correct filenames and folders for Leaflet.js?
Tilemill does not allow importing Openstreetmaps XML data (why!).
OpenStreetMap XML is an interchange format: it's a way to transfer things around, not to use them. You can import it into PostGIS and use it in TileMill.
Even if you manage to design a map in Tilemill, you still cannot export tile images, only a proprietary SQL database format? What's the point of that?
If you export millions of tile images, you'll fill up your hard disk and run out of inodes. It's a bad deal. That's why we made MBTiles, which is not proprietary, but very much open source in every definition of the word, and you can export it to disk with mb-util if you so wish.
If Tilemill is useless, are there other tools that allow opening OSM XML data and applying your own design styles?
TileMill isn't useless, but if you want another option, you can use Maperitive, though it is proprietary in every sense of the word.