Allows to create a map in SVG.
1 svg.map.addPath
<svg.map.addPath
name='name'
path='path'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Map name. | |||
Apath | string | Path name. |
Example
Create a SVG map.
Copy
<xsql-script name='svg_map_addPath'> <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.addPath name='map1' path='path4'>m1773.3 951.23c0.3-4 6.6-5.49...</svg.map.addPath> </body> </xsql-script>