Added wrapX option on graticule
This commit is contained in:
@@ -21,7 +21,8 @@ const map = new Map({
|
|||||||
width: 2,
|
width: 2,
|
||||||
lineDash: [0.5, 4]
|
lineDash: [0.5, 4]
|
||||||
}),
|
}),
|
||||||
showLabels: true
|
showLabels: true,
|
||||||
|
wrapX: false
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
target: 'map',
|
target: 'map',
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ const INTERVALS = [
|
|||||||
* ```js
|
* ```js
|
||||||
* [30, 10]
|
* [30, 10]
|
||||||
* ```
|
* ```
|
||||||
|
* @property {boolean} [wrapX=true] Whether to repeat the graticule horizontally.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -388,7 +389,8 @@ class Graticule extends VectorLayer {
|
|||||||
strategy: bbox,
|
strategy: bbox,
|
||||||
features: new Collection(),
|
features: new Collection(),
|
||||||
overlaps: false,
|
overlaps: false,
|
||||||
useSpatialIndex: false
|
useSpatialIndex: false,
|
||||||
|
wrapX: options.wrapX
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user