コード例 #1
0
        public override void OnClick()
        {
            var url = "https://{s}.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?app_id=xWVIueSv6JL0aJ5xqTxb&app_code=djPZyynKsbTjIUDOBcHZ2g";

            var nokiaConfig = new NokiaConfig("Streets", url);

            var layerType = EnumBruTileLayer.InvertedTMS;
            var mxdoc     = (IMxDocument)_application.Document;
            var map       = mxdoc.FocusMap;

            var brutileLayer = new BruTileLayer(_application, nokiaConfig, layerType)
            {
                Name    = "Nokia HERE - Streets",
                Visible = true
            };

            ((IMapLayers)map).InsertLayer(brutileLayer, true, 0);
        }
コード例 #2
0
        public override void OnClick()
        {
            var url = "http://webst03.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&style=6";

            var nokiaConfig = new NokiaConfig("AutoNavi Satellite", url);

            var layerType = EnumBruTileLayer.InvertedTMS;
            var mxdoc     = (IMxDocument)_application.Document;
            var map       = mxdoc.FocusMap;

            var brutileLayer = new BruTileLayer(_application, nokiaConfig, layerType)
            {
                Name    = "AutoNavi Satellite",
                Visible = true
            };

            ((IMapLayers)map).InsertLayer(brutileLayer, true, 0);
        }