mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
Merge pull request #21034 from danmana/openlayers
openlayers: make TileWMS projection optional
This commit is contained in:
3
types/openlayers/index.d.ts
vendored
3
types/openlayers/index.d.ts
vendored
@@ -5,6 +5,7 @@
|
||||
// Junyoung Clare Jang <https://github.com/ailrun>
|
||||
// Alexandre Melard <https://github.com/mylen>
|
||||
// Chad Johnston <https://github.com/iamthechad>
|
||||
// Dan Manastireanu <https://github.com/danmana>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// Definitions partially generated using tsd-jsdoc (https://github.com/englercj/tsd-jsdoc)
|
||||
|
||||
@@ -14042,7 +14043,7 @@ declare module olx {
|
||||
hidpi?: boolean;
|
||||
logo?: (string | olx.LogoOptions);
|
||||
tileGrid?: ol.tilegrid.TileGrid;
|
||||
projection: ol.ProjectionLike;
|
||||
projection?: ol.ProjectionLike;
|
||||
reprojectionErrorThreshold?: number;
|
||||
serverType?: (ol.source.wms.ServerType | string);
|
||||
tileLoadFunction?: ol.TileLoadFunctionType;
|
||||
|
||||
@@ -558,6 +558,12 @@ let tileWMS: ol.source.TileWMS = new ol.source.TileWMS({
|
||||
url: stringValue
|
||||
});
|
||||
|
||||
//test without projection
|
||||
tileWMS = new ol.source.TileWMS({
|
||||
params: {},
|
||||
serverType: stringValue,
|
||||
url: stringValue
|
||||
});
|
||||
voidValue = tileWMS.updateParams(tileWMS.getParams());
|
||||
stringValue = tileWMS.getGetFeatureInfoUrl([0, 0], 1, "EPSG:4326", {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user