From ac0135e9e88d2f5f2a1279af2bd4b30ee51facdf Mon Sep 17 00:00:00 2001 From: Abraham Toriz Date: Fri, 28 Jun 2019 13:28:58 -0400 Subject: [PATCH] finish documenting all the geometries --- docs/component/line-string-geom.md | 8 +-- docs/component/multi-line-string-geom.md | 6 +- docs/component/multi-point-geom.md | 42 +++++++++++++ docs/component/multi-polygon-geom.md | 42 +++++++++++++ docs/component/point-geom.md | 42 +++++++++++++ docs/component/polygon-geom.md | 78 ++++++++++++++++++++++++ 6 files changed, 211 insertions(+), 7 deletions(-) diff --git a/docs/component/line-string-geom.md b/docs/component/line-string-geom.md index 83b53b1e..77bcd860 100644 --- a/docs/component/line-string-geom.md +++ b/docs/component/line-string-geom.md @@ -12,9 +12,9 @@ import { LineStringGeom } from 'vuelayers' Vue.use(LineStringGeom) ``` - + - + + +## Properties + +### coordinates + +- **Type**: `number[][]` + +An array of [points](https://tools.ietf.org/html/rfc7946#section-3.1.2) in units of the map's [`projection`](/docs/quickstart.md#global-data-projection). diff --git a/docs/component/multi-polygon-geom.md b/docs/component/multi-polygon-geom.md index 4a8d12e1..b9309f61 100644 --- a/docs/component/multi-polygon-geom.md +++ b/docs/component/multi-polygon-geom.md @@ -1,5 +1,9 @@ # vl-geom-multi-polygon +> The multiple polygon geometry. + +`vl-geom-multi-polygon` can be used inside a [`vl-feature`](/docs/component/feature.md) to draw multiple polygons at once on the map. + ## ES6 Module ```javascript @@ -7,3 +11,41 @@ import { MultiPolygonGeom } from 'vuelayers' Vue.use(MultiPolygonGeom) ``` + + + + + + +## Properties + +### coordinates + +- **Type**: `number[][][][]` + +An array of [polygons](https://geojson.org/geojson-spec.html#polygon) with coordinates in the map's [`projection`](/docs/quickstart.md#global-data-projection). diff --git a/docs/component/point-geom.md b/docs/component/point-geom.md index 7c5514aa..c382e8e1 100644 --- a/docs/component/point-geom.md +++ b/docs/component/point-geom.md @@ -1,5 +1,9 @@ # vl-geom-point +> A single point. + +`vl-geom-point` can be used inside a [`vl-feature`](/docs/component/feature.md) to draw a single points. + ## ES6 Module ```javascript @@ -7,3 +11,41 @@ import { PointGeom } from 'vuelayers' Vue.use(PointGeom) ``` + + + + + + +## Properties + +### coordinates + +- **Type**: `number[]` + +This point's coordinates in units of the map's [`projection`](/docs/quickstart.md#global-data-projection). diff --git a/docs/component/polygon-geom.md b/docs/component/polygon-geom.md index 3e80ecfb..78053d9b 100644 --- a/docs/component/polygon-geom.md +++ b/docs/component/polygon-geom.md @@ -1,5 +1,9 @@ # vl-geom-polygon +> A single polygon geometry. + +`vl-geom-polygon` can be used inside a [`vl-feature`](/docs/component/feature.md) to draw a single polygon on the map. The polygon may contain holes in it, check the usage section for more info on this. + ## ES6 Module ```javascript @@ -7,3 +11,77 @@ import { PolygonGeom } from 'vuelayers' Vue.use(PolygonGeom) ``` + +## Usage + +A simple polygon. + + + + + + +In the following example there is a polygon with a hole in it. + + + + + + +## Properties + +### coordinates + +- **Type**: `number[][][]` + +A [polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6) with coordinates in the map's [`projection`](/docs/quickstart.md#global-data-projection).