I'm reading the documentation of the Annotation Plugin along with the examples, but still can't quite understand how to work with Lines.
I want to create a Line, which need to be updated frequently with additional coordinates. In Google Maps is easy, since we declare a Polyline object, take the LatLng points and set the new one. Basically, I'm not going to use a lot of customization, only width and color of the line.
So do we need to define a layer, or we could just use the options for this case?
And a second question: (From the documentation, I see a lot of examples with FeatureCollection and GeoJSON) Is this the only way of updating the line?