add test for Polyline.clip()

This commit is contained in:
Bernd Hacker
2017-06-12 15:39:29 +02:00
parent f30b6af7a8
commit 98faf31f64

View File

@@ -80,3 +80,7 @@ captureBtn.onclick = () => {
};
let icon = new H.map.Icon('svg', { size: 5, crossOrigin: false });
let polyline = new H.map.Polyline(new H.geo.Strip());
let clipArr: Array<Array<number>>;
clipArr = polyline.clip(new H.geo.Rect(5, 5, 5, 5));