Skip to content

Filtering a layer on a decimal attribute hides decimals #10640

@AhmedBejaouiCGI

Description

@AhmedBejaouiCGI

Description

When filtering a layer on a numeric attribute, if the attribute is a float, you can enter a decimal value (e.g., 0.01). However, it will display the rounded value when you exit the value field. Despite this, the filtering is applied correctly.

This issue was already raised : #7842

Here is an example on the map https://dev-mapstore.geosolutionsgroup.com/mapstore/#/viewer/10358.

Decimal_number_issue.mov

How to reproduce

  • Go to the filters
  • Choose a number field
  • Enter a decimal number

Expected Result

The field should show the decimal number
Current Result

The number is rounded for the user.

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions