I'm having trouble getting a layer to show on top of another - a car park to show on top of a sports arena - see http://www.openstreetmap.org/?lat=51.423296&lon=-2.835831&zoom=18&layers=M

There should be 2 car parks showing on the stadium (left hand) but I can only get the small one to render. I've tried making it a higher layer which didn't seem to work so used an inner/outer multi-polygon. This worked for one of the two but not the other. I don't understand!

Any advice please?

asked 11 Nov '11, 09:13

FollowMeChaps's gravatar image

FollowMeChaps
3107714
accept rate: 0%

edited 11 Nov '11, 09:31

gnurk's gravatar image

gnurk
6.1k106095


I think there are a number of issues here, such as how the OSM data gets translated into the database that Mapnik uses for rendering, so the layers tags don't always work in the way you expect. I note though that you've tried using multipolygons to make the car parks holes in the stadium, which has worked for the smaller one but not the larger. I suspect this will be because the larger car park, while given the role of inner, isn't entirely within the outer - see for example this node.

permanent link

answered 11 Nov '11, 10:06

EdLoach's gravatar image

EdLoach ♦
18.1k14148263
accept rate: 23%

Gosh, you are a sharp cookie Ed, I didn't spot that. I've tweaked it and will now wait and see if that works. Many thanks. Robin

(11 Nov '11, 10:31) FollowMeChaps

Refreshing now and the large car park appears, but the small one is now green. I wonder if it is because you have it twice in the multipolygon rather than once? http://www.openstreetmap.org/browse/way/136294027

(11 Nov '11, 10:45) EdLoach ♦
Your answer
toggle preview

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:

×389
×169

question asked: 11 Nov '11, 09:13

question was seen: 2,508 times

last updated: 11 Nov '11, 10:45

powered by OSQA