try linebreaks

This commit is contained in:
samanpwbb 2014-09-23 18:51:11 -04:00
parent 9386a56464
commit 08ca40d3f7
7 changed files with 71 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<% _(symbolizers).each(function(symbolizer, name) { %> <% _(symbolizers).each(function(symbolizer, name) { %>
* * *
<% if (name == '*') { %>## All elements<% } else { %>## <%= name %><% } %> <% if (name == '*') { %>## All elements<% } else { %>## <%= name %><% } %>
<% _(symbolizer).chain().filter(function(p) { return p.css; }).each(function(p) { %> <% _(symbolizer).chain().filter(function(p) { return p.css; }).each(function(p) { %>
#### <%= p.css.replace(/\s/g, '') %> <% if (_.isArray(p.type)) { %>`keyword`<% } else { %>`<%= p.type %>`<% } %> #### <%= p.css.replace(/\s/g, '') %> <% if (_.isArray(p.type)) { %>`keyword`<% } else { %>`<%= p.type %>`<% } %>

View File

@ -2,6 +2,7 @@
The following is a list of properties provided in CartoCSS that you can apply to map elements. The following is a list of properties provided in CartoCSS that you can apply to map elements.
* * *
## map ## map
#### background-color `color` #### background-color `color`
@ -53,6 +54,7 @@ _(No map-specific fonts will be registered)_
Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered). Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered).
* * *
## polygon ## polygon
#### polygon-fill `color` #### polygon-fill `color`
@ -88,6 +90,7 @@ Range: 0-1
Amount of smoothing applied Amount of smoothing applied
* * *
## line ## line
#### line-color `color` #### line-color `color`
@ -163,6 +166,7 @@ Default Value: full
Exposes an alternate AGG rendering method that sacrifices some accuracy for speed. Exposes an alternate AGG rendering method that sacrifices some accuracy for speed.
* * *
## markers ## markers
#### marker-file `uri` #### marker-file `uri`
@ -286,6 +290,7 @@ _(no transformation)_
An SVG transformation definition An SVG transformation definition
* * *
## shield ## shield
#### shield-name `string` #### shield-name `string`
@ -505,6 +510,7 @@ Default Value: middle
Define how text in a shield&#x27;s label is justified Define how text in a shield&#x27;s label is justified
* * *
## line-pattern ## line-pattern
#### line-pattern-file `uri` #### line-pattern-file `uri`
@ -516,6 +522,7 @@ Default Value: none
An image file to be repeated and warped along a line An image file to be repeated and warped along a line
* * *
## polygon-pattern ## polygon-pattern
#### polygon-pattern-file `uri` #### polygon-pattern-file `uri`
@ -543,6 +550,7 @@ Range: 0-1
Level of antialiasing of polygon pattern edges Level of antialiasing of polygon pattern edges
* * *
## raster ## raster
#### raster-opacity `float` #### raster-opacity `float`
@ -586,6 +594,7 @@ _(Reprojection mesh will be 1&#x2F;16 of the resolution of the source image)_
A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion. A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion.
* * *
## point ## point
#### point-file `uri` #### point-file `uri`
@ -637,6 +646,7 @@ _(No transformation)_
SVG transformation definition SVG transformation definition
* * *
## text ## text
#### text-name `string` #### text-name `string`
@ -880,6 +890,7 @@ Default Value: center
Set the text alignment. Set the text alignment.
* * *
## building ## building
#### building-fill `color` #### building-fill `color`

View File

@ -2,6 +2,7 @@
The following is a list of properties provided in CartoCSS that you can apply to map elements. The following is a list of properties provided in CartoCSS that you can apply to map elements.
* * *
## map ## map
#### background-color `color` #### background-color `color`
@ -53,6 +54,7 @@ _(No map-specific fonts will be registered)_
Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered). Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered).
* * *
## polygon ## polygon
#### polygon-fill `color` #### polygon-fill `color`
@ -88,6 +90,7 @@ Range: 0-1
Amount of smoothing applied Amount of smoothing applied
* * *
## line ## line
#### line-color `color` #### line-color `color`
@ -163,6 +166,7 @@ Default Value: full
Exposes an alternate AGG rendering method that sacrifices some accuracy for speed. Exposes an alternate AGG rendering method that sacrifices some accuracy for speed.
* * *
## markers ## markers
#### marker-file `uri` #### marker-file `uri`
@ -286,6 +290,7 @@ _(no transformation)_
An SVG transformation definition An SVG transformation definition
* * *
## shield ## shield
#### shield-name `string` #### shield-name `string`
@ -505,6 +510,7 @@ Default Value: middle
Define how text in a shield&#x27;s label is justified Define how text in a shield&#x27;s label is justified
* * *
## line-pattern ## line-pattern
#### line-pattern-file `uri` #### line-pattern-file `uri`
@ -516,6 +522,7 @@ Default Value: none
An image file to be repeated and warped along a line An image file to be repeated and warped along a line
* * *
## polygon-pattern ## polygon-pattern
#### polygon-pattern-file `uri` #### polygon-pattern-file `uri`
@ -543,6 +550,7 @@ Range: 0-1
Level of antialiasing of polygon pattern edges Level of antialiasing of polygon pattern edges
* * *
## raster ## raster
#### raster-opacity `float` #### raster-opacity `float`
@ -586,6 +594,7 @@ _(Reprojection mesh will be 1&#x2F;16 of the resolution of the source image)_
A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion. A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion.
* * *
## point ## point
#### point-file `uri` #### point-file `uri`
@ -637,6 +646,7 @@ _(No transformation)_
SVG transformation definition SVG transformation definition
* * *
## text ## text
#### text-name `string` #### text-name `string`
@ -880,6 +890,7 @@ Default Value: center
Set the text alignment. Set the text alignment.
* * *
## building ## building
#### building-fill `color` #### building-fill `color`

View File

@ -2,6 +2,7 @@
The following is a list of properties provided in CartoCSS that you can apply to map elements. The following is a list of properties provided in CartoCSS that you can apply to map elements.
* * *
## map ## map
#### background-color `color` #### background-color `color`
@ -53,6 +54,7 @@ _(No map-specific fonts will be registered)_
Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered). Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered).
* * *
## polygon ## polygon
#### polygon-fill `color` #### polygon-fill `color`
@ -88,6 +90,7 @@ Range: 0-1
Amount of smoothing applied Amount of smoothing applied
* * *
## line ## line
#### line-color `color` #### line-color `color`
@ -163,6 +166,7 @@ Default Value: full
Exposes an alternate AGG rendering method that sacrifices some accuracy for speed. Exposes an alternate AGG rendering method that sacrifices some accuracy for speed.
* * *
## markers ## markers
#### marker-file `uri` #### marker-file `uri`
@ -286,6 +290,7 @@ _(no transformation)_
An SVG transformation definition An SVG transformation definition
* * *
## shield ## shield
#### shield-name `string` #### shield-name `string`
@ -505,6 +510,7 @@ Default Value: middle
Define how text in a shield&#x27;s label is justified Define how text in a shield&#x27;s label is justified
* * *
## line-pattern ## line-pattern
#### line-pattern-file `uri` #### line-pattern-file `uri`
@ -516,6 +522,7 @@ Default Value: none
An image file to be repeated and warped along a line An image file to be repeated and warped along a line
* * *
## polygon-pattern ## polygon-pattern
#### polygon-pattern-file `uri` #### polygon-pattern-file `uri`
@ -543,6 +550,7 @@ Range: 0-1
Level of antialiasing of polygon pattern edges Level of antialiasing of polygon pattern edges
* * *
## raster ## raster
#### raster-opacity `float` #### raster-opacity `float`
@ -586,6 +594,7 @@ _(Reprojection mesh will be 1&#x2F;16 of the resolution of the source image)_
A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion. A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion.
* * *
## point ## point
#### point-file `uri` #### point-file `uri`
@ -637,6 +646,7 @@ _(No transformation)_
SVG transformation definition SVG transformation definition
* * *
## text ## text
#### text-name `string` #### text-name `string`
@ -880,6 +890,7 @@ Default Value: center
Set the text alignment. Set the text alignment.
* * *
## building ## building
#### building-fill `color` #### building-fill `color`

View File

@ -2,6 +2,7 @@
The following is a list of properties provided in CartoCSS that you can apply to map elements. The following is a list of properties provided in CartoCSS that you can apply to map elements.
* * *
## All elements ## All elements
#### image-filters `functions` #### image-filters `functions`
@ -29,6 +30,7 @@ _(no separate buffer will be used and no alpha will be applied to the style afte
An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer) An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer)
* * *
## map ## map
#### background-color `color` #### background-color `color`
@ -80,6 +82,7 @@ _(No map-specific fonts will be registered)_
Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered). Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered).
* * *
## polygon ## polygon
#### polygon-fill `color` #### polygon-fill `color`
@ -147,6 +150,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## line ## line
#### line-color `color` #### line-color `color`
@ -278,6 +282,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## markers ## markers
#### marker-file `uri` #### marker-file `uri`
@ -441,6 +446,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## shield ## shield
#### shield-name `expression` #### shield-name `expression`
@ -692,6 +698,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## line-pattern ## line-pattern
#### line-pattern-file `uri` #### line-pattern-file `uri`
@ -735,6 +742,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## polygon-pattern ## polygon-pattern
#### polygon-pattern-file `uri` #### polygon-pattern-file `uri`
@ -802,6 +810,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## raster ## raster
#### raster-opacity `float` #### raster-opacity `float`
@ -845,6 +854,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## point ## point
#### point-file `uri` #### point-file `uri`
@ -904,6 +914,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## text ## text
#### text-name `expression` #### text-name `expression`
@ -1171,6 +1182,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## building ## building
#### building-fill `color` #### building-fill `color`

View File

@ -2,6 +2,7 @@
The following is a list of properties provided in CartoCSS that you can apply to map elements. The following is a list of properties provided in CartoCSS that you can apply to map elements.
* * *
## All elements ## All elements
#### image-filters `functions` #### image-filters `functions`
@ -29,6 +30,7 @@ _(no separate buffer will be used and no alpha will be applied to the style afte
An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer) An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer)
* * *
## map ## map
#### background-color `color` #### background-color `color`
@ -80,6 +82,7 @@ _(No map-specific fonts will be registered)_
Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered). Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered).
* * *
## polygon ## polygon
#### polygon-fill `color` #### polygon-fill `color`
@ -147,6 +150,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## line ## line
#### line-color `color` #### line-color `color`
@ -278,6 +282,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## markers ## markers
#### marker-file `uri` #### marker-file `uri`
@ -449,6 +454,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## shield ## shield
#### shield-name `expression` #### shield-name `expression`
@ -700,6 +706,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## line-pattern ## line-pattern
#### line-pattern-file `uri` #### line-pattern-file `uri`
@ -743,6 +750,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## polygon-pattern ## polygon-pattern
#### polygon-pattern-file `uri` #### polygon-pattern-file `uri`
@ -810,6 +818,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## raster ## raster
#### raster-opacity `float` #### raster-opacity `float`
@ -853,6 +862,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## point ## point
#### point-file `uri` #### point-file `uri`
@ -912,6 +922,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## text ## text
#### text-name `expression` #### text-name `expression`
@ -1179,6 +1190,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## building ## building
#### building-fill `color` #### building-fill `color`

View File

@ -2,6 +2,7 @@
The following is a list of properties provided in CartoCSS that you can apply to map elements. The following is a list of properties provided in CartoCSS that you can apply to map elements.
* * *
## All elements ## All elements
#### image-filters `functions` #### image-filters `functions`
@ -37,6 +38,7 @@ _(no separate buffer will be used and no alpha will be applied to the style afte
An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer) An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer)
* * *
## map ## map
#### background-color `color` #### background-color `color`
@ -104,6 +106,7 @@ _(No map-specific fonts will be registered)_
Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered). Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered).
* * *
## polygon ## polygon
#### polygon-fill `color` #### polygon-fill `color`
@ -187,6 +190,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## line ## line
#### line-color `color` #### line-color `color`
@ -334,6 +338,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## markers ## markers
#### marker-file `uri` #### marker-file `uri`
@ -505,6 +510,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## shield ## shield
#### shield-name `expression` #### shield-name `expression`
@ -780,6 +786,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## line-pattern ## line-pattern
#### line-pattern-file `uri` #### line-pattern-file `uri`
@ -847,6 +854,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## polygon-pattern ## polygon-pattern
#### polygon-pattern-file `uri` #### polygon-pattern-file `uri`
@ -930,6 +938,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## raster ## raster
#### raster-opacity `float` #### raster-opacity `float`
@ -1005,6 +1014,7 @@ Default Value: undefined
TODO TODO
* * *
## point ## point
#### point-file `uri` #### point-file `uri`
@ -1064,6 +1074,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## text ## text
#### text-name `expression` #### text-name `expression`
@ -1339,6 +1350,7 @@ _(add the current symbolizer on top of other symbolizer)_
Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it. Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.
* * *
## building ## building
#### building-fill `color` #### building-fill `color`
@ -1366,6 +1378,7 @@ Default Value: 0
The height of the building in pixels. The height of the building in pixels.
* * *
## debug ## debug
#### debug-mode `string` #### debug-mode `string`