mstahv / v-leaflet

Leaflet add-on for Vaadin
Other
43 stars 38 forks source link

How to access LeafletMarkerState Fields? #196

Open mahibi opened 5 years ago

mahibi commented 5 years ago

I try to read some fields from an LMarker Object (for Example "divIcon"). There are no getters for that. I see that the desired fields are inside LeafletMarkerState (but getState() is protected). I tried to get the fields by reflection but was not successful.

getState() should be public as suggested here ? If not, how to access the fields from LeafletMarkerState?

gpedro commented 5 years ago

Same problem here. I use Tooltip content to detect marker type to execute different action