"ഘടകം:Slippymap/sandbox" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
(ചെ.)No edit summary |
No edit summary |
||
| വരി 17: | വരി 17: | ||
zoom = tonumber(clean(args.zoom)) or 12, | zoom = tonumber(clean(args.zoom)) or 12, | ||
align = clean(args.alignment) or "center", | align = clean(args.alignment) or "center", | ||
text = clean(args.text) | text = clean(args.text), -- Use provided text, no default value here | ||
marker = clean(args.marker) ~= "no", | marker = clean(args.marker) ~= "no", | ||
} | } | ||
-- GeoJSON content | -- Generate GeoJSON content if the marker is enabled | ||
local content = nil | local content = nil | ||
if options.marker then | if options.marker then | ||
| വരി 34: | വരി 34: | ||
}, | }, | ||
properties = { | properties = { | ||
title = options.text or "Marker", -- Popup text | title = options.text or "Marker", -- Popup text set to `args.text`, fallback is "Marker" | ||
icon = { | icon = { | ||
iconUrl = "//schoolwiki.in/images/5/5f/63rd_state_kalolsavam_logo.png", -- Custom marker image | iconUrl = "//schoolwiki.in/images/5/5f/63rd_state_kalolsavam_logo.png", -- Custom marker image | ||