pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <legend id='4LAUG'><style id='4LAUG'><dir id='4LAUG'><q id='4LAUG'></q></dir></style></legend>

    <tfoot id='4LAUG'></tfoot>
  1. <i id='4LAUG'><tr id='4LAUG'><dt id='4LAUG'><q id='4LAUG'><span id='4LAUG'><b id='4LAUG'><form id='4LAUG'><ins id='4LAUG'></ins><ul id='4LAUG'></ul><sub id='4LAUG'></sub></form><legend id='4LAUG'></legend><bdo id='4LAUG'><pre id='4LAUG'><center id='4LAUG'></center></pre></bdo></b><th id='4LAUG'></th></span></q></dt></tr></i><div class="d3vvxdx" id='4LAUG'><tfoot id='4LAUG'></tfoot><dl id='4LAUG'><fieldset id='4LAUG'></fieldset></dl></div>

    <small id='4LAUG'></small><noframes id='4LAUG'>

    • <bdo id='4LAUG'></bdo><ul id='4LAUG'></ul>

      使用 EPSG:25832 投影在 Leaflet 中垂直對齊 TMS 瓷磚

      Vertical alignment of TMS tiles in Leaflet using EPSG:25832 projection(使用 EPSG:25832 投影在 Leaflet 中垂直對齊 TMS 瓷磚)
      <legend id='5zLiM'><style id='5zLiM'><dir id='5zLiM'><q id='5zLiM'></q></dir></style></legend>

          • <bdo id='5zLiM'></bdo><ul id='5zLiM'></ul>
              <tbody id='5zLiM'></tbody>
          • <i id='5zLiM'><tr id='5zLiM'><dt id='5zLiM'><q id='5zLiM'><span id='5zLiM'><b id='5zLiM'><form id='5zLiM'><ins id='5zLiM'></ins><ul id='5zLiM'></ul><sub id='5zLiM'></sub></form><legend id='5zLiM'></legend><bdo id='5zLiM'><pre id='5zLiM'><center id='5zLiM'></center></pre></bdo></b><th id='5zLiM'></th></span></q></dt></tr></i><div class="5pj7t77" id='5zLiM'><tfoot id='5zLiM'></tfoot><dl id='5zLiM'><fieldset id='5zLiM'></fieldset></dl></div>

            <small id='5zLiM'></small><noframes id='5zLiM'>

                <tfoot id='5zLiM'></tfoot>
              1. 本文介紹了使用 EPSG:25832 投影在 Leaflet 中垂直對齊 TMS 瓷磚的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在使用帶有 Proj4Leaflet 的 Leaflet 來處理 25832 中的圖塊.該應用程序非常簡單:我正在嘗試將 EPSG:25832 中的圖塊疊加到全尺寸底圖上.我已經從 tilemap 元信息中復制了各個分辨率和來源.我面臨的問題是地圖沒有對齊,一旦我放大圖塊,就沒有按正確的順序放置.我很感激這里的任何支持(順便說一下,

                解決方案

                這歸結為 TMS 瓦片是倒置的(向北時它會變高,而默認的 TileLayers 會在向南時 Y 坐標變大).

                看看 處理此特定功能的傳單代碼將闡明該問題:

                 if (this._map && !this._map.options.crs.infinite) {var reverseY = this._globalTileRange.max.y - coords.y;如果(this.options.tms){數據['y'] = 倒置 Y;}數據['-y'] = 倒置 Y;}

                在此處計算圖塊的正確 Y 坐標有兩點至關重要:

                • CRS 必須是有限的(它必須有邊界)
                • 必須有一個有限的全局圖塊范圍(在 Leaflet 中為 最終由 CRS 邊界定義,而不是 TileLayer 邊界)

                長話短說,您的 CRS 應該用已知的界限來定義.對于這種特殊情況,請從 TMS 功能文檔中獲取信息...

                ...在定義Leaflet CRS時變成了一個L.Bounds定義,比如...

                //定義 CRSvar rs25832 = 新 L.Proj.CRS('EPSG:25832',proj4rs25832def,{來源:[273211.2532533697, 6111822.37943825],決議:決議,界限:[[273211.2532533697, 5200000],[961083.6232988155, 6111822.37943825]]});

                東西應該可以正常工作(無需將 CRS 傳遞給 tilelayer,因為它們都會使用地圖),如 工作示例.

                I am using Leaflet with Proj4Leaflet to work with tiles in 25832. The application is fairly simple: I am trying to overlay tiles in EPSG:25832 onto a omniscale basemap. I have copied the individual resolutions and origin from the tilemap meta information. The problem I am facing is that the map is not aligned and once I zoom in the tiles are not placed in the correct order. I'd appreciate any kind of support here (by the way, this is a working example which is using openlayers).

                I guess I am doing something wrong here:

                // Set resolutions
                var resolutions = [156367.7919628329,78183.89598141646,39091.94799070823,19545.973995354114,9772.986997677057,4886.4934988385285,2443.2467494192642,1221.6233747096321,610.8116873548161,305.40584367740803,152.70292183870401,76.35146091935201,38.175730459676004,19.087865229838002,9.543932614919001,4.7719663074595005,2.3859831537297502,1.1929915768648751];
                
                // Define CRS
                var rs25832 = new L.Proj.CRS(
                    'EPSG:25832',
                    proj4rs25832def, 
                    {
                        origin: [ 273211.2532533697, 6111822.37943825 ],
                        resolutions: resolutions
                    }
                );
                

                ...using the tiles information from https://mapproxy.bba.atenekom.eu/tms/1.0.0/privat_alle_50_mbit/germany .

                Afterwards I add a tile layer

                var url = 'https://mapproxy.bba.atenekom.eu/tms/1.0.0/privat_alle_50_mbit/germany/{z}/{x}/{y}.png';  
                
                var tileLayer = L.tileLayer(
                    url, 
                    {
                        tms: true,
                        crs: rs25832,
                        continuousWorld: true,
                        maxZoom: resolutions.length
                    }
                );
                

                And add them to the map..

                // Setup map
                var map = L.map('map', {
                    crs: rs25832,
                    center: [ 50.8805, 7.3389 ],
                    zoom:5,
                    maxZoom: resolutions.length,
                    layers: [ baseWms, tileLayer ]
                });
                

                The bare minimum of code can be found here: https://jsfiddle.net/6gcam7w5/8/

                解決方案

                This boils down to how the Y coordinate of TMS tiles is inverted (it becomes higher when going north, as opposed to default TileLayers, in which the Y coordinate becomes larger when going south).

                Having a look on the Leaflet code that takes care of this specific feature will shed some light on the issue:

                    if (this._map && !this._map.options.crs.infinite) {
                        var invertedY = this._globalTileRange.max.y - coords.y;
                        if (this.options.tms) {
                            data['y'] = invertedY;
                        }
                        data['-y'] = invertedY;
                    }
                

                There are two things critical to calculating the right Y coordinate for your tiles here:

                • The CRS must be finite (it must have bounds)
                • There must be a finite global tile range (which in Leaflet is ultimately defined by the CRS bounds and not the TileLayer bounds)

                Long story short, your CRS should be defined with known bounds. For this particular case, taking information from the TMS capabilities document...

                <BoundingBox minx="273211.2532533697" miny="5200000.0" maxx="961083.6232988155" maxy="6111822.37943825"/>
                

                ...and turned into a L.Bounds definition when defining the Leaflet CRS, like...

                // Define CRS
                var rs25832 = new L.Proj.CRS(
                    'EPSG:25832',
                    proj4rs25832def, 
                    {
                        origin: [ 273211.2532533697, 6111822.37943825 ],
                        resolutions: resolutions,
                        bounds: [[273211.2532533697, 5200000],[961083.6232988155, 6111822.37943825]]
                    }
                );
                

                Stuff should just work (with no need to pass the CRS to the tilelayers, since they will all use the map's), as in this working example.

                這篇關于使用 EPSG:25832 投影在 Leaflet 中垂直對齊 TMS 瓷磚的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Check if a polygon point is inside another in leaflet(檢查一個多邊形點是否在傳單中的另一個內部)
                Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標記群集圖標顏色,繼承其余默認 CSS 屬性)
                Trigger click on leaflet marker(觸發點擊傳單標記)
                How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認加載磁貼顏色?)
                Add external geojson to leaflet layer(將外部geojson添加到傳單層)
                Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)
                <legend id='eDGDB'><style id='eDGDB'><dir id='eDGDB'><q id='eDGDB'></q></dir></style></legend>

                  1. <tfoot id='eDGDB'></tfoot>

                      <i id='eDGDB'><tr id='eDGDB'><dt id='eDGDB'><q id='eDGDB'><span id='eDGDB'><b id='eDGDB'><form id='eDGDB'><ins id='eDGDB'></ins><ul id='eDGDB'></ul><sub id='eDGDB'></sub></form><legend id='eDGDB'></legend><bdo id='eDGDB'><pre id='eDGDB'><center id='eDGDB'></center></pre></bdo></b><th id='eDGDB'></th></span></q></dt></tr></i><div class="d5z7b7l" id='eDGDB'><tfoot id='eDGDB'></tfoot><dl id='eDGDB'><fieldset id='eDGDB'></fieldset></dl></div>
                        <tbody id='eDGDB'></tbody>
                        • <bdo id='eDGDB'></bdo><ul id='eDGDB'></ul>

                          <small id='eDGDB'></small><noframes id='eDGDB'>

                          主站蜘蛛池模板: 抖音短视频运营_企业网站建设_网络推广_全网自媒体营销-东莞市凌天信息科技有限公司 | NMRV减速机|铝合金减速机|蜗轮蜗杆减速机|NMRV减速机厂家-东莞市台机减速机有限公司 | 杭州公司变更法人-代理记账收费价格-公司注销代办_杭州福道财务管理咨询有限公司 | 河南中专学校|职高|技校招生-河南中职中专网 | 滑板场地施工_极限运动场地设计_滑板公园建造_盐城天人极限运动场地建设有限公司 | 铝合金重力铸造_铝合金翻砂铸造_铝铸件厂家-东莞市铝得旺五金制品有限公司 | 雷达液位计_超声波风速风向仪_雨量传感器_辐射传感器-山东风途物联网 | 无压烧结银_有压烧结银_导电银胶_导电油墨_导电胶-善仁(浙江)新材料 | 科昊仪器超纯水机系统-可成气相液氮罐-美菱超低温冰箱-西安昊兴生物科技有限公司 | 智能门锁电机_智能门锁离合器_智能门锁电机厂家-温州劲力智能科技有限公司 | 微型驱动系统解决方案-深圳市兆威机电股份有限公司 | 我爱古诗词_古诗词名句赏析学习平台 | 气动调节阀,电动调节阀,自力式压力调节阀,切断阀「厂家」-浙江利沃夫自控阀门 | 骨密度检测仪_骨密度分析仪_骨密度仪_动脉硬化检测仪专业生产厂家【品源医疗】 | 纸塑分离机-纸塑分离清洗机设备-压力筛-碎浆机厂家金双联环保 | 杭州ROHS检测仪-XRF测试仪价格-百科 | 柴油机_柴油发电机_厂家_品牌-江苏卡得城仕发动机有限公司 | 房间温控器|LonWorks|海思| PCB厂|线路板厂|深圳线路板厂|软硬结合板厂|电路板生产厂家|线路板|深圳电路板厂家|铝基板厂家|深联电路-专业生产PCB研发制造 | 欧美日韩国产一区二区三区不_久久久久国产精品无码不卡_亚洲欧洲美洲无码精品AV_精品一区美女视频_日韩黄色性爱一级视频_日本五十路人妻斩_国产99视频免费精品是看4_亚洲中文字幕无码一二三四区_国产小萍萍挤奶喷奶水_亚洲另类精品无码在线一区 | 泰兴市热钻机械有限公司-热熔钻孔机-数控热熔钻-热熔钻孔攻牙一体机 | 快干水泥|桥梁伸缩缝止水胶|伸缩缝装置生产厂家-广东广航交通科技有限公司 | 衬四氟_衬氟储罐_四氟储罐-无锡市氟瑞特防腐科技有限公司 | 粤丰硕水性环氧地坪漆-防静电自流平厂家-环保地坪涂料代理 | 专注提供国外机电设备及配件-工业控制领域一站式服务商-深圳市华联欧国际贸易有限公司 | 12cr1mov无缝钢管切割-15crmog无缝钢管切割-40cr无缝钢管切割-42crmo无缝钢管切割-Q345B无缝钢管切割-45#无缝钢管切割 - 聊城宽达钢管有限公司 | 办公室家具公司_办公家具品牌厂家_森拉堡办公家具【官网】 | 软文世界-软文推广-软文营销-新闻稿发布-一站式软文自助发稿平台 | 耙式干燥机_真空耙式干燥机厂家-无锡鹏茂化工装备有限公司 | 油罐车_加油机_加油卷盘_加油机卷盘_罐车人孔盖_各类球阀_海底阀等车用配件厂家-湖北华特专用设备有限公司 | 船用泵,船用离心泵,船用喷射泵,泰州隆华船舶设备有限公司 | 模具ERP_模具管理系统_模具mes_模具进度管理_东莞市精纬软件有限公司 | 锂电池生产厂家-电动自行车航模无人机锂电池定制-世豹新能源 | 乐考网-银行从业_基金从业资格考试_初级/中级会计报名时间_中级经济师 | 流水线电子称-钰恒-上下限报警电子秤-上海宿衡实业有限公司 | 医用空气消毒机-医用管路消毒机-工作服消毒柜-成都三康王 | 自动螺旋上料机厂家价格-斗式提升机定制-螺杆绞龙输送机-杰凯上料机 | 网优资讯-为循环资源、大宗商品、工业服务提供资讯与行情分析的数据服务平台 | 台湾HIWIN上银直线模组|导轨滑块|TBI滚珠丝杆丝杠-深圳汉工 | 橡胶膜片,夹布膜片,橡胶隔膜密封,泵阀设备密封膜片-衡水汉丰橡塑科技公司网站 | 吊篮式|移动式冷热冲击试验箱-二槽冷热冲击试验箱-广东科宝 |