Converts a SVG code to a defined map.
1 svg.map.toSVG
<svg.map.toSVG name='name'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Map name. |
Returns | |
---|---|
Type | Description |
SVGcode | Map code converted to SVG. |
Example
Converts a SVG code the data referring to a map.
Copy
<xsql-script name='svg_map_toSVG'> <body> <svg.map name='map1'> <svg.style> svg { colour: #ccc } .box { stroke: black; } #area { colour: #ddd; } </svg.style> <svg.paths> <svg.path name='path1'>m1773.3 951.23c0.3-4 6.6-5.49...</svg.path> <svg.path name='path2'>m1604.4 677.84c3.5 1.42 10.5-...</svg.path> <svg.path name='path3'>m1698.1 752.65c2.1-0.71 3.9-0...</svg.path> </svg.paths> </svg.map> <svg.map.toSVG name='map1'/> </body> </xsql-script>