-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Make measure layer queryable #2078
base: master
Are you sure you want to change the base?
Conversation
Hi, nice addition!
|
|
I see, the numeral and unit is returned via the Edit. Right, utils/formatareastring.js and formatlengthstring.js need to be localized ...via getattributes.js, selecteditem.js, featureinfo.js and the viewer I think |
src/geometry/getarea and /getlength seems to be used by the replacer |
Indeed. And it is possibly the replacer that needs to become aware of "null" results from getArea, getLength. attributes: [
{ html: `${locLength}: {{@length(1)}}`,
localization },
{ html: `${locArea}: {{@area(1)}}`,
localization }
], even if it looks a little funny to send the loc object for every instance of as well as making something aware in order to not show 0.0 results. |
Info on a polygon should not include "Length: 0.0" now and vice versa for area. In order to achieve this some things were changed:
|
Fixes #2076