While upgrading HERE Maps API for Javascript to 3.1 version within this I am drawing polygon by connecting polylines
I have replaced H.geo.Strip
with H.geo.LineString
var point = _this.map.screenToGeo(e.currentPointer.viewportX, e.currentPointer.viewportY);
var strip = new H.geo.LineString(_this.growingStrip.getLatLngAltArray().concat(point.lat, point.lng, point.alt));
_this.growingShape.setGeometry(strip);
Also replaced setStrip
with setGeometry
but getting error:
Uncaught InvalidArgumentError: H.map.Polygon#setGeometry (Argument #0 LINESTRING (-74.58221773042507 40.50631688766448,-74.5725439612637 40.50650019704824,-74.60575039389293 40.50943486497609))