Skip to content

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

@subashtiwari1010

Description

@subashtiwari1010

Description

  1. When the layer does not have geometry, the creation of widget is blocked in the map even though the widget can be created in the dashboard.
  2. Current time in widget: When the map sync is disabled and enabled again, the dependency of the timeline i.e. currentTime and offsetTime will be removed, hence the time shapes is removed from the widget.

How to reproduce

  1. For the issue of layer with no geometry:
  • Go to create new map
  • Add a layer with no geometry in it
  • Click the layer in the TOC, you will not be able to see the tool to create widget
    Exit the map page now:
  • Go to create new dashboard
  • Add the same layer that have no geometry
  • Click to add widget, now you can create the widget for that layer
  1. For the current time in widget:
  • Add a layer
  • Click the layer to create a widget
  • Add the field in the X and Y axis
  • Go to axes, in the x axis, change the type to date and enable the current time
  • Disable the connection with map
  • Re-enable the connection with map

Expected Result

  1. Even when the layer fails to load in the map (i.e. due to no geometry in it), the button to create the widget is displayed. So, for such layer the parameter mapSync: false is passed so the widget can be created without syncing the data and map.
  2. Even when the connection is disabled and enabled, the time shape should not disappear.

Current Result

  1. When the layer fails to load, on the TOC, the create new widget button will be hidden.
  2. When connection is disabled and enabled, the time shape disappears from the widget.
  • Not browser related

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions