-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get new Annotations 2.0 running again #87
Comments
@manleyjster - sorry, i know you're busy, but this one is turning out to be a little obscure to me, and I wonder if it's something about recent versions of Leaflet.Toolbar -- do you have a moment to take a look? |
It's failing on line 25 of Annotations.js -- at
with |
As far as I can tell, MapKnitter isn't using The The This is not a Leaflet.toolbar issue, but I'm happy to take another look at it on Saturday. This issue certainly involves |
Ah, I guess your Leaflet.Illustrate work in MapKnitter predates your It'd be great if you could take a look Saturday. I'm currently working on On Fri, Feb 20, 2015 at 2:25 AM, Justin Manley [email protected]
|
Managed to make time to dig into this again; I found that Leaflet.Draw's Not sure how this kind of error is cropping up in Leaflet.Draw (v0.2.3) due to our code, but I have to wrap up for the day. Will look tomorrow. |
OK I figured it out! Gosh that was obvious in retrospect, like so many bugs. Commenting leaflet.toolbar.js in application.js makes Annotations 2.0 work again -- although it breaks Leaflet.DistorableImage, which no longer has the new Leaflet.Toolbar to rely on. Now going to try to ensure the original L.Toolbar isn't overridden. |
That doesn't sound at all obvious. Good work!
|
OK, i switched all annotation code off (in a separate compiled js file) and only turned it on for the Annotations page, and simultaneously turned off interactivity (readOnly = true) for Leaflet.DistortableImage. The two no longer conflict (and also you can't warp images while writing annotations). Now I have to get annotation writing working -- the code is loading existing annotations but not saving new ones. Then styling, UI issues, etc. but we are doing pretty well vs a couple hours ago! |
Closing this and moving to #163 to break it out. Nice! |
This was running in a recent version, so it shouldn't be a big deal.
Note: http://publiclab.org/notes/justinmanley/09-02-2014/mapknitter-annotations-first-live-release
The text was updated successfully, but these errors were encountered: