-
-
Notifications
You must be signed in to change notification settings - Fork 122
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] Add basic geometry attributes for custom schema inline expressions #979
Comments
OK got it, these should be relatively straightforward to add although I might want to find a way to handle other units (km, miles, feet, acres, hectares, etc.) Also I don't think anything has had to compute exact distances between lat/lon yet so will need to add in that support to the java layer as well. |
This might be helpful. Though in MapLibre you can apply multiplication expressions to attributes before displaying them as labels, so developer can easily apply conversions themselves. In my proposal I have the default units at km and km2, but they should probably be m and m2 instead to better accommodate more human-sized features. |
Take a look at #1084 and let me know what you think - it exposes all of the geometry utilities that java profiles have access to to inline expressions so I think it should cover these cases. |
@msbarry Looks perfect for our use case, thanks! |
Is your feature request related to a problem? Please describe.
For OpenTrailMap I'd like to be able to be able to show the trail length. I'd also like to filter parks by size/coverage with MapLibre instead of with
min_size
in the tiles (gets around our need for #965 too).Describe the solution you'd like
I'd like to be able to do something like the below. I'm not sure about the best syntax or property names, or if these should be functions instead.
For point features the area/length would return zero and the min/max lat/lon would just be the feature's lat/lon.
The text was updated successfully, but these errors were encountered: