-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide map layer info tool when map layers is off or no arcgis feature …
…info layers exist (#1016) * Hide map layer info tool when map layers is off or no arcgis feature layers exist * Switch from using SyncUiEventId.ViewStateChanged to custom event MapFeatureInfoTool.toolSyncUiEventId to trigger isHidden for MapFeatureInfoTool * Switch to using exported SyncUiEventId MapLayersSyncUiEventId.MapImageryChanged * Add change file * Switch to checking supportsMapFeatureInfo instead of hardcoded string ArcGISFeature * Draft PR rework (#1035) * Draft PR rework * Add isOverlay parameter to supportsMapFeatureInfo() * Add check if map layer is visible to enable tool * Removed event handling for SyncUiEventId.ActiveViewportChanged and SyncUiEventId.ViewStateChanged to rely only on MapLayersSyncUiEventId.MapImageryChanged * Ignore lint error for alpha supportsMapFeatureInfo use
- Loading branch information
Showing
5 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@itwin-map-layers-6d4f9d4b-6cb3-4a4d-b9b4-e857dcfaf58c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "Hide map layer info tool when map layers is off or no arcgis feature layers exist", | ||
"packageName": "@itwin/map-layers", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
|
||
export enum MapLayersSyncUiEventId { | ||
/** The display style settings map imagery has changed. */ | ||
MapImageryChanged = "mapimagerychanged", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters