Skip to content

Commit f22a9d2

Browse files
committed
Add aequilibrae-map styling defaults, color to colors in tile styling
1 parent 56ca54b commit f22a9d2

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

docs/ref-aequilibrae-map.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,27 @@ After the join, columns from the joined table are available for styling (e.g. qu
101101

102102
Style keys supported: `fillColor`, `lineColor`, `lineWidth`, `pointRadius`, `fillHeight`. (Note: client-side include/exclude filters were removed — use `sqlFilter` on the layer instead.)
103103

104+
### Default Styles (`defaults`)
105+
The optional `defaults` object sets baseline style values applied to all features before layer-specific styles are applied. If a layer doesn't specify a particular style property, the default value is used.
106+
Supported properties in `defaults`:
107+
| Property | Type | Description | Default if omitted |
108+
| --- | --- | --- | --- |
109+
| `fillColor` | string | Default fill color for polygons and points (hex) | `"#59a14f"` |
110+
| `lineColor` | string | Default line color (hex) | `"#4e79a7"` |
111+
| `lineWidth` | number | Default line width in meters | `2` |
112+
| `pointRadius` | number | Default point radius in meters | `4` |
113+
| `fillHeight` | number | Default height for 3D extrusion | `0` |
114+
Example:
115+
```yaml
116+
defaults:
117+
fillColor: "#6f6f6f"
118+
lineColor: "#FF6600"
119+
lineWidth: 2
120+
pointRadius: 4
121+
```
122+
123+
124+
104125
### Colors (`fillColor`, `lineColor`)
105126

106127
Colors may be specified in three ways:
@@ -254,4 +275,4 @@ Examples below are taken from the Chicago sample dashboards in this repository.
254275
# Tips & Notes
255276

256277
- Use `sqlFilter` to reduce the number of features rendered and improve performance.
257-
- For very large datasets, set `geometryLimit` or `minimalProperties` to reduce memory and payload size.
278+
- For very large datasets, set `geometryLimit` or `minimalProperties` to reduce memory and payload size.

docs/ref-tiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ layout:
7878
- type: 'tile'
7979
title: Tiles Plug-in Example
8080
dataset: 'data.csv'
81-
color: 'monochrome'
81+
colors: 'monochrome'
8282
```
8383
8484
---

0 commit comments

Comments
 (0)