Hello, I hope you're all doing well! First of all, unfortunately, my knowledge regarding javascript query building in Overpass is relatively limited. I would like to create a map of German postalcode areas that are colored differently. It can happen that several postal code areas should have the same color. The following code is already functioning:
However, I'm pretty sure that there is room for improvement for shortening the code and, therefore, the URL link created from this query. Maybe it is possible to place several postal codes in one relation? Maybe the style code can be improved to merge the postal codes with the same color? Thank you very much in advance! All the best Josh asked 31 Oct '22, 09:39 Joshua1511 |
MapCss works on a default system so you can specify a colour for the relations you want red & specify postal_codes for those with a different colour. If you want labels to display in all areas it only needs to be declared once. In your specific example there's no requirement to search using the area as the postal_codes are unique, but that might no be true in every case. In your specific example you could also reduce the search to answered 31 Oct '22, 11:02 DaveF This is awesome! Thank you very much! I'll play a bit around with your code.
(31 Oct '22, 11:09)
Joshua1511
|