Closed ppawel closed 11 years ago
I noticed this as well this weekend and I've got a fix that needs to be committed. I still need to run my version by @glenrobertson and see what his plans are. @glenrobertson's version has a bug with latest Leaflet stable that crashes the script, I don't just want to switch to it right now.
That's OK, no rush but I really think we should join forces with @glenrobertson and develop one GeoJSON tile layer instead of working on our own in owlviewer. Also it would be good to have a generic "AJAX tile layer" with all the nice features like aborting requests, handling not visible tiles etc. because all this would be reusable for summary tiles.
I really think we should join forces with @glenrobertson
Absolutely agreed. It's on my hit list for today to get an issue up on https://github.com/glenrobertson/leaflet-tilelayer-geojson
It can clearly be seen on the summary tiles because they are semi-transparent and you can see that they are loaded twice.
I suggest we switch back to @glenrobertson's leaflet-tilelayer-geojson as it has more features planned (aborting requests, merging together the same features from different tiles).
I added logging to the
_loadTile
methods and below is what I got - there are two calls to _loadTile for each tile.