Leaflet api now has divicon support can we add it to react-leaflet.
Or it's trivial to add, and we can do it outside of this library
Hi, you can already use DivIcons, you simply need to generate them from Leaflet, ex:
import { divIcon } from 'leaflet'
import { Marker } from 'react-leaflet'
const icon = divIcon({className: 'my-div-icon'})
const marker = <Marker icon={icon} ... />
Really nice thanks
The example you provided is nice, but it doesn't use any custom HTML. Is it possible to have react generated HTML (JSX) into that leaflet divIcon?
Most helpful comment
The example you provided is nice, but it doesn't use any custom HTML. Is it possible to have react generated HTML (JSX) into that leaflet
divIcon?