mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Fixing the test :
* There is a new required parameter in OpenLayers. * Explicitly set the type of void functions ! I also add some tests.
This commit is contained in:
@@ -360,10 +360,22 @@ var imageWMS: ol.source.ImageWMS = new ol.source.ImageWMS({
|
||||
// ol.source.TileWMS
|
||||
//
|
||||
var tileWMS: ol.source.TileWMS = new ol.source.TileWMS({
|
||||
params: {},
|
||||
serverType: stringValue,
|
||||
url:stringValue
|
||||
});
|
||||
|
||||
//
|
||||
// ol.source.WMTS
|
||||
//
|
||||
var wmts: ol.source.WMTS = new ol.source.WMTS({
|
||||
tileGrid: new ol.tilegrid.WMTS({}),
|
||||
layer: "",
|
||||
style: "",
|
||||
matrixSet: "",
|
||||
wrapX: true
|
||||
});
|
||||
|
||||
//
|
||||
// ol.animation
|
||||
//
|
||||
@@ -521,3 +533,14 @@ jsonValue = geojsonFormat.writeFeaturesObject(featureArray);
|
||||
jsonValue = geojsonFormat.writeFeaturesObject(featureArray, writeOptions);
|
||||
jsonValue = geojsonFormat.writeGeometryObject(geometry);
|
||||
jsonValue = geojsonFormat.writeGeometryObject(geometry, writeOptions);
|
||||
|
||||
//
|
||||
// ol.interactions
|
||||
//
|
||||
var modify: ol.interaction.Modify = new ol.interaction.Modify({
|
||||
features: new ol.Collection<ol.Feature>(featureArray)
|
||||
});
|
||||
|
||||
var draw: ol.interaction.Draw = new ol.interaction.Draw({
|
||||
type: "Point"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user