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
Post a Comment