diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 7eec3c73..6f7ef3d4 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -49,7 +49,7 @@ * Style - * [vl-style-box](/docs/component/style-box.md) + * [vl-style](/docs/component/style.md) * [vl-style-circle](/docs/component/circle-style.md) * [vl-style-fill](/docs/component/fill-style.md) * [vl-style-func](/docs/component/func-style.md) diff --git a/docs/component/circle-style.md b/docs/component/circle-style.md index cb455b7a..c74e6d90 100644 --- a/docs/component/circle-style.md +++ b/docs/component/circle-style.md @@ -2,14 +2,14 @@ > Styles points as circles. -Use it inside [`vl-style-box`](/docs/component/style-box.md) to style points as circles. +Use it inside [`vl-style`](/docs/component/style.md) to style points as circles. ## ES6 Module ```javascript -import { CircleStyle } from 'vuelayers' +import { Style } from 'vuelayers' -Vue.use(CircleStyle) +Vue.use(Style) ``` ## Usage @@ -29,18 +29,18 @@ Styling a feature inside a vector layer. - - - - - - - - - - + + + + + + + + + + + + @@ -76,12 +76,12 @@ Styling the whole layer - + - + diff --git a/docs/component/fill-style.md b/docs/component/fill-style.md index 8a133e02..504b6548 100644 --- a/docs/component/fill-style.md +++ b/docs/component/fill-style.md @@ -2,14 +2,14 @@ > Color the filling of a polygon or mulipolygon in a vector layer -Use it inside [`vl-style-box`](/docs/component/style-box.md) along with [`vl-style-stroke`](/docs/component/stroke-style.md) to style polygons and other shapes with area like circles. +Use it inside [`vl-style`](/docs/component/style.md) along with [`vl-style-stroke`](/docs/component/stroke-style.md) to style polygons and other shapes with area like circles. ## ES6 Module ```javascript -import { FillStyle } from 'vuelayers' +import { Style } from 'vuelayers' -Vue.use(FillStyle) +Vue.use(Style) ``` ## Usage @@ -29,18 +29,18 @@ Styling points like circles with filling. - - - - - - - - - - + + + + + + + + + + + + @@ -76,10 +76,10 @@ Styling all features with filling in a layer. - + - + diff --git a/docs/component/image-layer.md b/docs/component/image-layer.md index ea69be6f..15b15a15 100644 --- a/docs/component/image-layer.md +++ b/docs/component/image-layer.md @@ -43,13 +43,13 @@ Taken from OpenLayers [Static Image Example](http://openlayers.org/en/latest/exa // create custom projection for image // NOTE: VueLayers.olExt available only in UMD build // in ES build it should be imported explicitly from 'vuelayers/lib/ol-ext' - let customProj = VueLayers.olExt.createProj({ + let customProj = new ol.proj.Projection({ code: 'xkcd-image', units: 'pixels', extent, }) // add it to the list of known projections - VueLayers.olExt.addProj(customProj) + ol.proj.addProjection(customProj) export default { data () { diff --git a/docs/component/stroke-style.md b/docs/component/stroke-style.md index 93b3556f..70220a08 100644 --- a/docs/component/stroke-style.md +++ b/docs/component/stroke-style.md @@ -2,14 +2,14 @@ > Style the stroke of a line or polygon. -Use it inside [`vl-style-box`](/docs/component/style-box.md) to style lines and polygons or inside [`vl-style-circle`](/docs/component/circle-style.md) to style circles. +Use it inside [`vl-style`](/docs/component/style.md) to style lines and polygons or inside [`vl-style-circle`](/docs/component/circle-style.md) to style circles. ## ES6 Module ```javascript -import { StrokeStyle } from 'vuelayers' +import { Style } from 'vuelayers' -Vue.use(StrokeStyle) +Vue.use(Style) ``` ## Usage @@ -29,14 +29,14 @@ Vue.use(StrokeStyle) - + - + :line-dash="[3, 5, 30, 5]"> + + diff --git a/docs/component/style-box.md b/docs/component/style.md similarity index 96% rename from docs/component/style-box.md rename to docs/component/style.md index f4df35ed..77909995 100644 --- a/docs/component/style-box.md +++ b/docs/component/style.md @@ -1,4 +1,4 @@ -# vl-style-box +# vl-style > A container for a collection of styles @@ -7,9 +7,9 @@ Use it inside [`vl-feature`](/docs/component/feature.md) or [`vl-layer-vector`]( ## ES6 Module ```javascript -import { StyleBox } from 'vuelayers' +import { Style } from 'vuelayers' -Vue.use(StyleBox) +Vue.use(Style) ``` ## Usage @@ -34,12 +34,12 @@ Styling a feature. :coordinates="[12.492442,41.890170]" > - + - + diff --git a/docs/component/tile-layer.md b/docs/component/tile-layer.md index 015aae2f..99b18bbc 100644 --- a/docs/component/tile-layer.md +++ b/docs/component/tile-layer.md @@ -27,7 +27,7 @@ and with [`vl-source-sputnik`](/docs/component/sputnik-source.md). - + diff --git a/docs/index.html b/docs/index.html index 57c9264c..fbf9c2a0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -21,8 +21,8 @@ - - + +