You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-26Lines changed: 6 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -685,12 +685,12 @@ import { RCMap, DivIcon, Point } from 'rc-leaflet'
685
685
686
686
(
687
687
<RCMap>
688
-
<DivIcon>
688
+
<DivIcon content={<div>must be single jsx element content.</div>}>
689
689
<Point />
690
690
</DivIcon>
691
691
692
692
<Point>
693
-
<DivIcon />
693
+
<DivIcon content={<div>must be single jsx element content.</div>} />
694
694
</Point>
695
695
</RCMap>
696
696
)
@@ -708,15 +708,15 @@ import { RCMap, DivIcon, Point } from 'rc-leaflet'
708
708
709
709
- the className of DivIcon container.
710
710
711
-
- html
711
+
- content
712
712
713
-
- type: `string | HTMLElement`
713
+
- type: `React.ReactElement`
714
714
715
-
- default: `''`
715
+
- default: `null`
716
716
717
717
- required: `false`
718
718
719
-
- custom HTML code to put inside the div element, empty by default. Alternatively, an instance of HTMLElement.
719
+
- custom `JSX` code to put inside the div element, empty by default. Alternatively, an instance of `React.ReactElement`.
720
720
721
721
- bgPos
722
722
@@ -788,16 +788,6 @@ import { RCMap, Popup, Point, CircleMarker, Circle, Polyline } from 'rc-leaflet'
788
788
789
789
- position is needed only when popup is set directly under the map component.
790
790
791
-
- content
792
-
793
-
- type: `string | HTMLElement | Function`
794
-
795
-
- default: `undefined`
796
-
797
-
- required: `false`
798
-
799
-
- sets the HTML content of the popup. If a function is passed the source layer will be passed to the function. The function should return a String or HTMLElement to be used in the popup.
800
-
801
791
- maxWidth
802
792
803
793
- type: `number`
@@ -1010,16 +1000,6 @@ import { RCMap, Tooltip, Point, CircleMarker, Circle, Polyline } from 'rc-leafle
1010
1000
1011
1001
- position is needed only when Tooltip is set directly under the map component.
1012
1002
1013
-
- content
1014
-
1015
-
- type:`string | HTMLElement | Function`
1016
-
1017
-
- default:`undefined`
1018
-
1019
-
- required:`false`
1020
-
1021
-
- sets the HTML content of the tooltip. If a function is passed the source layer will be passed to the function. The function should return a String or HTMLElement to be used in the tooltip.
0 commit comments