Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mapnik3
  • Project information
    • Project information
    • Activity
    • Members
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
Collapse sidebar
  • 周峰
  • mapnik3
  • Wiki
  • SVG support

SVG support · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Show whitespace changes
Inline Side-by-side
SVG-support.md 0 → 100644
View page @ 8516de00
## Elements
Note that all colors must be in HEX. RGB is not supported
### Supported
| **Elements** | **Attributes** |
|:--------------:|:-----------------------------:|
| rect | (x, y, width, height, rx, ry) |
| path | (d) |
| polygon | (points) |
| polyline | (points) |
| line | (x1, y1, x2, y2) |
| circle | (cx, cy, r) |
| ellipse | (cx, cy, rx, ry) |
| svg | (width, height, viewBox) |
| linearGradient | |
| radialGradient | |
| g | |
| use | |
| defs | |
### Not-supported
| **Elements** |
|:------------:|
| marker |
| view |
| text |
| switch |
| image |
| a |
| symbol |
| clipPath |
| pattern |
__________________________________
## Attributes
### Supported
| **Support** |
|:-------------------:|
| transform |
| fill |
| fill-opacity |
| fill-rule |
| stroke |
| stroke-width |
| stroke-opacity |
| stroke-linecap |
| stroke-linejoin |
| stroke-miterlimit |
| stroke-dasharray |
| stroke-dashoffset |
| opacity |
| visibility |
| display |
| stop-color |
| stop-opacity |
| preserveAspectRatio |
| viewBox |
| height |
| width |
| href |
| id |
| d |
| x |
| x1 |
| x2 |
| y |
| y1 |
| y2 |
| cs |
| cy |
| r |
| fx |
| fy |
| style |
| gradientUnits |
| gradientTransform |
| points |
| offset |
### Not-supported
| **Not support** |
|:----------------------------:|
| alignment-baseline |
| baseline-shift |
| clip |
| clip-path |
| clip-rule |
| color-interpolation |
| color-interpolation-filters |
| color-profile |
| color-rendering |
| cursor |
| direction |
| dominant-baseline |
| enable-background |
| 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 |
| overflow |
| pointer-events |
| shape-rendering |
| text-anchor |
| text-decoration |
| text-rendering |
| unicode-bidi |
| word-spacing |
| writing-mode |
Clone repository
  • A perfect testcase
  • API changes between v2.0 and v2.1
  • API changes between v3.0 and v3.1
  • AWS Lambda
  • About Mapnik
  • AlsoFilter
  • Api changes between v2.1 and v2.2
  • Api changes between v2.2 and v2.3
  • Api changes between v2.3 and v3.0
  • ArchInstallation
  • Aspect Fix Mode
  • Benchmark Notes
  • BoundsClipping
  • BrokenExceptions
  • BuildingSymbolizer
View All Pages