mapbox / geojson-vt

Slice GeoJSON into vector tiles on the fly in the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getTile will accept strings for coordinate numbers

mryellow opened this issue · comments

I was wrongly passing in strings and took quite awhile to realise the mistake.

Results in nonsensical "ID" which won't match tiles.

Either validation could error when one passes a string to args of getTile(z, x, y) or perhaps they could simply be cast to numbers with parseInt().

Looks like this was fixed in #128