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

FIX: Polygon edit handles too big, lines too thick #1712

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export class MapPerspectiveCom extends React.Component<IMapPerspectiveComProps>
obj.color !== undefined && obj.color !== 0 && obj.color !== null
? flashColor2htmlColor(obj.color)
: "blue",
weight: 2
}
).bindTooltip(obj.name),
];
Expand All @@ -303,6 +304,7 @@ export class MapPerspectiveCom extends React.Component<IMapPerspectiveComProps>
obj.color !== undefined && obj.color !== 0 && obj.color !== null
? flashColor2htmlColor(obj.color)
: "blue",
weight: 2
}
).bindTooltip(obj.name),
];
Expand Down Expand Up @@ -543,6 +545,14 @@ export class MapPerspectiveCom extends React.Component<IMapPerspectiveComProps>
featureGroup: this.leafletMapObjects,
poly: {
allowIntersection: true,
icon: new L.DivIcon({
iconSize: new L.Point(8, 8),
className: 'leaflet-div-icon leaflet-editing-icon'
}),
touchIcon: new L.DivIcon({
iconSize: new L.Point(8, 8),
className: 'leaflet-div-icon leaflet-editing-icon leaflet-touch-icon'
}),
},
circle: false,
circlemarker: false,
Expand All @@ -551,6 +561,17 @@ export class MapPerspectiveCom extends React.Component<IMapPerspectiveComProps>
polygon: {
allowIntersection: false,
showArea: true,
icon: new L.DivIcon({
iconSize: new L.Point(8, 8),
className: 'leaflet-div-icon leaflet-editing-icon'
}),
touchIcon: new L.DivIcon({
iconSize: new L.Point(8, 8),
className: 'leaflet-div-icon leaflet-editing-icon leaflet-touch-icon'
}),
shapeOptions: {
weight: 2
}
},
circle: false,
circlemarker: false,
Expand Down