久久久久久久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>

                            主站蜘蛛池模板: 天天干天天玩天天操 | 国产第一亚洲 | 国产精品久久久久久一区二区三区 | 精品日韩欧美一区二区 | 中文字幕一区二区三区在线观看 | 91在线影院 | 毛片一区二区三区 | 精品欧美一区二区三区精品久久 | 99精品欧美一区二区三区综合在线 | 久久久tv | 国产视频久久 | 国产欧美日韩视频 | 精品一区二区三区视频在线观看 | 日韩视频一区二区 | 一区二区三区免费在线观看 | 久草网在线视频 | 国产在线视频一区二区董小宛性色 | 欧美乱人伦视频 | 在线观看av不卡 | av在线免费观看网站 | 99久久久国产精品 | 久久久精品一区二区三区 | 九色 在线 | 欧美性受xxx | 韩日一区 | 一区欧美 | 91精品国产综合久久久久蜜臀 | 自拍偷拍av | 青青青伊人 | 国产精品亚洲综合 | 亚洲欧美视频 | 九九热精品视频 | 精品国产一区二区三区免费 | 久久91av | 欧美精品在线一区二区三区 | 香蕉久久久久久 | 99re国产 | 中文字幕精品一区 | 久久综合久久久 | 国产精品美女www爽爽爽视频 | 日韩精品 电影一区 亚洲 |