Ejemplo n.º 1
0
        public ITileSource CreateTileSource()
        {
            ITileSource result = null;

            if (_osmMapType == OsmMapType.Default)
            {
                result= new OsmTileSource();
            }

            return result;
        }
        public override void OnClick()
        {
            //var bruTileAboutBox = new BruTileAboutBox();
            //bruTileAboutBox.ShowDialog(new ArcMapWindow(_application));

            var fileCache = new FileCache(@"c:\aaa\tiles", "png");
            var osmTileSource = new OsmTileSource();
            var mxdoc = (IMxDocument)_application.Document;
            var map = mxdoc.FocusMap;
            var brutileCustomLayer = new BruTileCustomLayer(_application, osmTileSource,fileCache) {Name = "testlayer"};
            map.AddLayer(brutileCustomLayer);
        }