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'>

                          主站蜘蛛池模板: PU树脂_水性聚氨酯树脂_聚氨酯固化剂_聚氨酯树脂厂家_宝景化工 | 铝镁锰板厂家_进口钛锌板_铝镁锰波浪板_铝镁锰墙面板_铝镁锰屋面-杭州军晟金属建筑材料 | 氮化镓芯片-碳化硅二极管 - 华燊泰半导体 | 基业箱_环网柜_配电柜厂家_开关柜厂家_开关断路器-东莞基业电气设备有限公司 | 振动时效_振动时效仪_超声波冲击设备-济南驰奥机电设备有限公司 北京宣传片拍摄_产品宣传片拍摄_宣传片制作公司-现像传媒 | 球磨机,节能球磨机价格,水泥球磨机厂家,粉煤灰球磨机-吉宏机械制造有限公司 | 澳门精准正版免费大全,2025新澳门全年免费,新澳天天开奖免费资料大全最新,新澳2025今晚开奖资料,新澳马今天最快最新图库-首页-东莞市傲马网络科技有限公司 | 精密模具-双色注塑模具加工-深圳铭洋宇通 | 安规_综合测试仪,电器安全性能综合测试仪,低压母线槽安规综合测试仪-青岛合众电子有限公司 | 奇酷教育-Python培训|UI培训|WEB大前端培训|Unity3D培训|HTML5培训|人工智能培训|JAVA开发的教育品牌 | 冷凝锅炉_燃气锅炉_工业燃气锅炉改造厂家-北京科诺锅炉 | NBA直播_NBA直播免费观看直播在线_NBA直播免费高清无插件在线观看-24直播网 | 营养师网,营养师考试时间,报名入口—网站首页 | 数控车床-立式加工中心-多功能机床-小型车床-山东临沂金星机床有限公司 | 捆扎机_气动捆扎机_钢带捆扎机-沈阳海鹞气动钢带捆扎机公司 | 合肥制氮机_合肥空压机厂家_安徽真空泵-凯圣精机 | 搬运设备、起重设备、吊装设备—『龙海起重成套设备』 | 无线对讲-无线对讲系统解决方案-重庆畅博通信 | 智能化的检漏仪_气密性测试仪_流量测试仪_流阻阻力测试仪_呼吸管快速检漏仪_连接器防水测试仪_车载镜头测试仪_奥图自动化科技 | 定量包装机,颗粒定量包装机,粉剂定量包装机,背封颗粒包装机,定量灌装机-上海铸衡电子科技有限公司 | 曙光腾达官网-天津脚手架租赁-木板架出租-移动门式脚手架租赁「免费搭设」 | 螺旋绞龙叶片,螺旋输送机厂家,山东螺旋输送机-淄博长江机械制造有限公司 | 耐力板-PC阳光板-PC板-PC耐力板 - 嘉兴赢创实业有限公司 | 砂尘试验箱_淋雨试验房_冰水冲击试验箱_IPX9K淋雨试验箱_广州岳信试验设备有限公司 | 工作服定制,工作服定做,工作服厂家-卡珀职业服装(苏州)有限公司 | 玉米深加工设备|玉米加工机械|玉米加工设备|玉米深加工机械-河南成立粮油机械有限公司 | 空气净化器租赁,空气净化器出租,全国直租_奥司汀净化器租赁 | 即用型透析袋,透析袋夹子,药敏纸片,L型涂布棒-上海桥星贸易有限公司 | R507制冷剂,R22/R152a制冷剂厂家-浙江瀚凯制冷科技有限公司 | 哈尔滨发电机,黑龙江柴油发电机组-北方星光 | 国资灵活用工平台_全国灵活用工平台前十名-灵活用工结算小帮手 | 新型游乐设备,360大摆锤游乐设备「诚信厂家」-山东方鑫游乐设备 新能源汽车电池软连接,铜铝复合膜柔性连接,电力母排-容发智能科技(无锡)有限公司 | 沈阳网站建设_沈阳网站制作_沈阳网页设计-做网站就找示剑新零售 沈阳缠绕膜价格_沈阳拉伸膜厂家_沈阳缠绕膜厂家直销 | 防渗土工膜|污水处理防渗膜|垃圾填埋场防渗膜-泰安佳路通工程材料有限公司 | 高压互感器,电流互感器,电压互感器-上海鄂互电气科技有限公司 | 耐高温硅酸铝板-硅酸铝棉保温施工|亿欧建设工程 | 拉曼光谱仪_便携式|激光|显微共焦拉曼光谱仪-北京卓立汉光仪器有限公司 | 活性氧化铝|无烟煤滤料|活性氧化铝厂家|锰砂滤料厂家-河南新泰净水材料有限公司 | 安徽泰科检测科技有限公司【官方网站】 | 百方网-百方电气网,电工电气行业专业的B2B电子商务平台 | 深圳天际源广告-形象堆头,企业文化墙,喷绘,门头招牌设计制作专家 |