Comments (6)
I like this idea.
One complicating thought though would be how to handle updating a cached map if the update doesn't complete before a network connection is lost. It would be bad to have a mix of old and new tiles in the cache, and you wouldn't want to clear the cache and risk having no tiles present either.
I'd love an atomic update capability that would download all the map tiles in a region to a certain depth, and only if the download fully succeeds then clear the cache and replace it with the new data.
The usage scenarios I have in mind are for apps that are used primarily offline or with very marginal net connectivity, and it is important to never break functionality if a user tries to update her maps and the connection fails or never finishes.
My current plan is to embed a starting map inside the apps via MBTiles, and I've been puzzling over how to allow for OTA updates without requiring a full new version of the app to be released. This might be a way.
from mbxmapkit.
@radven, it sounds like you'd be fine with a cache manager that supported only a single region, and the critical feature you need is actually the ability to do an atomic update for that whole region. Is that right?
from mbxmapkit.
I think only a single region would be fine - I'm trying to imagine cases it wouldn't be.
from mbxmapkit.
does it need to support multiple separate, and possibly overlapping, regions in order to be useful
I would say no. The SDK has had the single region capability for a couple years and I've never heard of someone needing particular distinct regions within it (on a per-mapID
basis, anyway).
from mbxmapkit.
That works for me. I mentioned multiple regions because I have actually seen a use case for that, but I'm getting the sense it was not a situation which commonly occurs (i.e. it probably doesn't belong in MBXMapKit).
from mbxmapkit.
Closing this in favor of #73
from mbxmapkit.
Related Issues (20)
- MKOverlayRenderer setNeedsDisplayInMapRect:zoomScale: HOT 6
- [VKTileKeyMap enumerateKeysAndObjectsUsingBlock:] HOT 16
- how to grant app to use my api access token? HOT 1
- React Native Module HOT 1
- BSD license HOT 4
- warning in new Xcode on canReplaceMapContent
- mbx_zoomLevel might return the wrong zoom level
- MBXMapKitErrorCodeOfflineMapSqlite to delegate
- MBXMapKit Example App high CPU usage HOT 7
- Crashes in [VKRasterOverlayTileSource invalidateRect:level:] and [VKTileKeyMap enumerateKeysAndObjectsUsingBlock:] HOT 2
- MBXOfflineMapDownloader suspend/resume sequence and activeDataSessionTasks count HOT 3
- Redundant tile loads in MBXRasterTileRenderer canDrawMapRect: when using 512px tiles HOT 6
- Swift: MGLMultiPoint should use Int for pointCount HOT 3
- Remove `example.mapids` and make sure offline works
- deprecate repo in favor of GL HOT 8
- random crashes coming from MBXMapKit/VectorKit HOT 1
- Is 0.8.0 / v4 API backwards compatible? HOT 1
- MapID problem? HOT 1
- Remove mb-pages branch HOT 1
- IOS SDK Cluster effect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbxmapkit.