JMap.Geometry.getPolygonFeature
Returns true if the geometry type match the Layer geometry type, else false.
the JMap layer id
the geometry type
if layer not found or layer is a layer group
// returns true if the layer id=3 has "Polygon" features, else falseconst distance = JMap.Geometry.isGeometryTypeValidForLayer(3, "Polygon") Copy
// returns true if the layer id=3 has "Polygon" features, else falseconst distance = JMap.Geometry.isGeometryTypeValidForLayer(3, "Polygon")
JMap.Geometry.getPolygonFeature
Returns true if the geometry type match the Layer geometry type, else false.