weixin_39926042
weixin_39926042
2020-12-27 01:59

Tombstoned clusters

Great library, much quicker than the Google one.

Slight problem though - I'm adding ~16,000 markers relatively slowly while moving around the map, zooming etc.

After not very long some of the clusters will remain with a very high number of markers but zooming in all the way it will stay the same. If I tap one of these clusters it fires the method to get the info window: public View getInfoContents(Marker marker) {}

However the marker that is passed is null.

At the very least is there a way to force the map to re-group all the markers to remove these wrong ones?

David

该提问来源于开源项目:mg6maciej/android-maps-extensions

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

6条回答

  • weixin_39624389 weixin_39624389 4月前

    Hey David, This sounds like a bug and it should not happen. Can you provide simple, self-contained example showing this issue, so we can figure out if it's a bug in the library or your code?

    点赞 评论 复制链接分享
  • weixin_39926042 weixin_39926042 4月前

    OK, I'll try and do that.

    On Tue, 24 Mar 2015 22:43 Maciej Górski notifications.com wrote:

    Hey David, This sounds like a bug and it should not happen. Can you provide simple, self-contained example showing this issue, so we can figure out if it's a bug in the library or your code?

    — Reply to this email directly or view it on GitHub https://github.com/mg6maciej/android-maps-extensions/issues/24#issuecomment-85722474 .

    点赞 评论 复制链接分享
  • weixin_39669769 weixin_39669769 4月前

    Hi, I also have this problem. 1. Add 100 markers nearby (for example in the German city). 2. add more markers (nearby) away from rest of 100 markers (for example in Moscow, Russia) 3. Zoom in to the markers in Moscow 4. Zoom in to the markers in German city. 5. Zoom out to the world. 6. Click on Moscow cluster -> NPE.

    点赞 评论 复制链接分享
  • weixin_39624389 weixin_39624389 4月前

    Thanks for detailed steps to reproduce this issue. Could you also share the code? Can be here in comments or in a gist.

    点赞 评论 复制链接分享
  • weixin_39669769 weixin_39669769 4月前

    https://gist.github.com/askarsyzdykov/8e4a00d4bcddd051318c

    点赞 评论 复制链接分享
  • weixin_39624389 weixin_39624389 4月前

    Thanks for the snippet, but I was hoping more for a list of places that's missing to run and reproduce the issue.

    点赞 评论 复制链接分享

相关推荐