From abf143eeab34f8ce0510d00a032f54463bf2f0e3 Mon Sep 17 00:00:00 2001 From: Oleg Belyaev Date: Sun, 30 Mar 2025 01:25:51 +0300 Subject: [PATCH] fixed map --- xq/site/components/map.xqm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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