diff --git a/umap/static/umap/js/modules/data/features.js b/umap/static/umap/js/modules/data/features.js index be5de91b..bff9c8ad 100644 --- a/umap/static/umap/js/modules/data/features.js +++ b/umap/static/umap/js/modules/data/features.js @@ -14,6 +14,7 @@ import { LeafletPolygon, LeafletPolyline, MaskPolygon, + CircleMarker, } from '../rendering/ui.js' import { SCHEMA } from '../schema.js' import * as Utils from '../utils.js' @@ -714,6 +715,7 @@ export class Point extends Feature { } getUIClass() { + if (this.getOption('iconClass') === 'Circle') return CircleMarker return super.getUIClass() || LeafletMarker } diff --git a/umap/static/umap/js/modules/schema.js b/umap/static/umap/js/modules/schema.js index 0509d7af..a032d39b 100644 --- a/umap/static/umap/js/modules/schema.js +++ b/umap/static/umap/js/modules/schema.js @@ -436,6 +436,13 @@ export const SCHEMA = { ], default: 'Default', }, + radius: { + type: Number, + default: 4, + impacts: ['data'], + label: translate('Radius in px'), + inheritable: true, + }, remoteData: { type: Object, impacts: ['remote-data'],