Theme.md

September 23, 2019 · View on GitHub

Theme

Examples

  • Basic Usage

    import { RCMap, Theme, TileLayer } from 'rc-leaflet'
    
    let theme = {
      path: {
        color: 'red',
        weight: 10,
        opacity: 0.5
      }
    }
    
    (
      <Theme value={theme}>
        <RCMap crs center>
          <TileLayer />
        </RCMap>
      </Theme>
    )
    

Props

  • value

    • type: { path: L.PathOptions }

    • required: true

    • 目前只支持Path主题设置