This commit is contained in:
Yohan Boniface 2024-11-15 18:54:16 +01:00 committed by GitHub
commit 862dd91eb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -14,6 +14,7 @@ import {
LeafletPolyline, LeafletPolyline,
LeafletPolygon, LeafletPolygon,
MaskPolygon, MaskPolygon,
CircleMarker,
} from '../rendering/ui.js' } from '../rendering/ui.js'
import loadPopup from '../rendering/popup.js' import loadPopup from '../rendering/popup.js'
@ -674,6 +675,7 @@ export class Point extends Feature {
} }
getUIClass() { getUIClass() {
if (this.getOption('iconClass') === 'Circle') return CircleMarker
return super.getUIClass() || LeafletMarker return super.getUIClass() || LeafletMarker
} }

View file

@ -407,6 +407,13 @@ export const SCHEMA = {
], ],
default: 'Default', default: 'Default',
}, },
radius: {
type: Number,
default: 4,
impacts: ['data'],
label: translate('Radius in px'),
inheritable: true,
},
remoteData: { remoteData: {
type: Object, type: Object,
impacts: ['remote-data'], impacts: ['remote-data'],