Skip to content

Commit 6200229

Browse files
authored
Merge pull request #1344 from OpenGeoscience/fix-docs
docs: Fix docs on marker stroke width
2 parents 4183bad + 488ce9b commit 6200229

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/markerFeature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var pointFeature = require('./pointFeature');
3333
* @property {number|function} [strokeOffset=-1] The position of the stroke
3434
* compared to the radius. This can only be -1, 0, or 1 (the sign of the
3535
* value is used).
36-
* @property {boolean|function} [radiusIncludeStroke=true] If truthy or
36+
* @property {boolean|function} [radiusIncludesStroke=true] If truthy or
3737
* undefined, the `radius` includes the `strokeWidth` based on the
3838
* `strokeOffset`. If defined and falsy, the radius does not include the
3939
* `strokeWidth`.

tutorials/marker/index.pug

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ block mainTutorial
5353
- `symbolValue`: a number that modifies how the symbol appears, usually in the range of [0, 1]. This is often the ratio of the minor axis of the symbol to its major axis. For `triangle`, it is the length of the base side compared to the identical sides.
5454
- `rotation`: the rotation in radians.
5555
- `rotateWithMap`: a boolean; if true, the symbol rotates when the map is rotated. If false, it remains in the same orientation on the screen.
56-
- `radius`: in pixels. This includes the stroke width, if any.
56+
- `radius`: in pixels. Depending on `strokeOffset` and `radiusIncludesStroke`, this can include half or all of the stroke width.
57+
- `radiusIncludesStroke`: if truthy or undefined, the `radius` includes the `strokeWidth` based on the `strokeOffset`. If defined and falsy, the radius does not include the `strokeWidth`; set this to `false` if `scaleWithZoom` is set to `"fill"`.
5758
- `strokeWidth`: the width of the stroke around the symbol in pixels.
58-
- `scaleWithZoom`: one of the values defined in `geo.markerFeature.scaleModes`. If `none`, the symbols remains the same size when the map is zoomed. This can also be `fill`, `stroke`, or `all`, in which case the symbol will change size when the map is zoomed. The `radius` and `strokeWidth` are in pixels at zoom level 0.
59+
- `strokeOffset`: the position of the stroke compared to the radius. This can only be -1 (inside), 0 (centered at the radius), or 1 (outside).
60+
- `scaleWithZoom`: one of the values defined in `geo.markerFeature.scaleModes`. If `none`, the symbols remains the same size when the map is zoomed. This can also be `fill`, `stroke`, or `all`, in which case the symbol will change size when the map is zoomed. If scaling with zoom, the `radius` and `strokeWidth` are in pixels at zoom level 0.
5961
- `fillColor`
6062
- `fillOpacity`
6163
- `strokeColor`

0 commit comments

Comments
 (0)