"ഘടകം:Slippymap/sandbox" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

'local p = {} -- Cleans input of excessive whitespace typically added by linebreaks and spaces local function clean(input) return input and #input > 0 and mw.text.trim(input) or nil end function p.slippymap(frame) local args = (frame:getParent() or frame).args -- Set map options with default values local options = {} options.latitude = tonumber(clean(args.lat)) or 51.3432699 options.longitude = tonumber(clean(a...' താൾ സൃഷ്ടിച്ചിരിക്കുന്നു
 
No edit summary
വരി 39: വരി 39:
},
},
properties = {
properties = {
title = options.text or "Marker",
title = options.text or "Marker", -- Title for the popup
["marker-symbol"] = "marker", -- Default marker symbol
["marker-size"] = "medium", -- Marker size (small, medium, or large)
["marker-color"] = "#FF0000", -- Marker color (hex format)
},
},
},
},
"https://schoolwiki.in/ഘടകം:Slippymap/sandbox" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്