久久久久久久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 標記文件

        React-Leaflet marker files not found(未找到 React-Leaflet 標記文件)
          <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 標記文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

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

                  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 標記元素查找標記圖像的 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 傳單不包含圖像,您需要重新設置默認圖標圖像.

                  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.

                  您還可以從公共鏈接之一添加圖標

                  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;
                  

                  這篇關于未找到 React-Leaflet 標記文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='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>

                            主站蜘蛛池模板: 久久成人精品视频 | 久久精品免费观看 | 黄色网址在线免费播放 | 精品视频在线播放 | 国产一伦一伦一伦 | 毛片一级片| 国产精品极品美女在线观看免费 | 久久国 | 91精品一区二区三区久久久久 | 久久av综合 | 国产视频在线一区二区 | 午夜丰满少妇一级毛片 | 国产精品欧美一区二区三区 | 国产亚洲精品久久情网 | 成人欧美一区二区三区黑人孕妇 | 欧美视频网 | 欧美一区二区三区日韩 | 亚洲v区| 成年人网站国产 | 色接久久 | 男人天堂网av | 国产精品国产精品国产专区不卡 | 亚洲精品一 | 91精品国产乱码麻豆白嫩 | 国产精品无码专区在线观看 | 亚洲国产区 | 中文字幕一区二区三区四区 | 亚洲大片在线观看 | 午夜国产 | 国产成人精品免费视频大全最热 | 手机av在线| 中文在线一区二区 | 久久国产精品-国产精品 | 一本色道精品久久一区二区三区 | 性天堂网 | 国产欧美精品 | 日韩在线免费电影 | 国产成人精品久久二区二区 | 成人天堂 | 精品国产免费人成在线观看 | 能看的av|