I am upgrading here maps to version 3.1, trying draw a draggable polygon. I have replaced a few methods and now working on replacing H.geo.strip() with H.geo.lineString(). However, When I try to insert 1st point into the line string in like this -
_this.growingStrip = new H.geo.LineString();
_this.growingStrip.pushPoint(_this.map.screenToGeo(e.currentPointer.viewportX, e.currentPointer.viewportY));
Here is what gets pushed in _this.growingStrip -
{
"X":[]
,"a":0
}
But it was different when I was using H.geo.strip() as follow -
_this.growingStrip = new H.geo.Strip();
_this.growingStrip.pushPoint(_this.map.screenToGeo(e.currentPointer.viewportX, e.currentPointer.viewportY));
This was pushing a following object -
{"a":null,"b":[63.628684238260696,55.35862348973751,0,53.22838240102656,70.12424848973751,0],"c":0}
I have really tried hard to wrap my head around it but no luck. Any help is appreciated. TIA