resetStyle in geoJSON pointToLayer circleMarkers

المشرف العام

Administrator
طاقم الإدارة
I am creating a geoJSON layer, with pointToLayer returning circleMarkers. In that layer's oneachfeature, I am triggering a style change on hover, and this works fine. However, I cannot reset the style on mouseout. It all works with lines and polygons, but not with points created as circleMarkers via pointToLayers.

How can I reset the style of such circleMarkers on mouseout?



أكثر...
 
أعلى