jjzjj

GoolgeMap

全部标签

java - 更新单项 GoolgeMap Cluster

我正在使用this用于在Android中集群GoogleMap的库。我的问题是如何更新我从昨天开始通过谷歌浏览的单个项目,并且没有任何答案可以解释更新单个项目。我在我的项目中使用websocket,所以我需要更新从websocket收到的项目数据。看看下面我的实现。MyconceptisdoingmClusterManager.remove(item)mClusterManager.add(item)+mClusterManager.cluster()wheneverIreceivedatafromwebsocket.和hasmap在添加到集群时识别循环中的对象,例如:hashmap.

Android 从点数据库设置 GoolgeMap 边界

使用GoogleMapsAndroidAPIv2,我尝试使用LatLngBounds.Builder()和数据库中的点来设置map的边界。我想我已经接近了,但是Activity正在崩溃,因为我认为我没有正确加载积分。我可能只有几行之遥。//setupmapprivatevoidsetUpMap(){//getallcarsfromthedatbasewithgettermethodListK=db.getAllCars();//loopthroughcarsinthedatabasefor(Carcn:K){//addamapmarkerforeachcar,withdescripti