danzel / Leaflet.utfgrid

A UTFGrid implementation for leaflet that is super small.
MIT License
131 stars 51 forks source link

Updated to handle Leaflet 0.8 (inherit from L.Layer) #31

Closed sephcoster closed 9 years ago

sephcoster commented 9 years ago

Per the discussion with @mourner in this plugin thread all future plugins (0.8 and forward) must inherit from L.Layer.

I've updated utfGrid js files to support Leaflet 0.8 and future L.Layer functionality.

Current version using only L.Class fails when using Leaflet master.

danzel commented 9 years ago

Could we use L.Layer || L.Class for a few less chars?

And please remove the dist changes from the PR. thanks!

sephcoster commented 9 years ago

Updated with your suggested changes.

danzel commented 9 years ago

Awesome thanks.