Module:Sandbox/Jgirault/Interactive map

local p = {} function p.map(frame) local latitude = frame.args[1] local longitude = frame.args[2] local title = frame.args['title'] or '' local description = frame.args['description'] local geojson = '' geojson = geojson .. {		"type": "Feature",		"geometry": {			"type": "Point",			"coordinates": [				 .. longitude .. ,				 .. latitude .. ]		},		"properties": {			; if title then geojson = geojson .. "title": " .. mw.text.encode( maplinkArgs['title'] ) .. "; end geojson = geojson .. }   } ;

local maplinkArgs = { ['latitude'] = latitude, ['longitude'] = longitude, ['zoom'] = frame.args[3] }	local maplinkContent = {		"type": "Feature",		"geometry": {			"type": "Point",			"coordinates": [				 .. longitude .. ,				 .. latitude .. ]		},		"properties": {			"title": " .. mw.text.encode( maplinkArgs['title'] ) .. ",			"marker-symbol": " .. maplinkMarkerSymbol .. ",			"marker-color": "; return frame:extensionTag{ name = 'mapframe', content = geojson, args = maplinkArgs } end return p