How to update existing Polyline in android mapbox? -


in map when click marker poly line , distance. again when click marker in map new line when click 2nd marker need update poly line, no need add multiple polylines.

you can use add polyline :

polyline mpolyline = this.mmap.addpolyline(new polylineoptions().....); 

and remove call :

mpolyline.remove(); 

hope helps!!!


Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -