Skip to content

Latest commit

 

History

History
81 lines (47 loc) · 1 KB

DivIcon.md

File metadata and controls

81 lines (47 loc) · 1 KB

DivIcon

Examples

  • Basic Usage

    import { RCMap, TileLayer, Point, ClusterPoints, DivIcon } from 'rc-leaflet'
    
    (
      <RCMap crs center>
        <TileLayer />
    
        <Point />
    
        <DivIcon className>
          <Point />
        </DivIcon>
    
        <Point>
          <DivIcon className />
        </Point>
    
        <DivIcon>
          <ClusterPoints />
        </DivIcon>
      </RCMap>
    )

Props

  • className

    • type: string

    • required: false

    • 图标的类名

  • bgPos

    • type: [number, number] | L.Point

    • required: false

    • 图标背景的相对位置

Props inherited from Icon

  • iconSize

    • type: [number, number] | L.Point

    • required: false

    • 图标的大小

  • iconAnchor

    • type: [number, number] | L.Point

    • required: false

    • 图标的锚点

  • popupAnchor

    • type: [number, number] | L.Point

    • required: false

    • Popup的锚点

  • tooltipAnchor

    • type: [number, number] | L.Point

    • required: false

    • Tooltip的锚点