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

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

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

        如何從地圖外的鏈接打開傳單標記彈出窗口?

        How to open leaflet marker popup from link outside of map?(如何從地圖外的鏈接打開傳單標記彈出窗口?)

                <tbody id='E5cqK'></tbody>
              <legend id='E5cqK'><style id='E5cqK'><dir id='E5cqK'><q id='E5cqK'></q></dir></style></legend>
                  <bdo id='E5cqK'></bdo><ul id='E5cqK'></ul>
                • <small id='E5cqK'></small><noframes id='E5cqK'>

                • <tfoot id='E5cqK'></tfoot>

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

                • 本文介紹了如何從地圖外的鏈接打開傳單標記彈出窗口?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一張帶有多個標記的傳單地圖.

                  I have a leaflet map with several markers on.

                  每個標記都有相似的 html 到

                  Each of the markers have similar html to

                   <img class="leaflet-marker-icon leaflet-clickable leaflet-zoom-animated" src="leaflet/dist/images/marker-icon.png" style="margin-left: -12px; margin-top: -41px; width: 25px; height: 41px; transform: translate(435px, 200px); z-index: 200;" title="location_1">
                  

                  單擊標記時,會在標記上方打開彈出窗口.

                  When the marker is clicked the popup opens above the marker.

                  我想做的是在地圖之外添加與每個標記相關的鏈接.

                  What im trying to do is add links outside of the map, relating to each marker.

                  每個標記都有一個唯一的標題.那么我可以創建一個 html 鏈接列表,標題作為標識符,例如

                  Each of the markers have a unique title. So could I just create a list of html links, with the title as an identifier such as

                   <a class="location_1">location 1</a>
                   <a class="location_2">location 2</a>
                  

                  然后將這些鏈接綁定到傳單地圖中對應的標記?

                  Then bind these links to the corresponding marker in the leaflet map?

                  我怎樣才能最好地實現這一目標?

                  How would I best achieve this?

                  推薦答案

                  如果將標記添加到數組中,則可以非常簡單地根據元素的屬性檢查它們.

                  if you add the markers to an array, it would be pretty straightforward to check them against attributes of your element.

                  例如:

                  var markers = [];
                  var marker1 = L.marker([51.497, -0.09],{title:"marker_1"}).addTo(map).bindPopup("Marker 1");
                  markers.push(marker1);
                  var marker2 = L.marker([51.495, -0.083],{title:"marker_2"}).addTo(map).bindPopup("Marker 2");
                  markers.push(marker2);
                  var marker3 = L.marker([51.49, -0.097],{title:"marker_3"}).addTo(map).bindPopup("Marker 3");
                  markers.push(marker3);
                  
                  function markerFunction(id){
                      for (var i in markers){
                          var markerID = markers[i].options.title;
                          if (markerID == id){
                              markers[i].openPopup();
                          };
                      }
                  }
                  
                  $("a").click(function(){
                      markerFunction($(this)[0].id);
                  });
                  

                  看到它在這個 fiddle

                  這篇關于如何從地圖外的鏈接打開傳單標記彈出窗口?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='AR9Hf'><style id='AR9Hf'><dir id='AR9Hf'><q id='AR9Hf'></q></dir></style></legend>

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

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

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

                          <bdo id='AR9Hf'></bdo><ul id='AR9Hf'></ul>

                          1. 主站蜘蛛池模板: 久久精品在线免费视频 | 婷婷久久精品一区二区 | 在线国产精品一区 | 免费一二区 | 欧美精品一区二区三区四区 在线 | 日韩不卡一二区 | 网址黄 | 成在线人视频免费视频 | 亚洲一区二区久久 | 精品粉嫩超白一线天av | 天天综合久久网 | 黄a免费看 | 欧美黑人一区二区三区 | 国产伦精品一区二区三毛 | 一区二区在线免费观看视频 | 精品一区二区免费视频 | 韩国av一区二区 | 免费看91 | 欧美亚洲另类丝袜综合网动图 | 6080亚洲精品一区二区 | 亚洲欧美少妇 | 亚洲国产精品久久人人爱 | 亚洲国产aⅴ成人精品无吗 欧美激情欧美激情在线五月 | eeuss国产一区二区三区四区 | 91看片在线观看 | 久久中文字幕一区 | 成人av片在线观看 | 五月精品视频 | 91精品国产麻豆 | 欧美在线观看一区 | 国产a区 | 欧美视频免费在线 | 国产精彩视频在线观看 | 97成人免费 | 国际精品鲁一鲁一区二区小说 | 日韩三级精品 | 中文字幕一区二区三区精彩视频 | 欧美日韩三级在线观看 | 91丨国产| 欧美精品乱码99久久影院 | 国产一区二区在线免费观看 |