removePolygonById method
remove a polygon from the map that can any of Polygon,MapRectanlge,MapCircle by its id
Implementation
void removePolygonById(int id){
if(_polygons.containsKey(id)){
_BasePolygon polygon= _polygons.remove(id)!;
_sendData('removePolygon',{'id':polygon.id});
polygon._id=null;
}
}