From 98faf31f6471a6da8a01d889d1ec496d02e704ae Mon Sep 17 00:00:00 2001 From: Bernd Hacker Date: Mon, 12 Jun 2017 15:39:29 +0200 Subject: [PATCH] add test for Polyline.clip() --- types/heremaps/heremaps-tests.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/heremaps/heremaps-tests.ts b/types/heremaps/heremaps-tests.ts index 31d722f042..216040c68a 100644 --- a/types/heremaps/heremaps-tests.ts +++ b/types/heremaps/heremaps-tests.ts @@ -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>; +clipArr = polyline.clip(new H.geo.Rect(5, 5, 5, 5));