コード例 #1
0
ファイル: MapView.cs プロジェクト: robert-hickey/OsmSharp
        /// <summary>
        /// Initializes a new instance of the <see cref="OsmSharp.Android.UI.MapLayout"/> class.
        /// </summary>
        /// <param name="context">Context.</param>
        /// <param name="surface">Surface.</param>
        public MapView(Context context, IMapViewSurface surface)
            : base(context)
        {
            _mapView = surface;
            _mapView.Initialize(this);
            _markers = new List<MapMarker> ();

            this.Initialize ();
        }
コード例 #2
0
ファイル: MapView.cs プロジェクト: jboneng/OsmSharp
        /// <summary>
        /// Initializes a new instance of the <see cref="OsmSharp.Android.UI.MapLayout"/> class.
        /// </summary>
        /// <param name="context">Context.</param>
        /// <param name="surface">Surface.</param>
        public MapView(Context context, IMapViewSurface surface)
            : base(context)
        {
            _mapView = surface;
            _mapView.Initialize(this);
            _markers = new List <MapMarker> ();

            this.Initialize();
        }
コード例 #3
0
ファイル: MapView.cs プロジェクト: rolo2012/ui
        private MapView(Context context, IMapViewSurface surface, IAttributeSet attrs, int defStyle)
            : base(context, attrs, defStyle)
        {
            //It's possible to avoid this copy+paste by making this the sole constructor and
            //having MapView(Context,Surface) defer to this code, provided that we create a stub attribute set.
            //However this would be contrary to the frameworks design intent and methods for doing
            //so are not documented; doing so will invoke undefined behavior.

            _mapView = surface;
            _mapView.Initialize(this);
            _markers  = new List <MapMarker>();
            _controls = new List <MapControl>();

            this.Initialize();
        }
コード例 #4
0
ファイル: MapView.cs プロジェクト: JoeCooper/ui
        private MapView(Context context, IMapViewSurface surface, IAttributeSet attrs, int defStyle)
            : base(context, attrs, defStyle)
        {
            //It's possible to avoid this copy+paste by making this the sole constructor and
            //having MapView(Context,Surface) defer to this code, provided that we create a stub attribute set.
            //However this would be contrary to the frameworks design intent and methods for doing
            //so are not documented; doing so will invoke undefined behavior.

            _mapView = surface;
            _mapView.Initialize(this);
            _markers = new List<MapMarker>();
            _controls = new List<MapControl>();

            this.Initialize();
        }