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);
        }
Exemplo n.º 2
0
 protected Paint GetPaint(Feature feature)
 {
     return LinePaint;
 }
Exemplo n.º 3
0
 protected override bool CanDraw(Feature feature)
 {
     return feature.Geometry.GeometryType == GeometryType.LineString;
 }
Exemplo n.º 4
0
 public virtual Drawable GetMarker(Feature feature, AssetManager assetManager)
 {
     SetState(Drawable, 0);
     return Drawable;
 }
Exemplo n.º 5
0
 protected override bool CanDraw(Feature feature)
 {
     return feature.Geometry.GeometryType == GeometryType.Point;
 }
Exemplo 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);
            }
        }
Exemplo 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;
 }
Exemplo n.º 10
0
 protected override bool CanDraw(Feature feature)
 {
     // TODO: add some other condition
     return feature.ColumnValues != null && feature.ColumnValues.Count > 0;
 }