Skip to content

Conversation

@schendtj
Copy link

Updates for Leaflet 1.x

@nreese
Copy link
Owner

nreese commented Dec 20, 2016

Looks like the filter by polygon is broken with leaflet 1.x. The draw:created event handler needs to be tweaked to handle leaflet 1.x constructs. See screen shot below and update how the lat and lon are pulled from the event. Right now, they are pulling undefined values.

image

@nreese
Copy link
Owner

nreese commented Dec 20, 2016

Map zooming produces weird artifacts like those described in leaflet issues 4774 and 4247. Looks like this is an issue caused by the old leaflet CSS. Any ideas on how to fix?

@schendtj
Copy link
Author

schendtj commented Dec 20, 2016 via email

@schendtj
Copy link
Author

Nathan, check out the css issue again, I'm not able to recreate any transition issues similar to Leaflet issues 4774 and 4247. The tilemap renders after the redraw, so there's a small delay where circles/polygons appear larger/smaller than they should, but nothing is moving to the corners.

leafletmove

@nreese
Copy link
Owner

nreese commented Dec 22, 2016

your gif is showing the issue. See how the vectors jump off of their lat/lon. That should not happen and is very jolting. Switch back to leaflet 0.7 and do some zooms. It should look like that

@schendtj
Copy link
Author

I checked Leaflet 0.7 before I made the gif. Leaflet 0.7 looks worse in terms of vector distortion. I forced the leaflet css in vis.html, and there are some minor improvements, but there's still a little distortion.

@nreese
Copy link
Owner

nreese commented Jan 18, 2017

Zooming looks good now.

There seems to be something wrong with leaflet.draw and drawing a polygon. In the old version, double clicking closed the polygon. Now that does not work. You can not even close the shape by clicking on the last point.

public/vis.html Outdated
@@ -1,4 +1,6 @@
<link type='text/css' rel='stylesheet' href='../node_modules/leaflet/dist/leaflet.css'/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be removed since leaflet.css is no longer in node/modules

@schendtj
Copy link
Author

I think we're seeing something similar to:

Clockwise drawing of polygon fails + cannot close polygon on Windows + Chrome #637

I'll pull the latest leaflet.draw and see if that fixes the issues on Chrome+IE

…porate new changes that address polyline creation on chrome/IE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants