Repository navigation
Conversation
|
Appreciate your work here, @boundsj -- just wanted to let you know that I will be checking it out. |
|
I really like the cleanliness of this API: [self.niceMapView loadTilesWithCenterCoordinate:CLLocationCoordinate2DMake(41.8419, -87.6805) zoomLevel:11.0 maxZoomLevel:14.0 minZoomLevel:10.0];It's basically like "setup the map view, get everything in place, then kickoff the loading of tiles (as well as metadata associated with the map)". One thing this does however is tie As mentioned over in #286 (comment), a lot of work by @wsnook is going into this over in the MBXMapKit project and I'd like to let that settle down before we dive too deep in this project. That project, being based on MapKit, is a lot simpler and allows for a tighter and more Apple-like API, so once we work out something clean there, we can apply that thinking here. I think these projects may be converging in the medium-term anyway. I'll close this for now, but I am totally game to discuss future changes along these lines @boundsj. Thanks again for the PR. |
With regards to #286 and your comments about #395, please find attached more food for thought.
These changes still need some polish but I wanted to get your thoughts before continuing. This attempt takes inspiration from mapkit and adds two new delegate callbacks to RMMapViewDelegate
- (void)mapViewWillStartLoadingMap;and- (void)mapViewDidFinishLoadingMap;so that you can create a mapview, set yourself up as the delegate, call a "loadTiles" method and keep your user entertained on the main thread knowing that the map view will show tiles once the "loadTiles" method fetches what it needs from mapbox servers.If you are interested in proceeding with this I'd be happy to apply necessary polish and update this PR - just let me know.
example usage: