forked from 52North/geonode-mapstore-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added table of content to open layer details in map view. (GeoNode#1661…
…) (GeoNode#1917) * Added table of content to open layer details in map view. Fixes issue#1660. * Updated to the newer version. * Code refactor * Fixed instability issues for info button on TOC. * Fixed linked resources for info button on TOC and code cleanup. * Avoided repeating calls to get layer dataset fields including linked resources for info button on TOC. * Fixed localConfig json file for the info button. * Reverted api changes to include linked resources, because they are already included for 'viewer_common' api_preset. * Fixed getDatasetByPk definition. * Fixed linting issues. * Fixed bug where info button was misbehaving when any maplayer had no dataset. * Fixed a bug where the title of the dataset was not changing on the details panel. --------- Co-authored-by: Suren <[email protected]> (cherry picked from commit 9b1dcb4) Co-authored-by: ahmdthr <[email protected]>
- Loading branch information
Showing
10 changed files
with
303 additions
and
97 deletions.
There are no files selected for viewing
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
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
25 changes: 25 additions & 0 deletions
25
geonode_mapstore_client/client/js/plugins/detailviewer/tabComponents.js
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,25 @@ | ||
/* | ||
* Copyright 2024, GeoSolutions Sas. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { connect } from 'react-redux'; | ||
import DetailsLocations from '@js/components/DetailsPanel/DetailsLocations'; | ||
import DetailsAssets from '@js/components/DetailsPanel/DetailsAssets'; | ||
import DetailsAttributeTable from '@js/components/DetailsPanel/DetailsAttributeTable'; | ||
import DetailsLinkedResources from '@js/components/DetailsPanel/DetailsLinkedResources'; | ||
import DetailsSettings from '@js/components/DetailsPanel/DetailsSettings'; | ||
import { updateResourceProperties } from '@js/actions/gnresource'; | ||
|
||
const tabComponents = { | ||
'attribute-table': DetailsAttributeTable, | ||
'linked-resources': DetailsLinkedResources, | ||
'locations': DetailsLocations, | ||
'assets': DetailsAssets, | ||
'settings': connect(() => ({}), { onChange: updateResourceProperties })(DetailsSettings) | ||
}; | ||
|
||
export default tabComponents; |
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
Oops, something went wrong.