Skip to content

Commit f769482

Browse files
committed
Use a marker icon
1 parent 098e719 commit f769482

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

packages/base/src/constants.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { IDict, ProcessingCommandIDs } from '@jupytergis/schema';
2-
import {
3-
addIcon,
4-
LabIcon,
5-
redoIcon,
6-
undoIcon,
7-
} from '@jupyterlab/ui-components';
2+
import { LabIcon, redoIcon, undoIcon } from '@jupyterlab/ui-components';
83

94
import * as BaseCommandIDs from './commands/BaseCommandIDs';
105
import {
@@ -15,6 +10,7 @@ import {
1510
moundIcon,
1611
rasterIcon,
1712
vectorSquareIcon,
13+
markerIcon,
1814
} from './icons';
1915

2016
/**
@@ -61,7 +57,7 @@ const iconObject = {
6157
[CommandIDs.symbology]: { iconClass: 'fa fa-brush' },
6258
[CommandIDs.identify]: { icon: infoIcon },
6359
[CommandIDs.temporalController]: { icon: clockIcon },
64-
[CommandIDs.addMarker]: { icon: addIcon },
60+
[CommandIDs.addMarker]: { icon: markerIcon },
6561
};
6662

6763
/**

packages/base/src/icons.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import logoSvgStr from '../style/icons/logo.svg';
1616
import logoMiniSvgStr from '../style/icons/logo_mini.svg';
1717
import logoMiniAlternativeSvgStr from '../style/icons/logo_mini_alternative.svg';
1818
import logoMiniQGZ from '../style/icons/logo_mini_qgz.svg';
19+
import markerSvgStr from '../style/icons/marker.svg';
1920
import moundSvgStr from '../style/icons/mound.svg';
2021
import nonVisibilitySvgStr from '../style/icons/nonvisibility.svg';
2122
import rasterSvgStr from '../style/icons/raster.svg';
@@ -109,3 +110,8 @@ export const targetWithCenterIcon = new LabIcon({
109110
name: 'jupytergis::targetWithoutCenter',
110111
svgstr: targetWithoutCenterSvgStr,
111112
});
113+
114+
export const markerIcon = new LabIcon({
115+
name: 'jupytergis::marker',
116+
svgstr: markerSvgStr,
117+
});
Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)