I am upgrading javascript here maps to version 3.1. While replacing few old methods with new ones, there is one method which is not working in v3.1. The method is
var oldStrip = polygon.getStrip(); //polygon.getStrip() is the old version method
var pntcnt = oldStrip.getPointCount();
When I replaced polygon.getStrip();
with polygon.getGeometry();
and the further code is as it is -
var oldStrip = polygon.getGeometry();
var pntcnt = oldStrip.getPointCount();
i get the following error as - Uncaught TypeError: oldStrip.getPointCount is not a function
Note - The response of polygon.getStrip() is different than that of polygon.getGeometry()
Any help is appreciated, TIA