Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.

Consolidated pull requests preparing for 0.2.0 - #38

Closed
ghost wants to merge 20 commits into
masterfrom
unknown repository
Closed

ghost wants to merge 20 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Feb 17, 2014

Copy link
Copy Markdown

With this branch I'm trying to merge the various open pull requests to support an official 0.1.1 release in the not too distant future.

What I've done to this branch so far:

  1. Merged my commits from MBTiles for MBXMapKit (fix for issue #3 & #7) #20 (MBTiles) which fix issues add MBTiles support #3 and add ability to toggle between overlay & Apple base #7
  2. Merged my branch for Fix for issue #5 (markers) & #9 (simplestyle) #21 (Maki markers & simplestyle) which fixes issues add MapBox marker support #5 and add simplestyle support #9. This had some conflicts with the MBTiles code, so I resolved that stuff.
  3. Merged my branch for Fix for #22: Only write to cache for an HTTP 200, sweep empty png files. #23 (cache stuff) which fixes issue add API for force refresh of overlay #22
  4. Merged @jparise's branch for Support the Mapbox image quality API. #27 (image quality api)

My present todo list:
1. Figure out what's going on with the podspec (see #34) and get it working, ideally including the correct stuff for libsqlite3 so that the ifdef's can be removed from the MBTiles code Update: see #34 (comment)
2. Finish my branch for overzooming. So far I've got it working for MBTiles on iOS, as I described at #20 (comment), but I also need to get it working for online tiles (see #35). Update: see #42
3. Figure out if my branch for #31, which addresses issue #26 (crashing during rendering) works. I never finished testing it because it needs a more complicated sample app to fully reproduce the problem. Update: see #26
4. Re-work the existing sample apps, or perhaps add more build targets, for the purpose of demonstrating how to use the various new features. Update: see #43
5. Test all this stuff to make sure it compiles and works properly on both iOS and MacOS. In particular, there's a real good chance that the image manipulation code for overzooming will need changes to compile on OS X. Update: see #40
6. Update the documentation and maybe write a tutorial or two. Update: see #41

@ghost

ghost commented Feb 17, 2014

Copy link
Copy Markdown
Author

Also need to grab @KrauseFx's camera fix from #33 (comment). For future reference, issue #36 (async metadata design) is relevant, but it's probably too soon to try changing anything with that yet. Perhaps that would be good for 0.1.2 or 0.2.0.

@ghost

ghost commented Feb 18, 2014

Copy link
Copy Markdown
Author

@incanus, if you get the urge to merge this as-is, plus #33, tag it as 0.1.1, and update the podspec (see #34), I think that would be fine. The only thing I'm aware of which needs fixing is the example map for simplestyle markers. I left a warning about that at https://github.com/wsnook/mbxmapkit/blob/dev-0.1.1/Sample%20Project/MBXMapKit-iOS/MBXViewController.m#L85. If you were to just snag a copy of my geojson, add it to your sample map, and change the mapID back to yours, I think that would take care of it.

For this branch, the major new code is fenced off with ifdef's, so I think it would be reasonable to move the stuff I described in my todo list above over to a new dev branch for 0.1.2.

@incanus

incanus commented Feb 18, 2014

Copy link
Copy Markdown
Contributor

Big 👍 on addressing these @wsnook. I will start reviewing now. I like the choice of stuff to address and I will work on the actual implementations now.

@incanus incanus mentioned this pull request Feb 18, 2014
@incanus

incanus commented Feb 18, 2014

Copy link
Copy Markdown
Contributor

Due to the size of this pull request, I'd prefer this issue be a workspace to ensure things merge well but that we tackle each component issue into master individually. It sounds like per "What I've done to this branch so far:" we are ok on the merge and on "My present todo list:" we should probably break that into a milestone.

0.2.0 milestone

I think this should be 0.2.0 per our use of semver and this would include features as well as fixes.

@incanus incanus added this to the 0.2.0 milestone Feb 18, 2014
@incanus

incanus commented Feb 18, 2014

Copy link
Copy Markdown
Contributor

I've put a bunch of relevant stuff into the milestone:

https://github.com/mapbox/mbxmapkit/issues?milestone=1&page=1&state=open

@wsnook can you migrate your todo list into tickets and we can put in 0.2.0 / defer until later as appropriate? In particular I see OS X testing on the important side and sample apps & docs on the less important side for now.

Overzooming sounds like a) nice to have but also b) a solution to #35 -- does that sum it up?

@ghost

ghost commented Feb 18, 2014

Copy link
Copy Markdown
Author

Sure. I'll add those tickets from the todo list.

For overzooming:
a) yes
b) yes
c) There's also another pretty major use case for MBTiles overlays, and that's the only one I actually implemented so far. Say you've got an MBTiles heatmap with resolution that maxes out at zoom 10, but you want to keep showing it on top of a street map that goes clear up to zoom 17. In that case overzooming lets you do it. @radven talks about a situation like that at #20 (comment)

@incanus

incanus commented Feb 18, 2014

Copy link
Copy Markdown
Contributor

Sure. I'll add those tickets from the todo list.

Thanks, and apologies for letting this sit long enough to have this ticket build up before I could mention this. Using milestones & actionable tickets is closer to our workflow for most projects.

Also cool re: heatmap etc. I will dig into this more in the specific ticket/commits.

@ghost

ghost commented Feb 18, 2014

Copy link
Copy Markdown
Author

Additional structure and use of milestones is most welcome. If you want pull requests against a dev branch, that would be cool too.

@incanus

incanus commented Feb 18, 2014

Copy link
Copy Markdown
Contributor

If you want pull requests against a dev branch, that would be cool too.

I like the normal GitHub model of working directly in master, then tagging releases. The SDK uses develop / release only because that's how the upstream project did things and it simplified contributions back.

@ghost

ghost commented Feb 19, 2014

Copy link
Copy Markdown
Author

Okay, I broke out the todo list...

@ghost

ghost commented Feb 19, 2014

Copy link
Copy Markdown
Author

@incanus, I was just looking at the issues you've got for the 0.2.0 milestone, and I think I may have misunderstood you earlier. Do you mean for this pull request to be 0.2.0 and for #26, #42, #43, etc to be part of a later milestone? If so, I should probably update the title above to say "0.2.0" instead of "0.1.1".

@incanus

incanus commented Feb 19, 2014

Copy link
Copy Markdown
Contributor

Re: naming, sure, feel free, but mostly I was just thinking I'd work on reviewing all the contributions separately as opposed to in one pull. Given that you said you had some issues around that, though, I may just use this pull. Will try to figure out today. Either way, I think I've got everything under the 0.2.0 milestone that makes sense for next release.

@ghost

ghost commented Feb 19, 2014

Copy link
Copy Markdown
Author

Hmm, GitHub seems to be acting a little funny today. I thought it was possible to edit names, but it doesn't seem to be letting me do that. Anyhow...

I was just thinking I'd work on reviewing all the contributions separately as opposed to in one pull

If you go that route, definitely take a look at viewDidLoad in MBXViewController.m and loadTileAtPath:result in MBXMapKit.m from this branch (wsnook/dev-0.1.1).

I had to do some relatively major surgery to viewDidLoad to merge the sample app demo code from Maki/simplestyle on top of the MBTiles code, the changes to loadTileAtPath:result were smaller, but that code is definitely critical. At the moment, those changes to merge MBTiles with Maki/simplestyle only exist in this branch. I think this is the commit in question: https://github.com/wsnook/mbxmapkit/commit/bced8bbd3716c65fc878a781f1370a50a4b12051

@ghost ghost closed this Feb 19, 2014
@ghost ghost reopened this Feb 19, 2014
@ghost

ghost commented Feb 19, 2014

Copy link
Copy Markdown
Author

Woah... sorry about the close/re-open. Definitely clicked the wrong button there.

@ghost

ghost commented Feb 19, 2014

Copy link
Copy Markdown
Author

As I'm looking back through the commit history for this pull request again, it's less than obvious to me exactly which changes I made for resolving the conflicts to merge Maki/simplestyle. It's possible I might be confused about loadTileAtPath:result, but I definitely had to mess with viewDidLoad a bunch. In any case, I have pretty high confidence in the code that's presently in this branch.

@ghost

ghost commented Feb 26, 2014

Copy link
Copy Markdown
Author

@incanus, Do you see any reason to leave this open still?

@incanus

incanus commented Feb 26, 2014

Copy link
Copy Markdown
Contributor

I was keeping it for some back comments about Maki, but I see you've crossed them out. As long as you're tracking that stuff, no.

@incanus incanus closed this Feb 26, 2014
@ghost
ghost deleted the dev-0.1.1 branch February 27, 2014 21:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants