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

<tfoot id='4hj0u'></tfoot>
  • <small id='4hj0u'></small><noframes id='4hj0u'>

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

        地圖上的傳單固定大小圓圈

        leaflet fixed size circle on map(地圖上的傳單固定大小圓圈)

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

              <tbody id='J8kmo'></tbody>

              <legend id='J8kmo'><style id='J8kmo'><dir id='J8kmo'><q id='J8kmo'></q></dir></style></legend>
                <bdo id='J8kmo'></bdo><ul id='J8kmo'></ul>

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

                <i id='J8kmo'><tr id='J8kmo'><dt id='J8kmo'><q id='J8kmo'><span id='J8kmo'><b id='J8kmo'><form id='J8kmo'><ins id='J8kmo'></ins><ul id='J8kmo'></ul><sub id='J8kmo'></sub></form><legend id='J8kmo'></legend><bdo id='J8kmo'><pre id='J8kmo'><center id='J8kmo'></center></pre></bdo></b><th id='J8kmo'></th></span></q></dt></tr></i><div class="ltr7fb7" id='J8kmo'><tfoot id='J8kmo'></tfoot><dl id='J8kmo'><fieldset id='J8kmo'></fieldset></dl></div>
                1. 本文介紹了地圖上的傳單固定大小圓圈的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 Leaflet.js 創建一些標記和圓圈.我正在使用下面給出的代碼來繪制圓圈:-

                  I am using leaflet.js to create few markers and circles. I am using the below given code to draw circles : -

                   L.circle([ lat, lng ], 1000, {
                              color : colorCode,
                              stroke : false,
                              fillColor : colorCode,
                              fillOpacity : 0.7
                          });
                  

                  現在,如果我在 UI 上編輯這個圓圈并垂直向下拖動這個圓圈,圓圈的大小會增加,反之亦然.類似的問題是用不同的 lat lngs 調用上述給定的方法.相同半徑 (1000) 大小的圓圈在地圖上以不同大小繪制.

                  Now if I edit this circle on UI and drag this circle vertically downwards, the circle size increases and vice a versa. Similar issue is with calling the above given method with different lat lngs. The same radius (1000) sized circle get plotted with different sizes on map.

                  我的要求是在地圖上到處放置相同半徑和相同大小的標記.

                  My requirement is to place marker with same radius with same size on map everywhere.

                  我檢查了 L.circleMarker,但它需要以像素為單位的半徑,并且 circleMarkers 不會在 zoomin zoomout 事件中縮放.這就是為什么我不能使用 circleMarkers.

                  I checked L.circleMarker but it takes radius in pixels and also circleMarkers does not scale in zoomin zoomout events. That is why I can't use circleMarkers.

                  我將 crs 選項更改為 4326 但沒有成功.我使用的是 imageOverlay 而不是tileset.我創造了一個小提琴.
                  http://jsfiddle.net/newBee_/88bdrzkr/12/

                  I changed the crs option to 4326 but no success. I am using imageOverlay not tileset. I have created a fiddle.
                  http://jsfiddle.net/newBee_/88bdrzkr/12/

                  嘗試在頂部區域創建一個圓圈,然后對其進行編輯并向下移動.它的大小增加了.這就是我想要停止的.這將解決通過代碼在相同大小的地圖的不同區域生成相同半徑的圓的問題.請幫忙.

                  Try creating a circle on top area then edit and move it downwards. It's size increases. This is what I want to stop. This will resolve the problem of generating circle of same radius via code in different area of map with same size. Please help.

                  請提出建議.

                  推薦答案

                  看起來這是一個 深入 Leaflet 0.x 的錯誤:L.Circle 半徑計算使用硬編碼的地球投影而??不是指定的 CRS.Leaflet 1.0 似乎在使用與地球相關的計算之前正確檢查了 CRS.

                  It looks like this is a bug deep into Leaflet 0.x: L.Circle radius computation uses hard-coded Earth projection rather than the specified CRS. Leaflet 1.0 seems to correctly check for the CRS before using the Earth-related computation.

                  對于您的情況,簡單地覆蓋錯誤的方法似乎可以修復它,至少在視覺上是這樣.

                  For your case, simply overriding the faulty method seems to fix it, at least visually.

                  演示:http://jsfiddle.net/88bdrzkr/13/

                  要包含在腳本中的更正"方法:

                  The "corrected" method to include in your script:

                  L.Circle.include({
                      _getLngRadius: function () {
                          return this._getLatRadius();
                      }
                  });
                  

                  關于 iH8 的回答,覆蓋 L.CRS.Simple.scale 的技巧類似于高度縮放(256 因子將 latLng 擴展到更多像素 - 任何高數字會做).在高變焦時,您正在沿非常短的距離移動圓圈,而緯度不會發生太大變化.因此,即使錯誤仍然存??在,您也看不到任何明顯的半徑差異.

                  Regarding iH8's answer, the trick to override L.CRS.Simple.scale is similar to highly zooming (the 256 factor expands the latLng to much further pixels - any high number will do). At high zoom, you are moving your circle along a very short distance, for which the latitude does not change much. So you do not see any visible difference in radius, even though the bug is still there.

                  僅使用更高縮放的演示,根本沒有方法覆蓋:http://jsfiddle.net/kau6g8fk/1/

                  Demo of using just higher zoom, no method override at all: http://jsfiddle.net/kau6g8fk/1/

                  如果您需要讓圓圈看起來更像視覺輔助工具,這 3 種解決方案中的任何一種都足夠了.

                  For your need where the circle looks to be more like a visual aid, any of these 3 solutions is enough.

                  CRS 根本不是問題.

                  the CRS is not the issue at all.

                  上一條消息:

                  如果您使用 Leaflet 進行室內映射,正如您的 jsFiddle 建議的那樣(或任何平面類型的地圖,而不是像地球這樣的球體在平面上的投影),您可以簡單地使用 L.CRS.Simple

                  If you use Leaflet for indoor mapping, as your jsFiddle suggests (or any flat type map, as opposed to the projection of a sphere like Earth on to a plane), you could simply use L.CRS.Simple

                  這篇關于地圖上的傳單固定大小圓圈的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 圖層控件添加到側邊欄)
                      <tbody id='BETL3'></tbody>
                      <bdo id='BETL3'></bdo><ul id='BETL3'></ul>
                        <tfoot id='BETL3'></tfoot>
                      • <i id='BETL3'><tr id='BETL3'><dt id='BETL3'><q id='BETL3'><span id='BETL3'><b id='BETL3'><form id='BETL3'><ins id='BETL3'></ins><ul id='BETL3'></ul><sub id='BETL3'></sub></form><legend id='BETL3'></legend><bdo id='BETL3'><pre id='BETL3'><center id='BETL3'></center></pre></bdo></b><th id='BETL3'></th></span></q></dt></tr></i><div class="vbt5ptj" id='BETL3'><tfoot id='BETL3'></tfoot><dl id='BETL3'><fieldset id='BETL3'></fieldset></dl></div>

                            <legend id='BETL3'><style id='BETL3'><dir id='BETL3'><q id='BETL3'></q></dir></style></legend>

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

                          1. 主站蜘蛛池模板: 阜阳成人高考_阜阳成考报名时间_安徽省成人高考网 | 岩棉板|岩棉复合板|聚氨酯夹芯板|岩棉夹芯板|彩钢夹芯板-江苏恒海钢结构 | 郑州水质检测中心_井水检测_河南废气检测_河南中环嘉创检测 | 英思科GTD-3000EX(美国英思科气体检测仪MX4MX6)百科-北京嘉华众信科技有限公司 | 发电机价格|发电机组价格|柴油发电机价格|柴油发电机组价格网 | 魔方网-培训咨询服务平台| 天空彩票天下彩,天空彩天空彩票免费资料,天空彩票与你同行开奖,天下彩正版资料大全 | 升降机-高空作业车租赁-蜘蛛车-曲臂式伸缩臂剪叉式液压升降平台-脚手架-【普雷斯特公司厂家】 | Honsberg流量计-Greisinger真空表-气压计-上海欧臻机电设备有限公司 | 玉米深加工设备|玉米加工机械|玉米加工设备|玉米深加工机械-河南成立粮油机械有限公司 | 防火板_饰面耐火板价格、厂家_品牌认准格林雅 | 汽车整车综合环境舱_军标砂尘_盐雾试验室试验箱-无锡苏南试验设备有限公司 | 辊道窑炉,辊道窑炉厂家-山东艾希尔 | 恒温水槽与水浴锅-上海熙浩实业有限公司 | 礼仪庆典公司,礼仪策划公司,庆典公司,演出公司,演艺公司,年会酒会,生日寿宴,动工仪式,开工仪式,奠基典礼,商务会议,竣工落成,乔迁揭牌,签约启动-东莞市开门红文化传媒有限公司 | 阳光1号桔柚_无核沃柑_柑橘新品种枝条苗木批发 - 苧金网 | 武汉印刷厂-不干胶标签印刷厂-武汉不干胶印刷-武汉标签印刷厂-武汉标签制作 - 善进特种标签印刷厂 | 楼承板-开闭口楼承板-无锡海逵楼承板 | 12cr1mov无缝钢管切割-15crmog无缝钢管切割-40cr无缝钢管切割-42crmo无缝钢管切割-Q345B无缝钢管切割-45#无缝钢管切割 - 聊城宽达钢管有限公司 | 转向助力泵/水泵/发电机皮带轮生产厂家-锦州华一精工有限公司 | 长沙广告公司|长沙广告制作设计|长沙led灯箱招牌制作找望城湖南锦蓝广告装饰工程有限公司 | 气密性检测仪_气密性检测设备_防水测试仪_密封测试仪-岳信仪器 | 影视模板素材_原创专业影视实拍视频素材-8k像素素材网 | 作文导航网_作文之家_满分作文_优秀作文_作文大全_作文素材_最新作文分享发布平台 | 动库网动库商城-体育用品专卖店:羽毛球,乒乓球拍,网球,户外装备,运动鞋,运动包,运动服饰专卖店-正品运动品网上商城动库商城网 - 动库商城 | 杭州ROHS检测仪-XRF测试仪价格-百科| 999范文网_优质范文下载写作帮手 | 化工ERP软件_化工新材料ERP系统_化工新材料MES软件_MES系统-广东顺景软件科技有限公司 | 许昌奥仕达自动化设备有限公司| CCC验厂-家用电器|服务器CCC认证咨询-奥测世纪 | 河南中整光饰机械有限公司-抛光机,去毛刺抛光机,精密镜面抛光机,全自动抛光机械设备 | [品牌官网]贵州遵义双宁口腔连锁_贵州遵义牙科医院哪家好_种植牙_牙齿矫正_原华美口腔 | 电气控制系统集成商-PLC控制柜变频控制柜-非标自动化定制-电气控制柜成套-NIDEC CT变频器-威肯自动化控制 | 木材烘干机,木炭烘干机,纸管/佛香烘干设备-河南蓝天机械制造有限公司 | 天津市能谱科技有限公司-专业的红外光谱仪_红外测油仪_紫外测油仪_红外制样附件_傅里叶红外光谱技术生产服务厂商 | 钛板_钛管_钛棒_钛盘管-无锡市盛钛科技有限公司 | 雷冲击高压发生器-水内冷直流高压发生器-串联谐振分压器-武汉特高压电力科技有限公司 | 工业用品一站式采购平台|南创工品汇-官网|广州南创 | 2-羟基泽兰内酯-乙酰蒲公英萜醇-甘草查尔酮A-上海纯优生物科技有限公司 | 科普仪器菏泽市教育教学仪器总厂 | 高扬程排污泵_隔膜泵_磁力泵_节能自吸离心水泵厂家-【上海博洋】 |