mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #30720 from BlondeLlama/master
DefinitelyTyped/openlayers: added moveTolerance to mapOptions
This commit is contained in:
@@ -303,7 +303,7 @@ import VectorTile from 'ol/vectortile';
|
||||
import View from 'ol/view';
|
||||
|
||||
// Map
|
||||
const map: ol.Map = new Map(<any> {});
|
||||
const map: ol.Map = new Map({} as any);
|
||||
declare const mapView: View;
|
||||
declare const layerBase: LayerBase;
|
||||
declare const control: ControlControl;
|
||||
@@ -320,6 +320,6 @@ declare const size: ol.Size;
|
||||
declare const position: ol.Pixel;
|
||||
view = map.getView();
|
||||
view.getProjection();
|
||||
view.animate(<any> {});
|
||||
view.calculateExtent(<any> 'size');
|
||||
view.animate({} as any);
|
||||
view.calculateExtent('size' as any);
|
||||
view.centerOn(coordinate, size, position);
|
||||
|
||||
Vendored
+1
@@ -12494,6 +12494,7 @@ export namespace olx {
|
||||
renderer?: (ol.RendererType | Array<(ol.RendererType | string)> | string);
|
||||
target?: (Element | string);
|
||||
view?: ol.View;
|
||||
moveTolerance?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -175,7 +175,7 @@ loadingStrategy = ol.loadingstrategy.tile(tilegrid);
|
||||
// ol.geom.Circle
|
||||
//
|
||||
booleanValue = circle.intersectsExtent(extent);
|
||||
circle = <ol.geom.Circle> circle.transform(projectionLike, projectionLike);
|
||||
circle = circle.transform(projectionLike, projectionLike) as ol.geom.Circle;
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user