Skip to content

SVG support

Artem Pavlenko edited this page Jun 20, 2017 · 10 revisions

Supported SVG elements

https://github.com/mapnik/mapnik/tree/svg-strict-parsing

<svg>

Specific attributes

attribute value
width
height
viewBox

<path>

Global attributes

transform

Specific attributes

attribute value
d

<polygon>

Specific attributes

attribute value
points

<polyline>

Specific attributes

attribute value
points

<line>

Specific attributes

attribute value
x1
y1
x2
y2

<rect>

Specific attributes

attribute value
x
y
width
height
rx
ry

<circle>

Specific attributes

attribute value
cx
cy
r

<ellipse>

Specific attributes

attribute value
cx
cy
rx
ry

<g>

Global attributes

transform

Specific attributes

<use>

Specific attributes

<linearGradient>

Specific attributes

<radialGradient>

Specific attributes

<symbol>

Specific attributes

<defs>

Specific attributes


Style Attributes

<style

<class>

Not supported


Global attributes

transform


Presentation attributes

alignment-baseline

baseline-shift

clip

clip-path

clip-rule

color

color-interpolation

color-interpolation-filters

color-profile

color-rendering

cursor

direction

display

dominant-baseline

enable-background

fill

fill-opacity

fill-rule

filter

flood-color

flood-opacity

font-family

font-size

font-size-adjust

font-stretch

font-style

font-variant

font-weight

glyph-orientation-horizontal

glyph-orientation-vertical

image-rendering

kerning

letter-spacing

lighting-color

marker-end

marker-mid

marker-start

mask

opacity

overflow

pointer-events

shape-rendering

stop-color

stop-opacity

stroke

stroke-dasharray

stroke-dashoffset

stroke-linecap

stroke-linejoin

stroke-miterlimit

stroke-opacity

stroke-width

text-anchor

text-decoration

text-rendering

unicode-bidi

visibility

word-spacing

writing-mode

Clone this wiki locally