1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
-- Enter/exit Tilemaker
function init_function()
end
function exit_function()
end
node_keys = {}
function node_function()
end
function way_function()
end
-- Remap coastlines and landcover
function attribute_function(attr,layer)
if attr["featurecla"]=="Glaciated areas" then
return { subclass="glacier" }
elseif attr["featurecla"]=="Antarctic Ice Shelf" then
return { subclass="ice_shelf" }
elseif attr["featurecla"]=="Urban area" then
return { class="residential" }
elseif layer=="ocean" then
return { class="ocean" }
else
return attr
end
end
|