-
Notifications
You must be signed in to change notification settings - Fork 152
Merge layers branch to master? #67
Comments
I'll +1. I haven't used the layers branch yet, so might want to kick the tires & review, but we should add this as a 0.22.0 or so, and have a little time to really refine it before 1.x.x |
Tentative +1! It's an essential feature and it's good work, but... According to the branches view it's heavily behind master: https://github.com/stamen/modestmaps-js/branches (22 ahead, 108 behind at current time of writing). I think the best way to deal with this is to make a new branch from the current Right now the comparison is quite hard to follow - master...layers - but my initial observations are:
I've got some time set aside in two weeks to work on MM stuff with @migurski and @tmcw and others, I'll try to find a time to prepare a merge branch then if nobody gets to it first. |
Awesome. I'm happy to help with the merge as well. I've implemented a GeoJSON provider (which renders Point geometries as HTML markers) and a sprite-based image layer using the new Tile interface and it seems to work well, but it would be good to have more than one person using it and add some more test cases. |
Er, the new |
Status from yesterday's hacking session:
If you're following along, please try the Map cleanup (the new Also @tmcw reported problems in Opera - any word on what the error is? The layers sample seems to work for me, I haven't tried others. |
Opera problems were fixed in 27eb31c |
Okay, did another pass at the branch again, and things look okay, though, barely having used pyramid loading or been in that part of the code, I'm not confident to fix that part. What are the main steps we need to take before merging into master, as a 1.0.0-alpha or something of that sort? |
For 1.0.0:
I'd also like to propose |
+1 on the Possibly unrelated, but important if we're considering the inclusion of the newer examples (GeoJSON markers and sprite tiles): I had to modify the sprite tiles example pretty heavily after pulling the latest from layers-merge because, in the new API, providers no longer appear to know anything about tile sizes. They could when Is this right? Because it feels oddly limiting that the provider know nothing about tile sizes. |
Cool, renamed mm to MM in a905543 - not a big difference. Currently tests are passing, but they don't have much coverage of the new code. |
Regarding the home of My thinking was that [All assuming zoom level 0 is a single Basically I settled on having |
|
Re: |
That seems right, and non-breaking since js supports optional args very cleanly. It would clean up the CloudMade provider too, which needs tile size for its URLs. The only hesitation I have is that I think getTile might be a good candidate for a method which takes a callback, but that would be a bigger change than any of us is proposing right now, so I say go for it :) |
Okay - so can we split out a ticket for tileSize being passed as a parameter? I'll write one for a async getTile, which I actually think is pretty essential for flexibility (and very useful for my PhoneGap experiment) |
Okay, so I've started work in the async branch for a callback-enabled getTile. Got an early, slightly wonky test going on with canvas elements and Kothic js rendering. But I think that can wait for a 1.1.0 release, since it'll be backwards-compatible and should be fine with the API design as-is. It shouldn't hold back a 1.0.0 - everyone else game for that? |
+1 on putting async and experimental canvas stuff into 1.1.0. My layers-merge branch is ahead of
Okay to pull those into |
Can you explain more about the necessity of MapExtent? Just looked at it briefly and I'm not sure whether the utility functions are needed elsewhere in core. I'd kind of be against MM.Hash. Not hugely, but in implementing a hash control, I'm convinced that it's not an area where you can have a one-size-fits-all implementation - given the odd support/nonsupport for hashchange and pushState across browsers. Also, the Wax hash implementation is quite a bit faster than MM.Hash by deferring hash changes, which are pretty expensive performance-wise. That should probably go in if a hash control does. Besides that, the other changes look good. |
I'm also willing to argue strongly for inclusion of |
Saw you made the change in your |
Okay, layers-merge merged, and I've updated the package.json to 1.0.0alpha1, added you & removed the expresso dependency. Cool to rename this to 1.0.0? |
Closing here - when 1.0.0 tickets are finished, we'll tag a release |
I think it's time. I've battle tested the layers stuff on a couple of projects and made some tweaks of my own, and it would be a shame if this work continued to hide in a branch.
Are we ready for a big version bump yet?
The text was updated successfully, but these errors were encountered: