Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Fix Show Layer Styles on geoJson extended action #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/pages/geoJson-extended-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,17 @@ function onEachFeature(feature, layer) {

getVoivodeshipName(feature, layer);

this.openPopup();

// style
this.setStyle({
layer.setStyle({
fillColor: '#eb4034',
weight: 2,
color: '#eb4034',
fillOpacity: 0.7,
});
});
layer.on('mouseout', function () {
this.closePopup();
// style
this.setStyle({
layer.setStyle({
fillColor: '#3388ff',
weight: 2,
color: '#3388ff',
Expand Down Expand Up @@ -73,4 +70,4 @@ const MapWrapper = () => {
)
}

export default MapWrapper;
export default MapWrapper;