Skip to content

Commit 98e285d

Browse files
authored
Merge pull request #164 from dch0ph/mapnik-v3.1.0-extend
Mapnik v3.1.0 extend
2 parents 972b97a + b16c17f commit 98e285d

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

3.1.0/reference.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,6 +2701,14 @@
27012701
"doc": "In case of `line` placement, offsets a text position a number of pixels parallel to its actual path. In case of `grid` placement, reduces or expands the polygon area. Positive values move the line left or expand the polygon, negative values move it right or shrink the polygon (relative to the directionality of the line or polygon winding).",
27022702
"status": "unstable"
27032703
}
2704+
"extend": {
2705+
"css": "text-extend",
2706+
"type": "float",
2707+
"expression": true,
2708+
"default-value": 0.0,
2709+
"default-meaning": "",
2710+
"doc": "A temporary path will created that extends both the starting and final segments of a line by the given distance (starting and final segments are the same for lines with a single segment). The text will be rendered on this extended line, i.e. text will extend beyond the line length. Option is only valid with placement-line."
2711+
},
27042712
},
27052713
"building": {
27062714
"default": {

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
It is useful for building parsers, tests, compilers, and syntax highlighting/checking for languages.
66

7-
[![Build Status](https://travis-ci.org/mapnik/mapnik-reference.svg)](https://travis-ci.org/mapnik/mapnik-reference)
8-
9-
Default branch is `gh-pages` which is displayed at http://mapnik.org/mapnik-reference
7+
Default branch is `gh-pages`, which is displayed at http://mapnik.org/mapnik-reference
108

119
## Versioning
1210

@@ -20,13 +18,13 @@ and the next targeted release of Mapnik.
2018

2119
## Meaning
2220

23-
The structure of the file is as such:
21+
The structure of `reference.json` is:
2422

2523
* `version`: the version of Mapnik targeted. Same as the containing directory.
2624
* `style`: properties of the `Style` XML element
2725
* `layer`: properties of the `Layer` XML element
28-
* `symbolizers/*`: properties that apply to **all** symbolizers
29-
* `symbolizers/symbolizer`: properties that apply to **each** type of symbolizer
26+
* `symbolizers`: properties that apply to all symbolizers (removed from version 2.1.0 onwards)
27+
* `symbolizers/`_\<symbolizer\>_: properties that are specific to a given symbolizer
3028
* `colors`: named colors supported by Mapnik. see `include/mapnik/css_color_grammar.hpp`
3129

3230
### Property stability
@@ -38,6 +36,7 @@ then the `status` is `stable`. Possible values are:
3836
- **deprecated:** `property` should not be used and will be removed in upcoming major version of Mapnik
3937
- **experimental:** `property` should not be used and may change, be re-named, or disappear at any time
4038

39+
`datasources.json` separately details the properties of the possible data sources (since version 2.3.0).
4140

4241
## Using
4342

@@ -82,5 +81,5 @@ Tests require python and node.js:
8281

8382
## Users
8483

85-
* [carto.js](https://github.com/mapbox/carto)
86-
* Mapnik itself (the util/validate-mapnik-instance.py is used to check binding consistency like in [#1427](https://github.com/mapnik/mapnik/issues/1427))
84+
* [carto.js](https://github.com/cartocss/carto)
85+
* [Mapnik documentation](http://mapnik.org/mapnik-reference)

0 commit comments

Comments
 (0)