addPolyline method

void addPolyline(
  1. Polyline polyline
)

Adding a new polyline to the map.

Implementation

void addPolyline(Polyline polyline){
  polyline._messagesSender=_sendData;
  polyline._messagesReceiver=_webMessages;
  polyline._startListenOnEvents();
 _polylines._addWithRandom(polyline);
 _sendData('addPolyline',polyline._toMap());
}