Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add layer browser icon for geotiff #321

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 packages/base/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ const iconObject = {
ImageSource: { iconClass: 'fa fa-image' },
VideoSource: { iconClass: 'fa fa-video' },
ShapefileSource: { iconClass: 'fa fa-file' },
GeoTiffSource: { iconClass: 'fa fa-gear' },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gear, as in "cog"? Excellent choice ;)


RasterLayer: { icon: rasterIcon },
VectorLayer: { iconClass: 'fa fa-vector-square' },
HillshadeLayer: { icon: moundIcon },
ImageLayer: { iconClass: 'fa fa-image' },
VideoLayer: { iconClass: 'fa fa-video' },
WebGlLayer: { iconClass: 'fa fa-gear' },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to have a dedicated icon for webGL layer? As a user, I don't think this is a meaningful classification. A webGL layer in openlayers can be a raster tile layer or a vector layer. What about showing the raster or vector icons depending on which?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for a distinct icon for better identification. Since we have a dedicated handling for a webGL layer maybe using this icon could make more sense?


[CommandIDs.redo]: { icon: redoIcon },
[CommandIDs.undo]: { icon: undoIcon },
Expand All @@ -95,7 +97,7 @@ const iconObject = {
[CommandIDs.newImageEntry]: { iconClass: 'fa fa-image' },
[CommandIDs.newVideoEntry]: { iconClass: 'fa fa-video' },
[CommandIDs.newShapefileLayer]: { iconClass: 'fa fa-file' },
[CommandIDs.newGeoTiffEntry]: { iconClass: 'fa fa-image' },
[CommandIDs.newGeoTiffEntry]: { iconClass: 'fa fa-gear' },
[CommandIDs.symbology]: { iconClass: 'fa fa-brush' },
[CommandIDs.identify]: { iconClass: 'fa fa-info' }
};
Expand Down
Loading