android - Google Maps Not showing Navigation option -
i have google maps in android application. problem after have intialized marker specific location, , when try click on marker, navigation option not come instead, zoom view options. happened when imported maps code working project(in getting navigation option). how change zoom view controls navigation controls.
here code.
maps.java
public class maps extends activity { static final latlng college = new latlng(13.1172245 , 77.6341758); private googlemap googlemap; float lat,lon; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.mapsshow); try { if (googlemap == null) { googlemap = ((mapfragment) getfragmentmanager().findfragmentbyid(r.id.map)).getmap(); googlemap.movecamera(cameraupdatefactory.newlatlngzoom(college, 15)); } googlemap.setmaptype(googlemap.map_type_normal); @suppresswarnings("unused") marker tp = googlemap.addmarker(new markeroptions().position(college).title("location,click on arrow below directions")); } catch (exception e) { e.printstacktrace(); } } }
i have got api key etc, maps sucessfully loads, want navigation option instead of zoom view. should change ?
try way , should work:
googlemap.getuisettings().setmaptoolbarenabled(false);
and sure use use latest google map api.
Comments
Post a Comment