Skip to content
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

Take advantage of upgraded Leaflet API #2

Open
JRInge opened this issue Dec 7, 2014 · 1 comment
Open

Take advantage of upgraded Leaflet API #2

JRInge opened this issue Dec 7, 2014 · 1 comment
Assignees

Comments

@JRInge
Copy link
Owner

JRInge commented Dec 7, 2014

If/when the main map page is upgraded to use Leaflet > v0.7, use map.eachLayer() to iterate layers instead of using a for ... in loop over the _layers property of the map.

@JRInge JRInge self-assigned this Dec 7, 2014
@JRInge JRInge changed the title Use map.eachLayer Take advantage of upgraded Leaflet API Dec 13, 2014
@JRInge
Copy link
Owner Author

JRInge commented Dec 13, 2014

Use map.fitBounds() options in GME_displayPoints() to ensure that

  • a) waypoints are not lost at the edges of the viewport (v0.6)
  • b) map doesn't zoom in too far (v0.7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant