work with precisions 1..9 based on the zoom levels

It's best practise to explicitly state this as base 10 or you will get unexpected results when users provide input with a leading 0.

https://www.inkling.com/read/javascript-good-parts-douglas-crockford-1st/appendix-a/parseint