예제 #1
0
 public MapControlFactoryOSMOnline()
     : base()
 {
     _bitmapStore    = new BitmapStoreOSM();
     _searchProvider = new SearchProviderOSM();
     _tileGenerator  = new TileGeneratorOSM(this);
     _tilePanel      = new TilePanel(this);
 }
예제 #2
0
 public MapControlFactoryOSMOnline()
     : base()
 {
     _bitmapStore = new BitmapStoreOSM();
     _searchProvider = new SearchProviderOSM();
     _tileGenerator = new TileGeneratorOSM(this);
     _tilePanel = new TilePanel(this);
 }
예제 #3
0
 public MapControlFactoryGoogle()
     : base()
 {
     _bitmapStore = new BitmapStoreGoogle();
     _searchProvider = new SearchProviderGoogle();
     _tileGenerator = new TileGeneratorGoogle(this);
     _tilePanel = new TilePanel(this);
     _bitmapStore.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2";
 }
예제 #4
0
 public MapControlFactoryGoogle()
     : base()
 {
     _bitmapStore           = new BitmapStoreGoogle();
     _searchProvider        = new SearchProviderGoogle();
     _tileGenerator         = new TileGeneratorGoogle(this);
     _tilePanel             = new TilePanel(this);
     _bitmapStore.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2";
 }
        public MapControlFactoryOSMOffline()
            : base()
        {
            _mapFilesHandler = new OSMBinMap.MapFilesHandler(this);
            _bitmapStore     = new BitmapStoreOSMOffline(_mapFilesHandler);
            _searchProvider  = new SearchProviderOSM();
            _tileGenerator   = new TileGeneratorOSM(this);
            _tilePanel       = new TilePanel(this);

            OSMBinFilesVisibility = Visibility.Visible;
        }
        public MapControlFactoryOSMOffline()
            : base()
        {
            _mapFilesHandler = new OSMBinMap.MapFilesHandler(this);
            _bitmapStore = new BitmapStoreOSMOffline(_mapFilesHandler);
            _searchProvider = new SearchProviderOSM();
            _tileGenerator = new TileGeneratorOSM(this);
            _tilePanel = new TilePanel(this);

            OSMBinFilesVisibility = Visibility.Visible;
        }
예제 #7
0
 public MapCanvas()
 {
     _mapControlFactory = UIControls.Maps.Control.MapControlFactoryToUse;
     if (_mapControlFactory != null)
     {
         _offsetX   = _mapControlFactory.GetMapOffset(_translate.GetType().GetProperty("X"), this.OnOffsetChanged);
         _offsetY   = _mapControlFactory.GetMapOffset(_translate.GetType().GetProperty("Y"), this.OnOffsetChanged);
         _tilePanel = _mapControlFactory.TilePanel;
         _tilePanel.RenderTransform = _translate;
     }
     this.Background = Brushes.Transparent; // Register all mouse clicks
     this.Children.Add(_cache);
     if (_mapControlFactory != null)
     {
         this.Children.Add(_tilePanel);
     }
     this.ClipToBounds        = true;
     this.Focusable           = true;
     this.FocusVisualStyle    = null;
     this.SnapsToDevicePixels = true;
 }
예제 #8
0
 public MapCanvas()
 {
     _mapControlFactory = UIControls.Maps.Control.MapControlFactoryToUse;
     if (_mapControlFactory != null)
     {
         _offsetX = _mapControlFactory.GetMapOffset(_translate.GetType().GetProperty("X"), this.OnOffsetChanged);
         _offsetY = _mapControlFactory.GetMapOffset(_translate.GetType().GetProperty("Y"), this.OnOffsetChanged);
         _tilePanel = _mapControlFactory.TilePanel;
         _tilePanel.RenderTransform = _translate;
     }
     this.Background = Brushes.Transparent; // Register all mouse clicks
     this.Children.Add(_cache);
     if (_mapControlFactory != null)
     {
         this.Children.Add(_tilePanel);
     }
     this.ClipToBounds = true;
     this.Focusable = true;
     this.FocusVisualStyle = null;
     this.SnapsToDevicePixels = true;
 }