VictorCazanave / react-svg-map

A set of React.js components to display an interactive SVG map
https://victorcazanave.github.io/react-svg-map/
MIT License
229 stars 48 forks source link

Custom style for each location #27

Closed willianrod closed 5 years ago

willianrod commented 5 years ago

I need to apply a specific className to each location, depending on the location status. I'm using this because I have 3 possible status for each location. "Only morning", "Only afternoon" or "All day". This application is for a university project and using SVG to create a custom map is awesome because it's easier.

But locationClassName applies to all locations.

Is there any coming features to do this?

willianrod commented 5 years ago

I was using version 1.2.0 that does not allow function as locationClassName. Updated to 1.3.1 and works perfectly