Skip to content

Layer properties are not accessible if its style is invalid #3415

@allyoucanmap

Description

@allyoucanmap

Description

In some cases styles are created and updated correctly but when apply to the layer return an exception.
If GetMap has exception TOCItemSettings is not accessible and the style parameters can't be changed.

  • Following style cause the issue
@styleTitle 'Solid fill';
@styleAbstract '';

[this_is_not_a_param = 'a'] {
	fill: #aaaaaa;
}

In case of Bug (otherwise remove this paragraph)

Browser Affected
(use this site: https://www.whatsmybrowser.org/ for non expert users)

  • Internet Explorer
  • Chrome
  • Firefox
  • Safari

Browser Version Affected

  • all

Steps to reproduce

  • open a map with vector layer
  • select the layer and open the settings of layer
  • select style tab
  • create a new style and edit it
  • write the style* that cause the error

Expected Result

  • There should be a way to access the parameters to update the layer parameters or at least reset the layer parameters to ensure that the error depends on wrong paramaters

Current Result

  • Layer parameters can't be chaged and settings aren't accessible

Other useful information (optional):

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions