@ -1,19 +1,20 @@
import { Icon , IconOptions } from 'leaflet' ;
import { Icon , IconOptions } from 'leaflet' ;
import { defineProps , str } from '../core/props.ts' ;
import { emitIconChanged } from '../core/register.ts' ;
import { emitIconChanged } from '../core/register.ts' ;
const PROPS = {
const PROPS = defineProps ( {
iconUrl : { attr : 'icon-url' } ,
iconUrl : str ( ) ,
iconRetinaUrl : { attr : 'icon-retina-url' } ,
iconRetinaUrl : str ( ) ,
iconSize : { attr : 'icon-size' } ,
iconSize : str ( ) ,
iconAnchor : { attr : 'icon-anchor' } ,
iconAnchor : str ( ) ,
popupAnchor : { attr : 'popup-anchor' } ,
popupAnchor : str ( ) ,
tooltipAnchor : { attr : 'tooltip-anchor' } ,
tooltipAnchor : str ( ) ,
shadowUrl : { attr : 'shadow-url' } ,
shadowUrl : str ( ) ,
shadowRetinaUrl : { attr : 'shadow-retina-url' } ,
shadowRetinaUrl : str ( ) ,
shadowSize : { attr : 'shadow-size' } ,
shadowSize : str ( ) ,
shadowAnchor : { attr : 'shadow-anchor' } ,
shadowAnchor : str ( ) ,
className : { attr : 'class-name' } ,
className : str ( ) ,
} as const ;
} ) ;
const JSON_KEYS = new Set ( [
const JSON_KEYS = new Set ( [
'iconSize' ,
'iconSize' ,