react-leaflet-kml icon indicating copy to clipboard operation
react-leaflet-kml copied to clipboard

Can one pass options as a prop?

Open sammyjava opened this issue 3 years ago • 1 comments

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 avatar Jun 19 '22 01:06 sammyjava

@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

aviklai avatar Jun 20 '22 07:06 aviklai