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);
        }
Esempio n. 2
0
 protected Paint GetPaint(Feature feature)
 {
     return LinePaint;
 }
Esempio n. 3
0
 protected override bool CanDraw(Feature feature)
 {
     return feature.Geometry.GeometryType == GeometryType.LineString;
 }
Esempio n. 4
0
 public virtual Drawable GetMarker(Feature feature, AssetManager assetManager)
 {
     SetState(Drawable, 0);
     return Drawable;
 }
Esempio n. 5
0
 protected override bool CanDraw(Feature feature)
 {
     return feature.Geometry.GeometryType == GeometryType.Point;
 }
Esempio n. 6
0
        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);
            }
        }
Esempio n. 7
0
 protected abstract bool CanDraw(Feature feature);
 public static GeoFeature ConvertFeature(Feature feature)
 {
     var geom = MapQuestGeometryConverter.Convert(feature.Geometry);
     var gf = new GeoFeature(geom, feature.Geometry.GeometryType, feature.Attributes);
     return gf;
 }
 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;
 }
Esempio n. 10
0
 protected override bool CanDraw(Feature feature)
 {
     // TODO: add some other condition
     return feature.ColumnValues != null && feature.ColumnValues.Count > 0;
 }