Add wrapX override support for ol.source.Cluster
It was not possible to override the wrapX option for the cluster source. This commit adds that functionality.
This commit is contained in:
+14
-5
@@ -3684,7 +3684,8 @@ olx.source.BingMapsOptions.prototype.wrapX;
|
|||||||
* format: (ol.format.Feature|undefined),
|
* format: (ol.format.Feature|undefined),
|
||||||
* logo: (string|undefined),
|
* logo: (string|undefined),
|
||||||
* projection: ol.proj.ProjectionLike,
|
* projection: ol.proj.ProjectionLike,
|
||||||
* source: ol.source.Vector}}
|
* source: ol.source.Vector,
|
||||||
|
* wrapX: (boolean|undefined)}}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
olx.source.ClusterOptions;
|
olx.source.ClusterOptions;
|
||||||
@@ -3746,6 +3747,14 @@ olx.source.ClusterOptions.prototype.projection;
|
|||||||
olx.source.ClusterOptions.prototype.source;
|
olx.source.ClusterOptions.prototype.source;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WrapX. Default is true
|
||||||
|
* @type {boolean|undefined}
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
olx.source.ClusterOptions.prototype.wrapX;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{preemptive: (boolean|undefined),
|
* @typedef {{preemptive: (boolean|undefined),
|
||||||
* url: string}}
|
* url: string}}
|
||||||
@@ -5165,10 +5174,10 @@ olx.source.VectorOptions.prototype.strategy;
|
|||||||
* other loading strategies.
|
* other loading strategies.
|
||||||
* Requires `format` to be set as well.
|
* Requires `format` to be set as well.
|
||||||
* When default XHR feature loader is provided, the features will
|
* When default XHR feature loader is provided, the features will
|
||||||
* be transformed from the data projection to the view projection
|
* be transformed from the data projection to the view projection
|
||||||
* during parsing. If your remote data source does not advertise its projection
|
* during parsing. If your remote data source does not advertise its projection
|
||||||
* properly, this transformation will be incorrect. For some formats, the
|
* properly, this transformation will be incorrect. For some formats, the
|
||||||
* default projection (usually EPSG:4326) can be overridden by setting the
|
* default projection (usually EPSG:4326) can be overridden by setting the
|
||||||
* defaultDataProjection constructor option on the format.
|
* defaultDataProjection constructor option on the format.
|
||||||
* @type {string|ol.FeatureUrlFunction|undefined}
|
* @type {string|ol.FeatureUrlFunction|undefined}
|
||||||
* @api
|
* @api
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ ol.source.Cluster = function(options) {
|
|||||||
attributions: options.attributions,
|
attributions: options.attributions,
|
||||||
extent: options.extent,
|
extent: options.extent,
|
||||||
logo: options.logo,
|
logo: options.logo,
|
||||||
projection: options.projection
|
projection: options.projection,
|
||||||
|
wrapX: options.wrapX
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user