Allows to assign a style to a Path.
1 svg.map.setPathStyle
<svg.map.setPathStyle
name='name'
path='path'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Map name. | |||
Apath | string | Path name. |
Example
Assigns a external link to a Path.
Copy
<xsql-script name='svg_map_setPathStyle'> <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.setPathStyle name='map1' path='path3'>#C3AA48</svg.map.setPathStyle> </body> </xsql-script>