久久久久久久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. 主站蜘蛛池模板: 第四色播日韩第一页 | 99只有精品 | 精品一区二区久久久久久久网精 | 国产精品视屏 | 日本三级全黄三级三级三级口周 | 麻豆视频在线看 | 国产剧情一区 | 精品一区二区三区免费毛片 | 成人精品国产一区二区4080 | 久久精品91久久久久久再现 | 二区中文 | 日日夜夜操天天干 | 香蕉视频1024 | 久久男人天堂 | www.久久 | 亚洲综合色视频在线观看 | 国产精品二区三区 | 毛片视频网址 | 久草欧美| 久草视频在线播放 | 四虎影院在线观看免费视频 | 狠狠干天天干 | 国产欧美日韩综合精品一区二区 | 香蕉二区 | 欧美日一区二区 | 在线看91 | 黄色成人免费在线观看 | 四虎免费视频 | 在线视频亚洲 | 国产欧美在线观看 | 99精品在线免费观看 | 99这里只有精品视频 | 亚洲精品成人在线 | 国产蜜臀| 能看的av | 亚洲精品中文在线 | 99热这里都是精品 | 奇米四色在线观看 | 日韩国产黄色片 | 中文字幕第三页 | 亚洲一区二区三 |