ui-leaflet icon indicating copy to clipboard operation
ui-leaflet copied to clipboard

Get ready for Leaflet 1.0

Open nmccready opened this issue 10 years ago • 35 comments

From @simison on July 15, 2015 11:24

http://leafletjs.com/2015/07/15/leaflet-1.0-beta1-released.html

The release sports a number of minor breaking API changes, and some of the plugins will have to be updated. To make the upgrade less painful, we’re doing a short beta cycle before the final 1.0 to allow users and plugin developers to catch up to the changes while we find and fix remaining issues.

:-)

Copied from original issue: tombatossals/angular-leaflet-directive#851

nmccready avatar Nov 02 '15 14:11 nmccready

From @tombatossals on July 15, 2015 13:54

Wow, great news. That would be a good moment for giving this directive a power up.

Thanks for reporting!

nmccready avatar Nov 02 '15 14:11 nmccready

From @paambaati on August 4, 2015 4:56

@tombatossals Is there a branch for this that we could check out/test/contribute?

nmccready avatar Nov 02 '15 14:11 nmccready

Referencing Mobile Draw Support . IE: This is another reason to get started on this. https://github.com/Wildhoney/Leaflet.FreeDraw/issues/3

nmccready avatar Nov 02 '15 14:11 nmccready

I will be adding a leaflet 1.0.X branch to start working towards this. However I am not sure what the name of the branch should be.

leaflet-1.0.X to targets leaflet? Or just 1.0.X as we are working towards a 1.0.X ourselves.

My only beef with making it 1.0.X is that going to leaflet 1.0.X might not be stable right away. But keeping the branch with 1.0.X and mapping to leaflet 1.0.X helps eliminate confusion.

Thoughts anyone?

nmccready avatar Nov 02 '15 14:11 nmccready

From @vrubert on September 23, 2015 16:54

Looks good @nmccready, I think too we need that branch because it will need some time to have the directive working with leaflet 1.0.x and all the modules.

BTW, the Leaflet.FreeDraw project is amazing!!

nmccready avatar Nov 02 '15 14:11 nmccready

@vrubert @tombatossals any thoughts on what you want the branch name to be?

nmccready avatar Nov 02 '15 14:11 nmccready

From @simison on September 24, 2015 10:31

Keeping the future version number of this package at the branch name makes more sense to me rather than following Leaflet versions. Trying to follow Leaflet versions and keeping them in pair with package, might prove hard in long term, doable only maybe for major versions.

I'd call it "1.0.0-with-leaflet-1.x", "1.0.0-WIP" or just "1.0.0"

nmccready avatar Nov 02 '15 14:11 nmccready

From @tombatossals on September 24, 2015 17:56

Hey, I would suggest "1.0.0-wip" as @simison said, what do you think?

I haven't had time to take a look at leaflet-1.0-beta, I expect there will be no major API changes and 90% will work seamlessly. I hope so.

nmccready avatar Nov 02 '15 14:11 nmccready

Awesome I hope so too, what is WIP? Work In Progress? I am not sure if that is needed as all branches are WIP :grinning: .

nmccready avatar Nov 02 '15 14:11 nmccready

Or is it WLP?

nmccready avatar Nov 02 '15 14:11 nmccready

hmm maybe just leaflet-1.X

nmccready avatar Nov 02 '15 14:11 nmccready

That way if we have any major changes (unseen foreseeable) we don't need to rename the branch.

nmccready avatar Nov 02 '15 14:11 nmccready

From @tombatossals on September 24, 2015 18:9

You're right, all branches are WIP :D

Totally agree, better leaflet-1.X so no need to rename it later.

nmccready avatar Nov 02 '15 14:11 nmccready

cool I'll push the branch up

nmccready avatar Nov 02 '15 14:11 nmccready

From @simison on September 24, 2015 21:42

"WIP" suggests that it's currently in progress and shouldn't be expected to work. ;-)

leaflet-1.x is cool tho. Thanks for working on it!

nmccready avatar Nov 02 '15 14:11 nmccready

Working on this, and I can not find the leaflet-src.js dist file for master or 1.0.0-beta1

nmccready avatar Nov 02 '15 14:11 nmccready

See https://github.com/Leaflet/Leaflet/issues/3635

nmccready avatar Nov 02 '15 14:11 nmccready

Good lord, they made it incompatible with bower.. ie it is not standardized anymore.

https://github.com/Leaflet/Leaflet/issues/1354

nmccready avatar Nov 02 '15 14:11 nmccready

Ok, so far we have a few alternatives

  • bower will point to "leaflet": "http://cdn.leafletjs.com/downloads/leaflet-1.0.0-b1.zip" . The big problem with this is that it makes our library and leaflet dependencies an invalid mess where version number really means nothing.
  • become a npm project and abandon bower
  • fork leaflet to get the tags to have dist/*.js files again

This is a real problem with a lot of future headache. It would be nice if they could start using bower correctly again. But I am not confident this will happen.

nmccready avatar Nov 02 '15 14:11 nmccready

From @simison on September 30, 2015 19:22

Hmm, nope, normally they do have dist files for releases. (https://github.com/Leaflet/Leaflet/issues/3635#issuecomment-125168272)

It's just this beta which is lacking those files (https://github.com/Leaflet/Leaflet/issues/3635#issuecomment-123267747); it'll be fixed with the next version.

For WIP using the beta-1 zip path is fine.

nmccready avatar Nov 02 '15 14:11 nmccready

Yeah they need to do another release. However this still doesn't make me that confident in bower as a solution. This will probably be a headache in the future for sure. I vote for becoming npm centric.

nmccready avatar Nov 02 '15 14:11 nmccready

This brings up a good discussion though. It would be nice to not always be committing dist/*.js as it would keep the PR size very small and easier to review. I wonder if we should start doing something similar and only publish dist/*.js on tags/releases. Alternatively we could have a dist repo. Ugh.. all more work I don't feel like doing.

nmccready avatar Nov 02 '15 14:11 nmccready

With the dist/*.js ignored solution; this would only mess with people that target master. This would be tons of plunkers and many users.

nmccready avatar Nov 02 '15 14:11 nmccready

All the branch exists on the main repo. Feel free to start making the specs work. On a positive note the 604 example appears to work at least partially.

nmccready avatar Nov 02 '15 14:11 nmccready

From @simison on September 30, 2015 19:58

Bower will eventually die out as NPM evolves, I suppose. Anyway, for this sort of package it's very important to stay distribution channel agnostic and just keep supporting everything that's feasible. Bower is still hugely popular for good reasons.

Having a CI script to produce dist files sounds totally something this package should have. :-) Have a look at Leaflet's build scripts?

nmccready avatar Nov 02 '15 14:11 nmccready

There scripts are all using jake, I would prefer to look at grunt or gulp as I do not feel like learning another tool just for another tool sake.

nmccready avatar Nov 02 '15 14:11 nmccready

@nmccready @elesdoar any indication when there will be a version ready for leaflet 1.0? what's the status - which things still need to be done?

mobidev111 avatar Nov 30 '16 14:11 mobidev111

@elesdoar knows more than I do at the moment. I have not had time to work on this lately.

nmccready avatar Nov 30 '16 14:11 nmccready

@nmccready @elesdoar Any news on a leaflet 1.0 version? I have to use leaflet 1.0 for Esri vector basemaps which are not supported by leaflet < 1.0. Thanks.

weinspach avatar Jan 04 '17 23:01 weinspach

I am barely supporting this library at this point. I am mainly doing maintenance when needed. My main reasoning is I have come to the decision that angular is not appropriate for mapping. I could go into the details but I don't think it is worth it.

nmccready avatar Jan 05 '17 03:01 nmccready