Skip to content

Support of widget in map even when layer have no geometry and fix time dependencies for the widget#11377

Merged
offtherailz merged 6 commits intogeosolutions-it:masterfrom
subashtiwari1010:fix/chart-dimension-issue
Aug 8, 2025
Merged

Support of widget in map even when layer have no geometry and fix time dependencies for the widget#11377
offtherailz merged 6 commits intogeosolutions-it:masterfrom
subashtiwari1010:fix/chart-dimension-issue

Conversation

@subashtiwari1010
Copy link
Copy Markdown
Contributor

Description

This PR fixes issue #11376. It adds the support of the widget for the layer with no geometry and fixes the issue of time dependencies when the map connection disabled and re-enabled.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?
When the layer is added in the map with no geometry, then there is error for that layer (as it does not have any geometry). So, the creation of the widget is not available for it. But, when the same layer is added to the dashboard, then the widget can be created for that layer using other fields.
image
Also, for the current time in the widget, when the map connection is disabled and re-enabled, then the current time shape disappears from the widget.
image image

Fixes #11376

What is the new behavior?
Even if the layer does not have any geometry, the widget can be created just like in the dashboard. But for such case, the connection with the map is disabled so no geometry filtering applies and the widget can be displayed properly.
image

Also, for the current time, even if the connection is toggled, the current time will be visible.
image image

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

Comment on lines +73 to +79
if (!endsWith(targetId, "map") && includes(tableDependencies, k) && !includes(dimensionDependencies, k)) {
return {
...ov,
[k]: `${targetId}.${mappings[k]}`
};
}
if (endsWith(targetId, "map")) {
if (endsWith(targetId, "map") && !includes(dimensionDependencies, k)) {
Copy link
Copy Markdown
Member

@offtherailz offtherailz Aug 8, 2025

Choose a reason for hiding this comment

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

I think this can be removed, because !includes already returns.

Suggested change
if (!endsWith(targetId, "map") && includes(tableDependencies, k) && !includes(dimensionDependencies, k)) {
return {
...ov,
[k]: `${targetId}.${mappings[k]}`
};
}
if (endsWith(targetId, "map")) {
if (endsWith(targetId, "map") && !includes(dimensionDependencies, k)) {
if (!endsWith(targetId, "map") && includes(tableDependencies, k)) {
return {
...ov,
[k]: `${targetId}.${mappings[k]}`
};
}
if (endsWith(targetId, "map")) {

[k]: `${depToTheWidget}.${mappings[k]}`
};
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change

@offtherailz offtherailz enabled auto-merge (squash) August 8, 2025 10:27
@offtherailz offtherailz merged commit 68e1ffb into geosolutions-it:master Aug 8, 2025
5 checks passed
subashtiwari1010 added a commit to subashtiwari1010/MapStore2 that referenced this pull request Aug 8, 2025
offtherailz pushed a commit that referenced this pull request Aug 8, 2025
@offtherailz offtherailz added this to the 2025.02.00 milestone Aug 11, 2025
dsuren1 added a commit to dsuren1/MapStore2 that referenced this pull request Sep 9, 2025
…tinerary

* commit 'ea419127df12f794a56f234f5660632511df7484':
  Update README.md
  Proj4 upgrade and include support for "Grid Based Datum Adjustments" geosolutions-it#11423 (geosolutions-it#11424)
  Bom versions for maven-war-plugin in all POMs.xml (geosolutions-it#11413)
  Fix geosolutions-it#11419 fixed group translation files (geosolutions-it#11420)
  Update geoserver.md (geosolutions-it#11399)
  Bump org.apache.tomcat:tomcat-coyote from 9.0.105 to 9.0.108 in /binary (geosolutions-it#11384)
  Update on the Swedish translation file for MapStore (geosolutions-it#11412)
  Fix geosolutions-it#11258 :For clipping/masking 3D tiles and terrain removed ClippingPlaneCollection and introduced ClippingPolygonCollection (geosolutions-it#11352)
  Fix : geosolutions-it#11400 Added quickFilters also  when exporting data from TableWidget (geosolutions-it#11401)
  Fix geosolutions-it#11404 Problem with user permissions still involving the "Save As" (geosolutions-it#11408)
  Fix geosolutions-it#11406 Pending changes prompt shows up after save as (geosolutions-it#11407)
  Fix geosolutions-it#11374 Improve the Street Smart plugin view for 3D maps visualization (geosolutions-it#11375)
  Update i18n showEmptyMessageGFI (geosolutions-it#11392)
  geosolutions-it#11369: Enhance non hyperlink query field to have spacing (geosolutions-it#11370)
  Bump org.apache.tomcat:tomcat-util from 9.0.105 to 9.0.107 in /binary (geosolutions-it#11305)
  chore: Remove element-closest dependency (geosolutions-it#11251)
  Fix the widget support for the WFS layer with no geom (geosolutions-it#11379)
  Support of widget in map even when layer have no geometry and fix time dependencies for the widget (geosolutions-it#11377)
  Performace Lag when there is a layer with very large geomerty geosolutions-it#11358 (geosolutions-it#11359)
  skip click on layer should return intersected features test on Cesium tests (geosolutions-it#11365)
ale-cristofori pushed a commit that referenced this pull request Oct 8, 2025
…e dependencies for the widget (#11377) (#11378)

(cherry picked from commit 7415a64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support widget creation in map even when layer have no geometry and fix time dependencies for the widget

2 participants