mapbox / geojson-vt

Slice GeoJSON into vector tiles on the fly in the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creation of tilecoords, adding memory to tilecoords, never used

CraigglesO opened this issue · comments

Was reading through the source code, and noticed you keep pushing to tilecoords, but you never actually use it, so potentially a lot of memory going to waste...

Not really a terrible issue, just an enhancement if you'd like.

this.tileCoords = [];

It's a pretty tiny overhead, and it's used externally — index.tileCoords is a part of the public API.