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 a button to remove all raster layers added to the map #904

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

MohamedHamouGisaia
Copy link
Member

@MohamedHamouGisaia MohamedHamouGisaia commented Oct 17, 2024

@MohamedHamouGisaia
Copy link
Member Author

Needs toolkit release

@@ -80,6 +80,9 @@
</div>
</div>
</div>
<div class="arlas-rasters-manager" [class.arlas-rasters-manager_with_geocoding]="enableGeocodingFeature" *ngIf="visualizeService.isRasterOnMap">
Copy link
Contributor

Choose a reason for hiding this comment

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

For the class name, to respect BEM, it could be arlas-rasters-manager--geocoding

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

if (!!this.resultListConfigPerContId.get(c.identifier)) {
if (!!this.resultListConfigPerContId.get(c.identifier).visualisationLink && !listActionsId.includes('visualize')) {
c.addAction({ id: 'visualize', label: 'Visualize', cssClass: '', tooltip: 'Visualize on the map' });
c.addAction({
id: 'visualize', label: 'Visualize', icon: 'visibility', cssClass: '', tooltip: 'Visualize on the map',
Copy link
Contributor

Choose a reason for hiding this comment

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

missing marker

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

c.addAction({
id: 'visualize', label: 'Visualize', icon: 'visibility', cssClass: '', tooltip: 'Visualize on the map',
reverseAction: {
id: 'remove', label: 'Remove from map', cssClass: '', tooltip: 'Remove from map', icon: 'visibility_off'
Copy link
Contributor

Choose a reason for hiding this comment

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

missing marker

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

}
if (!!this.resultListConfigPerContId.get(c.identifier).downloadLink && !listActionsId.includes('download')) {
c.addAction({ id: 'download', label: 'Download', cssClass: '', tooltip: 'Download' });
}
}
if (!!mapcontributor && !listActionsId.includes('zoomToFeature')) {
c.addAction({ id: 'zoomToFeature', label: 'Zoom to', cssClass: '', tooltip: 'Zoom to product' });
Copy link
Contributor

Choose a reason for hiding this comment

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

missing marker

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@MohamedHamouGisaia MohamedHamouGisaia merged commit c268682 into develop Oct 31, 2024
2 checks passed
@MohamedHamouGisaia MohamedHamouGisaia deleted the feat/remove_visu-layers branch October 31, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display x/y/z layers in ARLAS
4 participants