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

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

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

      <legend id='TFTK6'><style id='TFTK6'><dir id='TFTK6'><q id='TFTK6'></q></dir></style></legend>

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

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

        react-leaflet 創建自定義組件

        react-leaflet create a custom components(react-leaflet 創建自定義組件)
        1. <legend id='WnSSP'><style id='WnSSP'><dir id='WnSSP'><q id='WnSSP'></q></dir></style></legend>
            <bdo id='WnSSP'></bdo><ul id='WnSSP'></ul>

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

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

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

                  本文介紹了react-leaflet 創建自定義組件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想創建一個帶有顯示鼠標實際位置 (x,y) 的 react-leaflet 的自定義組件,但我不知道如何創建它.我找到了 react-leaflet-control 但它似乎不是最新的,當然我閱讀了 api 文檔 https://react-leaflet.js.org/docs/en/custom-components.html 但我不明白:/

                  I would like to create a custom component with react-leaflet that shows the actual position (x,y) of the mouse, but I don't know how to create it. I found react-leaflet-control but it seems that it is not up to date, of course I readded the api documentation https://react-leaflet.js.org/docs/en/custom-components.html but I did not understand it :/

                  誰能給我一個自定義組件的例子,只要一個顯示Hello world"的組件就足夠了.

                  Can someone give me an exemple of a custom component please, juste a component that display "Hello world" whould be more than enought.

                  推薦答案

                  根據 文檔,創建一個自定義組件需要以下步驟:

                  As per documentation, to create a custom component the following steps are required:

                  1)擴展React-Leaflet提供的抽象類之一,例如:

                  1)extend one of the abstract classes provided by React-Leaflet, for example:

                  class MapInfo extends MapControl {
                     //...
                  } 
                  

                  2)實現createLeafletElement(props:Object):Object方法創建相關Leaflet元素實例,例如:

                  2)implement createLeafletElement (props: Object): Object method to create the relevant Leaflet element instance, for example:

                  createLeafletElement(opts) {
                      const MapInfo = L.Control.extend({
                        onAdd: (map) => {
                          this.panelDiv = L.DomUtil.create('div', 'info');
                          return this.panelDiv;
                        }
                      });
                      return new MapInfo({ position: 'bottomleft' });
                  }
                  

                  3) 使用 withLeaflet() HOC 包裝您的自定義組件,例如:

                  3) wrap your custom component using the withLeaflet() HOC, for example:

                  export default withLeaflet(MapInfo);
                  

                  下面的例子演示了如何創建一個自定義組件來顯示鼠標在地圖上的實際位置(lat,lng):

                  The following example demonstrates how create a custom component to display the actual position (lat,lng) of the mouse on map:

                  演示

                  這篇關于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 圖層控件添加到側邊欄)

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

                2. <legend id='3WnnP'><style id='3WnnP'><dir id='3WnnP'><q id='3WnnP'></q></dir></style></legend>
                      <tbody id='3WnnP'></tbody>

                        <small id='3WnnP'></small><noframes id='3WnnP'>

                      1. <tfoot id='3WnnP'></tfoot>
                          <bdo id='3WnnP'></bdo><ul id='3WnnP'></ul>

                            主站蜘蛛池模板: 午夜在线小视频 | 久久精品久久久久久 | 成人免费小视频 | 国产一区二区精品在线观看 | 综合久久综合久久 | 日韩中文字幕在线视频观看 | 久久久91精品国产一区二区精品 | 亚洲午夜视频 | 欧美性久久| 国产精品久久久久久中文字 | 视频一区二区在线观看 | 久久国产精品一区二区 | 在线免费av电影 | 一区二区三区视频在线观看 | 国产在线永久免费 | 91看片官网 | 五月综合激情在线 | 国产欧美精品一区二区三区 | 日本天堂视频 | 久久精品亚洲精品国产欧美 | 国产一区免费 | 国产成人精品一区二区三区 | 黄色三级免费网站 | 日本午夜在线视频 | 久久久精品综合 | 精品久久久久久久久久久下田 | 国产精品视频免费看 | 午夜电影福利 | 国产精品美女一区二区三区 | 四虎在线观看 | 九九激情视频 | 国产精品视频一区二区三区 | 涩涩视频在线观看 | 亚洲视频二区 | 一区二区三区不卡视频 | 91高清在线视频 | 久久成人免费视频 | 欧美日韩在线综合 | 精品一区二区三区91 | 日韩三级 | 91日韩在线|