formatcoords
formatcoords copied to clipboard
Bugfix: accept {lat,lng} with a coordinate value equal 0
I found a bug! If you provide coordinates as object and either lat or lng are 0, I will get 'NaN' as result. This pull request fixes this behavior and also provides a test.