ultimap
Version:
Universal map api
13 lines (10 loc) • 460 B
text/typescript
import { ICreateMarkerPresetProperties, IMarkerPresetStrategy } from '../../interface/preset/marker';
import { markerPresetStorage } from '../utils/marker-preset-storage';
export class LeafletMarkerPresetStrategy implements IMarkerPresetStrategy {
public create(preset: string, props: ICreateMarkerPresetProperties): IMarkerPresetStrategy {
markerPresetStorage.add(preset, {
icon: props.icon,
});
return this;
}
}