コード例 #1
0
        public static MapQuest.Android.Maps.Feature Convert(Feature feature)
        {
            var geom = MapQuestGeometryConverter.Convert(feature.Geometry);
            var gf   = new MapQuest.Android.Maps.Feature((IGeometry)geom, feature.Attributes);

            return(gf);
        }
コード例 #2
0
ファイル: LineStyle.cs プロジェクト: knji/mvvmcross.plugins
 protected Paint GetPaint(Feature feature)
 {
     return LinePaint;
 }
コード例 #3
0
ファイル: LineStyle.cs プロジェクト: knji/mvvmcross.plugins
 protected override bool CanDraw(Feature feature)
 {
     return feature.Geometry.GeometryType == GeometryType.LineString;
 }
コード例 #4
0
ファイル: PointStyle.cs プロジェクト: knji/mvvmcross.plugins
 public virtual Drawable GetMarker(Feature feature, AssetManager assetManager)
 {
     SetState(Drawable, 0);
     return Drawable;
 }
コード例 #5
0
ファイル: PointStyle.cs プロジェクト: knji/mvvmcross.plugins
 protected override bool CanDraw(Feature feature)
 {
     return feature.Geometry.GeometryType == GeometryType.Point;
 }
コード例 #6
0
ファイル: PointStyle.cs プロジェクト: knji/mvvmcross.plugins
        void DrawFeature(Canvas canvas, Feature item, Point point, Drawable marker, bool shadow)
        {
            Bounds.Set(marker.Bounds);
            Bounds.Offset(point.X, point.Y);

            Rect bounds = canvas.ClipBounds;
            if (Rect.Intersects(bounds, bounds))
            {
                DrawAt(canvas, marker, point.X, point.Y, shadow);
            }
        }
コード例 #7
0
ファイル: Style.cs プロジェクト: knji/mvvmcross.plugins
 protected abstract bool CanDraw(Feature feature);
コード例 #8
0
 public static GeoFeature ConvertFeature(Feature feature)
 {
     var geom = MapQuestGeometryConverter.Convert(feature.Geometry);
     var gf = new GeoFeature(geom, feature.Geometry.GeometryType, feature.Attributes);
     return gf;
 }
コード例 #9
0
 public static MapQuest.Android.Maps.Feature Convert(Feature feature)
 {
     var geom = MapQuestGeometryConverter.Convert(feature.Geometry);
     var gf = new MapQuest.Android.Maps.Feature((IGeometry)geom, feature.Attributes);
     return gf;
 }
コード例 #10
0
ファイル: TextStyle.cs プロジェクト: knji/mvvmcross.plugins
 protected override bool CanDraw(Feature feature)
 {
     // TODO: add some other condition
     return feature.ColumnValues != null && feature.ColumnValues.Count > 0;
 }