Fixed reference to openlayers

Fixed tests
This commit is contained in:
Jorge Rocha Gualtieri
2018-02-26 21:36:26 -03:00
parent a506bd0879
commit 7738ba0376
3 changed files with 6 additions and 3 deletions

View File

@@ -3,6 +3,8 @@
// Definitions by: Stephane Alie <https://github.com/StephaneAlie>, Jorge Rocha Gualtieri <https://github.com/jrocha>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="openlayers" />
declare namespace jsts {
export var version: string;

View File

@@ -15,8 +15,8 @@ var ls: jsts.geom.LineString = new jsts.geom.LineString([c]);
var p: jsts.geom.Point = new jsts.geom.Point(c);
var poly: jsts.geom.Polygon = new jsts.geom.Polygon(lr);
var precisionModel = new jsts.geom.PrecisionModel();
var factory = new jsts.geom.GeometryFactory(this.precisionModel);
var wktWriter = new jsts.io.WKTWriter(this.factory);
var factory = new jsts.geom.GeometryFactory(precisionModel);
var wktWriter = new jsts.io.WKTWriter(factory);
str = jsts.version;

View File

@@ -2,7 +2,8 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,