-1
對於我的生活,我無法弄清楚如何使用setData()作爲標記。不能使用setData()
我的代碼:
MarkerOptions markerOptions = new MarkerOptions().position(position).title(title).snippet(snippet);
Marker marker = map.addMarker(markerOptions);
marker.setData(data); // This doens't work, simply says cannot resolve.
我有以下的在我的build.gradle:
compile 'com.androidmapsextensions:android-maps-extensions:2.2.0'
compile 'com.google.android.gms:play-services-maps:7.8.0'
compile 'com.google.android.gms:play-services-location:7.8.0'
如何赫克我用使用setData?
見:https://code.google.com/p/android-maps-extensions/ – Hacketo
相關帖子:http://stackoverflow.com/questions/28816471/importing-androidmapsextensions-into-android -studio – Hacketo
@Hacketo問題在於文檔太糟糕了。 –