久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='j8KO1'><style id='j8KO1'><dir id='j8KO1'><q id='j8KO1'></q></dir></style></legend>

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

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

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

        Leaflet 是非地圖圖像的好工具嗎?

        Is Leaflet a good tool for non-map images?(Leaflet 是非地圖圖像的好工具嗎?)

          <small id='71b97'></small><noframes id='71b97'>

              <tfoot id='71b97'></tfoot>

                <tbody id='71b97'></tbody>
            1. <legend id='71b97'><style id='71b97'><dir id='71b97'><q id='71b97'></q></dir></style></legend>
              • <bdo id='71b97'></bdo><ul id='71b97'></ul>
                  <i id='71b97'><tr id='71b97'><dt id='71b97'><q id='71b97'><span id='71b97'><b id='71b97'><form id='71b97'><ins id='71b97'></ins><ul id='71b97'></ul><sub id='71b97'></sub></form><legend id='71b97'></legend><bdo id='71b97'><pre id='71b97'><center id='71b97'></center></pre></bdo></b><th id='71b97'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='71b97'><tfoot id='71b97'></tfoot><dl id='71b97'><fieldset id='71b97'></fieldset></dl></div>
                • 本文介紹了Leaflet 是非地圖圖像的好工具嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在編寫一個涉及導航技術插圖(平移、縮放、單擊)的網絡應用程序.我認為 Cloudmade Leaflet 是一個很好的工具,只是因為 有人用它來制作 XKCD 1110 平移/縮放,我真的很喜歡它的結果.

                  顯然,我需要平鋪和縮放我的原始技術插圖,但假設這是我已經解決的一個微不足道的問題.然而,查看 Leaflet API,看來我必須轉換我的技術插圖(.ai、.svg 和 .png 文件)轉換為 GeoJSON 等地理標準.這似乎是一個尷尬的提議.

                  誰能推薦 Leaflet 或任何其他工具來導航非地圖圖像?

                  解決方案

                  你可以用 Leaflet 做到這一點.(我自己就是這樣做的.)

                  您必須將像素大小轉換為 latlong(緯度/經度).Leaflet 通過使用 Simple 坐標參考系統"、map.projectmap.unproject 為您提供了一種簡單的方法.p>

                  首先,像這樣構建你的地圖:

                  var map = L.map('map', {最大縮放:20,最小縮放:20,crs:L.CRS.Simple}).setView([0, 0], 20);

                  …然后設置地圖邊界(對于 1024x6145 的圖像):

                  var southWest = map.unproject([0, 6145], map.getMaxZoom());var northEast = map.unproject([1024, 0], map.getMaxZoom());map.setMaxBounds(new L.LatLngBounds(southWest, northEast));

                  此處提供了有關拆分圖像的更多詳細信息,包括一個 Ruby gem,它也可能有用.

                  I am writing a web app that involves navigating technical illustrations (pan, zoom, click). I assume that Cloudmade Leaflet a good tool for this, only because someone used it to make XKCD 1110 pan/zoomable and I really like how it turned out.

                  Obviously, I would need to tile and scale my original technical illustration, but let's say that's a trivial problem that I have solved. Looking at the Leaflet API, however, it appears I would have to convert my tech illustrations (.ai, .svg, and .png files) to a geographical standard like GeoJSON. That seems like an awkward proposition.

                  Can anyone recommend Leaflet, or any other tool, for navigating non-map imagery?

                  解決方案

                  You can do this with Leaflet. (I have done exactly this myself.)

                  You do have to convert your pixel sizes to latlong (latitude/longitude). Leaflet provides you an easy way to do that by using the Simple "Coordinate Reference System", map.project and map.unproject.

                  First, construct your map like this:

                  var map = L.map('map', {
                    maxZoom: 20,
                    minZoom: 20,
                    crs: L.CRS.Simple
                  }).setView([0, 0], 20);
                  

                  …and then set the map bounds (for an image that is 1024x6145):

                  var southWest = map.unproject([0, 6145], map.getMaxZoom());
                  var northEast = map.unproject([1024, 0], map.getMaxZoom());
                  map.setMaxBounds(new L.LatLngBounds(southWest, northEast));
                  

                  There's more details regarding splitting your images available here including a Ruby gem which might also be useful.

                  這篇關于Leaflet 是非地圖圖像的好工具嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)
                        <tbody id='XgMFw'></tbody>
                      <legend id='XgMFw'><style id='XgMFw'><dir id='XgMFw'><q id='XgMFw'></q></dir></style></legend>

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

                          • <small id='XgMFw'></small><noframes id='XgMFw'>

                            主站蜘蛛池模板: 福利视频大全 | aa级毛片毛片免费观看久 | 在线观看成年视频 | 男女羞羞免费网站 | 亚洲一区二区在线视频 | 一区二区三区在线免费看 | 成av在线 | 国产精品一区二区av | 亚洲精品国产第一综合99久久 | 日韩日b视频 | 亚洲精品日韩综合观看成人91 | 做a的各种视频 | 亚洲欧美日韩在线 | 精品国产一区二区三区久久久蜜月 | 亚洲有码转帖 | 男人的天堂在线视频 | 欧区一欧区二欧区三免费 | 日韩精品一区在线 | 日韩精品免费播放 | 欧洲精品在线观看 | 国产精品美女久久久av超清 | 亚洲免费在线观看视频 | 精品国产乱码久久久 | 青青久草 | 午夜电影福利 | 人人玩人人干 | 久久av一区| 成人不卡一区二区 | 91社影院在线观看 | 免费观看羞羞视频网站 | 狠狠久 | 精品一区久久 | 成人免费在线播放 | 国产人免费人成免费视频 | 色综合久 | 操操日 | 国产高潮好爽受不了了夜色 | 国产在线永久免费 | 正在播放一区二区 | 久久久久九九九女人毛片 | 欧美三级电影在线播放 |