mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
openlayers: Added Cluster constructor options, Layer.setZIndex function and Source constructor
This commit is contained in:
Vendored
+27
@@ -791,6 +791,24 @@ declare namespace olx {
|
||||
*/
|
||||
wrapX?: boolean;
|
||||
}
|
||||
|
||||
interface ClusterOptions extends VectorOptions{
|
||||
|
||||
/**
|
||||
* Minimum distance in pixels between clusters. Default is 20.
|
||||
*/
|
||||
distance?: number;
|
||||
|
||||
extent?: ol.Extent;
|
||||
|
||||
geometryFunction?: any;
|
||||
|
||||
projection?: ol.proj.ProjectionLike;
|
||||
|
||||
source: ol.source.Vector;
|
||||
|
||||
}
|
||||
|
||||
interface WMTSOptions {
|
||||
attributions?: Array<ol.Attribution>;
|
||||
crossOrigin?: string;
|
||||
@@ -4008,6 +4026,11 @@ declare namespace ol {
|
||||
* @argument map.
|
||||
*/
|
||||
setMap(map: ol.Map): void;
|
||||
|
||||
/**
|
||||
* Set Z-index of the layer, which is used to order layers before rendering. The default Z-index is 0.
|
||||
*/
|
||||
setZIndex(zIndex: number): void;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4162,6 +4185,7 @@ declare namespace ol {
|
||||
}
|
||||
|
||||
class Cluster extends Vector {
|
||||
constructor(options: olx.source.ClusterOptions);
|
||||
}
|
||||
|
||||
class Image extends Source {
|
||||
@@ -4198,6 +4222,9 @@ declare namespace ol {
|
||||
}
|
||||
|
||||
class Source extends ol.Object {
|
||||
|
||||
constructor(options: any);
|
||||
|
||||
/**
|
||||
* Get the projection of the source.
|
||||
* @return Projection.
|
||||
|
||||
Reference in New Issue
Block a user