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

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

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

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

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

        在傳單彈出窗口中顯示圖像

        Show Image in Leaflet Popup(在傳單彈出窗口中顯示圖像)
        • <small id='uhqql'></small><noframes id='uhqql'>

              • <bdo id='uhqql'></bdo><ul id='uhqql'></ul>

              • <i id='uhqql'><tr id='uhqql'><dt id='uhqql'><q id='uhqql'><span id='uhqql'><b id='uhqql'><form id='uhqql'><ins id='uhqql'></ins><ul id='uhqql'></ul><sub id='uhqql'></sub></form><legend id='uhqql'></legend><bdo id='uhqql'><pre id='uhqql'><center id='uhqql'></center></pre></bdo></b><th id='uhqql'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uhqql'><tfoot id='uhqql'></tfoot><dl id='uhqql'><fieldset id='uhqql'></fieldset></dl></div>
                <legend id='uhqql'><style id='uhqql'><dir id='uhqql'><q id='uhqql'></q></dir></style></legend>
                  <tfoot id='uhqql'></tfoot>
                    <tbody id='uhqql'></tbody>
                  本文介紹了在傳單彈出窗口中顯示圖像的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試使用 wunderground 的 API、Leaflet 和 Cloudmade 讓天氣圖標顯示在地圖標記中.我已經顯示了文本和帶有圖標圖像的變量,但我不確定如何顯示它.這是我的代碼:

                  I'm trying to get the weather icon to show in a map marker using wunderground's api, Leaflet and Cloudmade. I've got the text showing and a variable with the icon image, but I'm not sure how to get it to show. Here's my code:

                  jQuery(document).ready(function($) {
                      $.ajax({
                            url: "http://api.wunderground.com/api/cd48ac26fb540679/conditions/q/pws:KCASANFR128.json",
                            dataType: "jsonp",
                            success: function(parsed_json) {
                                var location = parsed_json['current_observation']['observation_location']['city'];
                                var temp_f = parsed_json['current_observation']['temp_f'];
                                var icon = parsed_json['current_observation']['icon_url'];
                                marker1.bindPopup("Current temperature in " +location+ " is: " + temp_f).openPopup();
                          }
                      });
                  });
                  

                  我試過這個沒有成功:

                  marker1.bindPopup( <img src=icon> "Current temperature in " +location+ " is: " + temp_f).openPopup();
                  

                  有什么建議嗎?

                  推薦答案

                  標記的 bindPopup 方法只是將 HTML 內容作為一個字符串,所以你也需要用引號將你的標簽括起來 - 比如

                  The marker's bindPopup method just takes HTML content as a string, so you'll need to surround your tags with quotes as well - something like

                  marker1.bindPopup( "<img src=" + icon_url + "/> Current temperature in " + location + " is: " + temp_f)
                  

                  應該適合你.

                  這篇關于在傳單彈出窗口中顯示圖像的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='c8mVx'></tbody>

                          <legend id='c8mVx'><style id='c8mVx'><dir id='c8mVx'><q id='c8mVx'></q></dir></style></legend>
                        1. <tfoot id='c8mVx'></tfoot>

                        2. <small id='c8mVx'></small><noframes id='c8mVx'>

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

                            主站蜘蛛池模板: 欧美精品中文 | 国产 日韩 欧美 中文 在线播放 | 久久新| 亚洲激情一级片 | 午夜播放器在线观看 | 18成人在线观看 | 日韩国产免费观看 | 能免费看的av | 欧美视频 亚洲视频 | 精品96久久久久久中文字幕无 | 久久精品成人 | 久久免费观看一级毛片 | 黄色免费网址大全 | 一级中国毛片 | 久久99国产精品久久99果冻传媒 | 亚洲欧美激情国产综合久久久 | 日本韩国电影免费观看 | 亚洲一区二区三区桃乃木香奈 | 国产在线观看一区二区三区 | 天天久久 | 成人自拍视频 | 欧美一级片在线看 | 草草草网站 | 久久91精品国产一区二区三区 | 欧产日产国产精品99 | 亚洲一区二区在线免费观看 | 99综合| 日韩精品视频在线观看一区二区三区 | 69av网 | 在线播放第一页 | 爱综合| av一区二区三区四区 | 亚洲精品在线播放 | 国产精品久久久99 | 中文字幕视频在线观看 | 国产高清美女一级a毛片久久w | 亚洲久视频 | 欧美国产日韩一区二区三区 | 久久亚洲国产 | 天天插天天射天天干 | 羞羞视频网站免费观看 |