How to put marker on android map location? -


after find location mcurrentlocation = mlocationclient.getlastlocation(); how can add marker that location?

making marker markeroptions marker = new markeroptions().position(new latlng(latitude, longitude)) requires position object, there way can retrieve position location object? or done in other way?

you can use getlatitude() , getlongitude() of location class return double can pass in new latlong constructor.

sample:

markeroptions marker = new markeroptions().position(new latlng(mcurrentlocation.getlatitude(), mcurrentlocation.getlongitude())) 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -