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

I want to show addr:housenumber on zoom level 16 but for some cities (like Berlin) the street names are covered by house numbers. It looks ok in Maperitive, but if use "generate-tiles", the numbers are cluttered together.

My question is: how can I show "less" house numbers?

I posted the rule below. I played aroud with placement-value and halo-width, but with no success. The worst actually: the house numbers are rendered above the street names. Even if that wasn't the case, the tiles would work for me.

Another idea was to use regex to only show numbers which end with a "0" - i.e. are divisible by 10.

There is a little documentation about this under feature selector: http://maperitive.net/docs/Feature_Selectors.html. But I don't know how I could parse the value of addr:housenumber through regex.

Any ideas? Thanks, micz

P.S. here some more info and the rules:

http://stackoverflow.com/questions/12403842/check-number-divisibility-with-regular-expressions

target : housenumber
    define
        min-zoom : 16
        text : [[addr:housenumber]]
        text-halo-width : 0
        text-color: #666666
        font-weight: normal
        font-size : 13
        placement-value : 0.01
    draw : text

asked 26 Sep '13, 10:32

micz's gravatar image

micz
41113
accept rate: 0%

1

Have you already tried to ask that on https://groups.google.com/forum/#!forum/maperitive ?

(26 Sep '13, 17:19) stephan75

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:

×63
×48
×22

question asked: 26 Sep '13, 10:32

question was seen: 11,862 times

last updated: 26 Sep '13, 17:19

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