I use MapBox develop a map application, my server will return some latitude and longitude data,I need to update marker location through latitude and longitude
so my code like this:
override fun updateDroneLocationResult(drone:Drone) {
var latLng = LatLng(drone.latitude, drone.longitude)
droneMaker = map.addMarker(MarkerOptions().position(latLng))
map.updateMarker(droneMaker!!)
}
but the function "updateMarker" is not working, I don't know where's wrong. what should I do?