public override void FillUnionData(int markersCount, long nativeMarker) { for (int i = unionCounts.Length - 1; i >= 0; i--) { if (markersCount > unionCounts[i]) { GLMapMarkerStyleCollection.SetMarkerStyle(nativeMarker, i); break; } } GLMapMarkerStyleCollection.SetMarkerText(nativeMarker, Convert.ToString(markersCount), new Point(0, 0), textStyle); }
public override void FillData(Java.Lang.Object marker, long nativeMarker) { if (marker is MapPoint) { GLMapMarkerStyleCollection.SetMarkerLocation(nativeMarker, (MapPoint)marker); GLMapMarkerStyleCollection.SetMarkerText(nativeMarker, "Test", new Point(0, 0), textStyle); } else if (marker is GLMapVectorObject) { GLMapVectorObject obj = (GLMapVectorObject)marker; GLMapMarkerStyleCollection.SetMarkerLocationFromVectorObject(nativeMarker, obj); string name = obj.ValueForKey("name"); if (!string.ReferenceEquals(name, null)) { GLMapMarkerStyleCollection.SetMarkerText(nativeMarker, name, new Point(0, 15 / 2), textStyle); } } GLMapMarkerStyleCollection.SetMarkerStyle(nativeMarker, 0); }