NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello, I would know if It is possible shows multile area simultaneously (like Countries, Region, City,..) selected one time by name or ID like Nominatim shows.

In instance I imagine a link like https://www.openstreetmap.org/relation/45319_44915 that shows simultaneously https://www.openstreetmap.org/relation/45319 (Monza, IT) city area and https://www.openstreetmap.org/relation/44915 (Milan, IT) auto adapt the zoom and center in order to show all areas (in this sample they are 2, but could be dozens...)

And also, I will pass other parameter (the area color) like https://www.openstreetmap.org/relation/45319_44915#FF0000_00FF00 so, first area will be RED (FF0000 , RGB Hexadecimal notation) painted and the second one Green (00FF00) all with transaprent (alpha channel) = 50% in order to show behind the coloured area.

asked 26 Sep '19, 11:02

Skelos's gravatar image

Skelos
11112
accept rate: 0%


You will have to write a program in e.g. JavaScript to do this. Perhaps the Chloropeth Leaflet Example has a lot of the functionality you need.

permanent link

answered 26 Sep '19, 16:12

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×53
×32
×1

question asked: 26 Sep '19, 11:02

question was seen: 2,392 times

last updated: 26 Sep '19, 16:12

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum