remove type, width, and height from XML examples
parent
a17664b168
commit
ac653958ec
1 changed files with 6 additions and 9 deletions
|
@ -4,9 +4,9 @@
|
||||||
<!-- Author: Ldp -->
|
<!-- Author: Ldp -->
|
||||||
# PointSymbolizer
|
# PointSymbolizer
|
||||||
|
|
||||||
A PointSymbolizer specifies the rendering of a "graphic symbol" at a point.
|
Specifies the rendering of a png, tiff, or svg graphic symbol at a point.
|
||||||
|
|
||||||
If you want to draw a graphic symbol and a text you would better use a ShieldSymbolizer.
|
A [ShieldSymbolizer] will combine a graphic symbol with a text label.
|
||||||
|
|
||||||
Some options described here are not available in mapnik versions < 2.0.
|
Some options described here are not available in mapnik versions < 2.0.
|
||||||
|
|
||||||
|
@ -51,13 +51,12 @@ Some options described here are not available in mapnik versions < 2.0.
|
||||||
|
|
||||||
### Image label
|
### Image label
|
||||||
|
|
||||||
|
[[/images/point_symbolizer_2.png]]
|
||||||
[[/images/point_symbolizer_2.png]]
|
|
||||||
|
|
||||||
#### XML
|
#### XML
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<PointSymbolizer file="/tmp/pub.png" width="16" height="16" type="png" />
|
<PointSymbolizer file="/tmp/pub.png" transform="scale(2)" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Python
|
#### Python
|
||||||
|
@ -84,8 +83,7 @@ Some options described here are not available in mapnik versions < 2.0.
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<PointSymbolizer allow-overlap="yes" file="/Users/artem/projects/
|
<PointSymbolizer allow-overlap="yes" file="/Users/artem/projects/
|
||||||
openstreetmap/mapnik/symbols/station_small.png" type="png" width="5"
|
openstreetmap/mapnik/symbols/station_small.png" />
|
||||||
height="5" />
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Do Not Allow Overlap
|
### Do Not Allow Overlap
|
||||||
|
@ -96,8 +94,7 @@ Some options described here are not available in mapnik versions < 2.0.
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<PointSymbolizer allow-overlap="no" file="/Users/artem/projects/
|
<PointSymbolizer allow-overlap="no" file="/Users/artem/projects/
|
||||||
openstreetmap/mapnik/symbols/station_small.png" type="png" width="5"
|
openstreetmap/mapnik/symbols/station_small.png" />
|
||||||
height="5" />
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## SVG symbols (trunk)
|
## SVG symbols (trunk)
|
||||||
|
|
Loading…
Reference in a new issue