fix(buildings): use explicit step in descending range in encode_quadkey
zoom..1 without a step raises a runtime warning in Elixir 1.19 and was causing the BulkFetch Task to crash immediately. Changed to zoom..1//-1.
This commit is contained in:
parent
b17ff838ca
commit
a290c99184
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ defmodule Microwaveprop.Buildings.MsFootprints do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp encode_quadkey(tx, ty, zoom) do
|
defp encode_quadkey(tx, ty, zoom) do
|
||||||
Enum.reduce(zoom..1, "", fn i, acc ->
|
Enum.reduce(zoom..1//-1, "", fn i, acc ->
|
||||||
mask = Bitwise.bsl(1, i - 1)
|
mask = Bitwise.bsl(1, i - 1)
|
||||||
digit = digit_for(tx, ty, mask)
|
digit = digit_for(tx, ty, mask)
|
||||||
acc <> Integer.to_string(digit)
|
acc <> Integer.to_string(digit)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue