如何在Xamarin Forms中实现标记聚类(Google地图)

时间:2017-12-12 14:25:30

标签: c# android google-maps xamarin.forms

我试图在Xamarin Forms中实现Android Maps Utils库。我想在android项目的地图上使用marek聚类。我在VS for Mac中发现只有0.5.0版本但是当我想添加一个包时出现错误(不兼容):

Could not install package 'Xamarin.Android.Support.v4 26.0.2'. MonoAndroid, Version = v7.1 ', MonoAndroid, Version = v7.1', but it is compatible with that framework. For more information, contact the package author.

我需要实现ClusterManager

您是否知道如何使用标记聚类?

1 个答案:

答案 0 :(得分:1)

安装originalList.SelectMany(fullList => fullList.ListOfItems) .GroupBy(x => new { x.Name, x.SomeOtherValue}) .Select(g => new { g.Key.Name, g.Key.SomeOtherValue, Count = g.Count()}); nuget软件包时,只能将其安装在Xamarin.Android项目中,如下图所示:

enter image description here