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

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

    1. <small id='VVkLp'></small><noframes id='VVkLp'>

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

      1. 未找到 React-Leaflet 標(biāo)記文件

        React-Leaflet marker files not found(未找到 React-Leaflet 標(biāo)記文件)
          <bdo id='TLKq2'></bdo><ul id='TLKq2'></ul>

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

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

            <tfoot id='TLKq2'></tfoot>
            <legend id='TLKq2'><style id='TLKq2'><dir id='TLKq2'><q id='TLKq2'></q></dir></style></legend>
              <tbody id='TLKq2'></tbody>
                1. 本文介紹了未找到 React-Leaflet 標(biāo)記文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我有非常簡單的代碼來使用 react-leaflet 顯示地圖并在其上放置一個標(biāo)記.但是,我在瀏覽器控制臺中收到以下兩個錯誤

                  I've got very simple code to display a map using react-leaflet and place a marker on it. However, i get the following two errors in my browser console

                  GET http://localhost:8080/marker-icon-2x.png404(未找到)

                  GET http://localhost:8080/marker-icon-2x.png 404 (Not Found)

                  GET http://localhost:8080/marker-shadow.png 404(未找到)

                  GET http://localhost:8080/marker-shadow.png 404 (Not Found)

                  我嘗試通過下載這兩個圖像并將它們放在根目錄來解決此問題.有用.但是,如何更改 react-leaflet 標(biāo)記元素查找標(biāo)記圖像的 URL?我想將它們存儲在./images"而不是根目錄中.

                  I tried to fix this issue by downloading those two images and placing them at the root. It works. However, how can i change the URL the react-leaflet marker element looks for the marker images? I'd like to store them in "./images" rather than at the root.

                  推薦答案

                  試試這個:)

                  由于某種原因,React 傳單不包含圖像,您需要重新設(shè)置默認(rèn)圖標(biāo)圖像.

                  React leaflet for some reason do not include images and you will need to reset default icons image.

                  以下是一些工作示例,希望它能解決您的問題.

                  Below is some working example, I hope it will solve your issue.

                  您還可以從公共鏈接之一添加圖標(biāo)

                  You also can add icons from one of public link

                  https://cdnjs.com/libraries/Leaflet.awesome-markers

                  import React, { Component } from 'react';
                  import L from 'leaflet';
                  import {
                      Map, TileLayer, Marker, Popup
                  } from 'react-leaflet'
                  import 'leaflet/dist/leaflet.css';
                  import './style.css';
                  
                  
                  import icon from 'leaflet/dist/images/marker-icon.png';
                  import iconShadow from 'leaflet/dist/images/marker-shadow.png';
                  
                  let DefaultIcon = L.icon({
                      iconUrl: icon,
                      shadowUrl: iconShadow
                  });
                  
                  L.Marker.prototype.options.icon = DefaultIcon;
                  

                  這篇關(guān)于未找到 React-Leaflet 標(biāo)記文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Check if a polygon point is inside another in leaflet(檢查一個多邊形點是否在傳單中的另一個內(nèi)部)
                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標(biāo)記群集圖標(biāo)顏色,繼承其余默認(rèn) CSS 屬性)
                  Trigger click on leaflet marker(觸發(fā)點擊傳單標(biāo)記)
                  How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認(rèn)加載磁貼顏色?)
                  Add external geojson to leaflet layer(將外部geojson添加到傳單層)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側(cè)邊欄)
                    <tbody id='ygssy'></tbody>
                2. <legend id='ygssy'><style id='ygssy'><dir id='ygssy'><q id='ygssy'></q></dir></style></legend>

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

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

                        <tfoot id='ygssy'></tfoot>

                            主站蜘蛛池模板: 亚洲国产成人久久综合一区,久久久国产99 | 亚洲精品久久久久中文字幕欢迎你 | 国产日韩在线观看一区 | 羞视频在线观看 | 国产精品亚洲视频 | 日韩欧美在线播放 | 欧美aⅴ片 | www.天天操.com | 亚洲欧美在线观看视频 | 成人av在线播放 | 亚洲精品一区二区三区 | 中日韩欧美一级片 | 日韩成人在线观看 | 一级毛片在线播放 | 国产一区影院 | 久久久一区二区 | 美女操网站 | 国产乱码精品1区2区3区 | 国产亚洲精品精品国产亚洲综合 | 欧美vide | 久久影院一区 | 日韩一区二区三区在线视频 | 日韩波多野结衣 | 成人一级黄色毛片 | 午夜激情小视频 | 国产精品成人在线播放 | 欧美久久一区 | 美女黄视频网站 | 亚洲一区二区三区免费在线观看 | 国产美女精品 | 色姑娘综合网 | 亚洲毛片一区二区 | 免费在线观看av网站 | 国产视频二区在线观看 | 免费观看一级黄色录像 | 亚洲毛片在线观看 | 日韩在线播放一区 | 亚洲高清视频一区二区 | 欧美一级二级在线观看 | 521av网站| 91精品一区二区三区久久久久 |