Open plepe opened 10 years ago
node[natural=peak].order-numerical(ele) {
...
}
Possible pseudo classes: .order-numerical()
, .order-alphabetical()
, .order-natural()
. Expression in brackets is either a tag key or an eval expression. An optional second argument could specify order direction, e.g. 'asc' or 'desc'. -> .order-numerical(ele, desc)
.
Pseudo classes for sure are prepended by ':', so the correct list should be :order-numerical()
, :order-alphabetical()
, :order-natural()
.
A third parameter could define the default value (if the first parameter evaluates to none) -> :order-numerical(ele, desc, 0)
.
The 'highest peaks' example does not scale well with higher distances, resp. more peaks, as more and more distances have to be calculated. A different approach would be to order all peaks in the current view port by elevation descending and then process them one by one:
This is currently not possible -> it requires (at least):
How could/should this code look like? Ideas?