Exemple #1
0
        public TileMapView()
        {
            InitializeComponent();

            tileMap.Position     = new PointLatLng(34.210170, 108.869360);//34.210170, 108.869360
            tileMap.MapType      = MapType.GoogleMapChina;
            tileMap.Manager.Mode = AccessMode.ServerAndCache;
            tileMap.Zoom         = 3;
            CurrentPosition      = tileMap.Position;
            _currentMarker       = new Nova.NovaCare.TileMap.Core.MapMarker(tileMap.Position);
            {
                _currentMarker.Shape  = new PositionMarker(_currentMarker);
                _currentMarker.Offset = new System.Windows.Point(-10.5, -55.5);
                _currentMarker.ZIndex = int.MaxValue;
                tileMap.Markers.Add(_currentMarker);
            }
        }
        public TileMapView()
        {
            InitializeComponent();

            tileMap.Position = new PointLatLng(34.210170, 108.869360);//34.210170, 108.869360
            tileMap.MapType = MapType.GoogleMapChina;
            tileMap.Manager.Mode = AccessMode.ServerAndCache;
            tileMap.Zoom = 3;
            CurrentPosition = tileMap.Position;
            _currentMarker = new Nova.NovaCare.TileMap.Core.MapMarker(tileMap.Position);
            {
                _currentMarker.Shape = new PositionMarker(_currentMarker);
                _currentMarker.Offset = new System.Windows.Point(-10.5, -55.5);
                _currentMarker.ZIndex = int.MaxValue;
                tileMap.Markers.Add(_currentMarker);
            }
        }