Thursday, March 19, 2015

Neat Leaflet plugin: History

A client today asked for a History tool in Leaflet. The idea, is that some Forward and Backward arrows are on the map, and these will track back through the "history" of your map extent: pan, zoom, pan again, ... then back up to that previous extent.

It doesn't come up often, but this particular client had it on a prior project I did and they really like it. But does it exist... for Leaflet?

Yes, it does! Thanks to Chris Scott there's a History control for Leaflet. It's tiny and functional, has no frills and no surprises.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.