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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -