Merge pull request #30720 from BlondeLlama/master

DefinitelyTyped/openlayers: added moveTolerance to mapOptions
This commit is contained in:
Mine Starks
2018-11-28 20:07:03 -08:00
committed by GitHub
3 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -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);
+1
View File
@@ -12494,6 +12494,7 @@ export namespace olx {
renderer?: (ol.RendererType | Array<(ol.RendererType | string)> | string);
target?: (Element | string);
view?: ol.View;
moveTolerance?: number;
}
/**
+1 -1
View File
@@ -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;
//
//