public override void FillData(Java.Lang.Object marker, long nativeMarker) { if (marker is GLMapVectorObject) { GLMapVectorObject obj = (GLMapVectorObject)marker; GLMapMarkerStyleCollection.SetMarkerLocationFromVectorObject(nativeMarker, obj); } GLMapMarkerStyleCollection.SetMarkerStyle(nativeMarker, 0); }
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); }