diff --git a/xq/site/components/map.xqm b/xq/site/components/map.xqm index 9e7e693..a214f91 100644 --- a/xq/site/components/map.xqm +++ b/xq/site/components/map.xqm @@ -58,4 +58,14 @@ declare %rest:path("{$lang}/map") Plotly.newPlot(map, [mapdata], layout); ")} ) - }; \ No newline at end of file + }; + +declare %rest:path("map") + %rest:query-param("entry", "{$entry}") + %rest:GET + %rest:produces("text/html") + %output:method("html") + %output:html-version('5') + function map:map($entry as xs:string) { + map:map('en', $entry) +}; \ No newline at end of file