久久久久久久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 是非地圖圖像的好工具嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在編寫一個涉及導(dǎo)航技術(shù)插圖(平移、縮放、單擊)的網(wǎng)絡(luò)應(yīng)用程序.我認(rèn)為 Cloudmade Leaflet 是一個很好的工具,只是因為 有人用它來制作 XKCD 1110 平移/縮放,我真的很喜歡它的結(jié)果.

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

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

                  解決方案

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

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

                  首先,像這樣構(gòu)建你的地圖:

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

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

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

                  此處提供了有關(guān)拆分圖像的更多詳細(xì)信息,包括一個 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.

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

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

                  相關(guān)文檔推薦

                  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?(是否可以將標(biāo)志傳遞給 Gulp 以使其以不同的方式運行任務(wù)?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務(wù))
                  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'>

                            主站蜘蛛池模板: 精品亚洲一区二区 | 999视频| 一区二区三区欧美 | 国产在线一区二区三区 | 在线日韩视频 | 另类专区亚洲 | 澳门永久av免费网站 | 久久69精品久久久久久久电影好 | 亚洲 欧美 日韩在线 | 日日夜夜天天 | 蜜桃在线一区二区三区 | 国产精品夜色一区二区三区 | 久草福利| 国产成人精品一区二区三区四区 | 国产亚洲欧美另类一区二区三区 | 国产精品伦一区二区三级视频 | 中文字幕在线精品 | 91国在线观看 | 美女精品一区 | 国产麻豆一区二区三区 | 精品综合久久久 | 国产一区欧美一区 | 欧美日韩久久精品 | 521av网站 | 日韩一级欧美一级 | 亚洲精品中文字幕中文字幕 | 国产高潮好爽受不了了夜色 | 亚洲一区二区黄 | 欧美白人做受xxxx视频 | 精品欧美乱码久久久久久1区2区 | 午夜理伦三级理论三级在线观看 | 7799精品视频天天看 | 日本激情视频中文字幕 | 一级毛片视频 | 欧美一区二区在线观看 | 精品国产18久久久久久二百 | av综合站 | www国产亚洲精品久久网站 | 亚洲成人日韩 | 日韩欧美专区 | 最新国产精品视频 |