android - Unable to use BubbleIconFactory in Google map utils -


unable use new bubbleiconfactory giving deprecated

dependency gradle build file:

dependencies {     compile 'com.google.maps.android:android-maps-utils:0.4+' }   // want use  bubbleiconfactory bubbleiconfactory = new bubbleiconfactory(this); 

bubbleiconfactory deprecated. can use icongenerator instead:

icongenerator iconfactory = new icongenerator(this);  markeroptions markeroptions = new markeroptions()     .icon(bitmapdescriptorfactory.frombitmap(iconfactory.makeicon("your text here")))     .position(new latlng(40, -4))     .anchor(iconfactory.getanchoru(), iconfactory.getanchorv());  mmap.addmarker(markeroptions); 

here can find official demo activity.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -