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:
aba
2016-02-05 19:47:36 +01:00
parent de36bab90b
commit dff6dc8250
2 changed files with 38 additions and 15 deletions
+23
View File
@@ -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"
})