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
  • GlyphSymbolizer

GlyphSymbolizer · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Show whitespace changes
Inline Side-by-side
GlyphSymbolizer.md 0 → 100644
View page @ 8516de00
[[Symbolizer|SymbologySupport]] that specifies rendering of a TrueType Glyph .
**New in 0.8 (aka Mapnik2) but removed in Mapnik 2.1** after the [[TextSymbolizer]] gained the ability to render raw strings using Expressions and gained the ability to rotate text using the expression-based `orientation` property.
Renders a TrueType Glyph at the Feature's label location (usually the center of polygons/lines and on the point themselves).
(see [source](https://github.com/mapnik/mapnik/blob/master/tests/python_tests/glyph_symbolizer_test.py) for sample usage)
## Sample XML Configuration
```xml
<?xml version="1.0" encoding="utf-8"?>
<Map>
<Style name="arrows">
<Rule>
<GlyphSymbolizer
face_name="DejaVu Sans Condensed"
size="10"
char="'í'"
allow_overlap="true"
avoid_edges="false"
halo_fill="rgba(0%,0%,0%,4%)"
halo_radius="1"
value="[value]"
angle="[azumuth]+90"
>
<RasterColorizer>
<ColorBand value="0" color="#0044cc"/>
<ColorBand value="10" color="#00cc00"/>
<ColorBand value="20" color="#ffff00"/>
</RasterColorizer>
</GlyphSymbolizer>
</Rule>
</Style>
</Map>
```
TODO: Describe all parameters
\ No newline at end of file
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