"ഘടകം: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) or "Custom Marker",
text = clean(args.text) or nil, -- Use provided text, default is nil
marker = clean(args.marker) ~= "no",
marker = clean(args.marker) ~= "no",
}
}


-- If a marker is requested, generate GeoJSON for the marker
-- GeoJSON content for the marker
local content = nil
local content = nil
if options.marker then
if options.marker then
വരി 34: വരി 34:
},
},
properties = {
properties = {
title = options.text, -- Use the provided text for the popup
title = options.text or "Marker", -- Popup text from `args.text`, default 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
"https://schoolwiki.in/ഘടകം:Slippymap/sandbox" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്