Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# JupyterGIS - A JupyterLab extension for collaborative GIS.
<p align="center"><img width="300" src="https://raw.githubusercontent.com/geojupyter/jupytergis/main/packages/base/style/icons/logo.svg"></p>
<h1 align="center">JupyterGIS</h1>
<h2 align="center">A JupyterLab extension for collaborative GIS</h1>

⚠️ This extension is work in progress. Features and APIs are subject to change quickly. ⚠️

Expand Down
18 changes: 18 additions & 0 deletions packages/base/src/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,30 @@

import { LabIcon } from '@jupyterlab/ui-components';

import logoSvgStr from '../style/icons/logo.svg';
import logoMiniSvgStr from '../style/icons/logo_mini.svg';
import logoMiniAlternativeSvgStr from '../style/icons/logo_mini_alternative.svg';
import rasterSvgStr from '../style/icons/raster.svg';
import visibilitySvgStr from '../style/icons/visibility.svg';
import nonVisibilitySvgStr from '../style/icons/nonvisibility.svg';
import geoJsonSvgStr from '../style/icons/geojson.svg';
import moundSvgStr from '../style/icons/mound.svg';

export const logoIcon = new LabIcon({
name: 'jupytergis::logo',
svgstr: logoSvgStr
});

export const logoMiniIcon = new LabIcon({
name: 'jupytergis::logoMini',
svgstr: logoMiniSvgStr
});

export const logoMiniAlternativeIcon = new LabIcon({
name: 'jupytergis::logoMiniAlternative',
svgstr: logoMiniAlternativeSvgStr
});

export const rasterIcon = new LabIcon({
name: 'jupytergis::raster',
svgstr: rasterSvgStr
Expand Down
1 change: 1 addition & 0 deletions packages/base/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from './constants';
export * from './dialogs/formdialog';
export * from './mainview';
export * from './tools';
export * from './icons';
export * from './types';
export * from './widget';
export * from './formbuilder/objectform/baseform';
Expand Down
3 changes: 3 additions & 0 deletions packages/base/style/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
248 changes: 248 additions & 0 deletions packages/base/style/icons/logo_mini.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions packages/base/style/icons/logo_mini_alternative.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions python/jupytergis_core/src/jgisplugin/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ import { ConsolePanel, IConsoleTracker } from '@jupyterlab/console';
import { IFileBrowserFactory } from '@jupyterlab/filebrowser';
import { ILauncher } from '@jupyterlab/launcher';
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
import { fileIcon } from '@jupyterlab/ui-components';

import { CommandIDs } from '@jupytergis/base';
import { CommandIDs, logoIcon } from '@jupytergis/base';
import { JupyterGISWidgetFactory } from '../factory';
import { JupyterGISModelFactory } from './modelfactory';

Expand Down Expand Up @@ -102,7 +101,7 @@ const activate = (
app.commands.addCommand(CommandIDs.createNew, {
label: args => 'New JGIS File',
caption: 'Create a new JGIS Editor',
icon: args => (args['isPalette'] ? undefined : fileIcon),
icon: args => logoIcon,
execute: async args => {
// Get the directory in which the JGIS file must be created;
// otherwise take the current filebrowser directory
Expand Down
9 changes: 4 additions & 5 deletions python/jupytergis_lab/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
LeftPanelWidget,
RightPanelWidget,
addCommands,
createDefaultLayerRegistry
createDefaultLayerRegistry,
logoMiniIcon
} from '@jupytergis/base';
import {
IJGISFormSchemaRegistry,
Expand Down Expand Up @@ -310,8 +311,7 @@ const controlPanel: JupyterFrontEndPlugin<void> = {
});
leftControlPanel.id = 'jupytergis::leftControlPanel';
leftControlPanel.title.caption = 'JupyterGIS Control Panel';
// TODO Need an icon
// leftControlPanel.title.icon = jcLightIcon;
leftControlPanel.title.icon = logoMiniIcon;

const rightControlPanel = new RightPanelWidget({
model: controlModel,
Expand All @@ -320,8 +320,7 @@ const controlPanel: JupyterFrontEndPlugin<void> = {
});
rightControlPanel.id = 'jupytergis::rightControlPanel';
rightControlPanel.title.caption = 'JupyterGIS Control Panel';
// TODO Need an icon
// rightControlPanel.title.icon = jcLightIcon;
rightControlPanel.title.icon = logoMiniIcon;

if (restorer) {
restorer.add(leftControlPanel, NAME_SPACE);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.