react-leaflet-kml
react-leaflet-kml copied to clipboard
Can one pass options as a prop?
Is this a thing that exists?
<ReactLeafletKml kml={kml} kmlOptions={myOptions} />
Just wondering if Leaflet options of some sort can be passed through, my ignorant reading of L.KML suggests that it can.
@sammyjava Hi,
I added support for iconOptions in kmlOptions in version 2.1.0. You can see the example here: https://github.com/aviklai/react-leaflet-kml/blob/master/src/tests/ReactLeafletKml.test.tsx#L36
From what I checked - this is the only type of option that is supported in leaflet-kml: https://github.com/windycom/leaflet-kml/blob/master/L.KML.js