Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can one pass options as a prop? #31

Open
sammyjava opened this issue Jun 19, 2022 · 1 comment
Open

Can one pass options as a prop? #31

sammyjava opened this issue Jun 19, 2022 · 1 comment

Comments

@sammyjava
Copy link

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.

@aviklai
Copy link
Owner

aviklai commented Jun 20, 2022

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants