Example #1
0
        private void WriteToMapFile()
        {
            var startX = (int)_rasterMap.SelectedMapTileArea.X;
            var startY = (int)_rasterMap.SelectedMapTileArea.Y;
            var endX   = (int)(_rasterMap.SelectedMapTileArea.X + _rasterMap.SelectedMapTileArea.Width - 1);
            var endY   = (int)(_rasterMap.SelectedMapTileArea.Y + _rasterMap.SelectedMapTileArea.Height - 1);

            _mapTileWrite = new MapTileWriter.MapTileWriter(startX, startY, endX, endY, _rasterMap.GetZoom(), _rasterMap.GetMapType(),
                                                            _mapTileDownloadManager)
            {
                ZoomLevelSelected = _mapZoomLevelSelected
            };

            _mapTileWrite.SetWritingProgressListener(this);

            _mapTileWrite.WriteMapTileFile();
        }
Example #2
0
        private void WriteToMapFile()
        {
            var startX = (int)_rasterMap.SelectedMapTileArea.X;
            var startY = (int)_rasterMap.SelectedMapTileArea.Y;
            var endX = (int)(_rasterMap.SelectedMapTileArea.X + _rasterMap.SelectedMapTileArea.Width-1);
            var endY = (int)(_rasterMap.SelectedMapTileArea.Y + _rasterMap.SelectedMapTileArea.Height-1);

            _mapTileWrite = new MapTileWriter.MapTileWriter(startX, startY, endX, endY, _rasterMap.GetZoom(), _rasterMap.GetMapType(),
                                                           _mapTileDownloadManager)
                                {ZoomLevelSelected = _mapZoomLevelSelected};

            _mapTileWrite.SetWritingProgressListener(this);

            _mapTileWrite.WriteMapTileFile();
        }