Skip to content

Commit

Permalink
fix: typo + use layerStyle when editing points too
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Jul 10, 2024
1 parent 4609440 commit cdb578f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions map/client/mixins/map/mixin.edit-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const editLayers = {
// Use default styling when editing as dynamic styling can conflict
style: (feature) => {
if (['LineString', 'MultiLineString'].includes(feature.geometry.type)) {
return getDefaultLineStyle(feature, layerSytle, _.get(this, 'activityOptions.engine'), 'style.edition.line')
return getDefaultLineStyle(feature, layerStyle, _.get(this, 'activityOptions.engine'), 'style.edition.line')
}
if (['Polygon', 'MultiPolygon'].includes(feature.geometry.type)) {
return getDefaultPolygonStyle(feature, layerStyle, _.get(this, 'activityOptions.engine'), 'style.edition.polygon')
Expand All @@ -89,7 +89,7 @@ export const editLayers = {
}
},
pointToLayer: (feature, latlng) => {
const style = getDefaultPointStyle(feature, null, _.get(this, 'activityOptions.engine'), 'style.edition.point')
const style = getDefaultPointStyle(feature, layerStyle, _.get(this, 'activityOptions.engine'), 'style.edition.point')
style.options = { pmIgnore: false } // Allow geoman edition
return createMarkerFromPointStyle(latlng, style)
}
Expand Down

0 comments on commit cdb578f

Please sign in to comment.