How to change zoom settings for houseNumbers (xMap1 and xMap2)?

This forum covers all questions dealing with visualization of data within the native PTV xMap interface and the
PTV Developer Raster Maps API
Please remember that additional plugins such as AJAX or Leaflet may be handeled in other forums.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2849
Joined: Mon Apr 14, 2014 10:28 am
Contact:

How to change zoom settings for houseNumbers (xMap1 and xMap2)?

Post by Bernd Welter »

I've been asked how to change the scale from which the visualization of house numbers is enabled in xMap2.
This can be don in onPremise installations by using the render.ini mechanism.

The underlying keys are:
;
; CONFIGURATION OF HOUSE NUMBER DISPLAY
;
[config.housenumbers]
;
; House numbers are drawn below this scale.
;
;showHouseNr=0.250000
showHouseNr=3.250000
;
; Sets the font id (defined in [config.fontmap]) for the house numbers.
; Pay attention to the effect, if the font is greater or smaller configurated than
; the standard font, the distance to the street border at the key distanceToStreetBorder
; must be adjusted.
;
housenr=4
;
; Sets the font color.
;
color=16711680
;
; Sets the distance to street border in pixel.
;
distanceToStreetBorder=18


Here's what this looks like:
sample with a scale value of 3.25. Pretty ugly, isn't i?
sample with a scale value of 3.25. Pretty ugly, isn't i?
Please check your desired profile's INI file:
  • If it contains the keys: update the values
  • If they are missing: add them
  • if you don't have a profile: create one ;-)
Here's also some feedback from our DEV:
In xserver2 we offer hardcoded rendering profiles like Silkysand or Gravelpit. It is therefore possible to display the house numbers earlier, but with the limitation that it is only possible up to 3.9 SU/pixel.
The house number data are stored in physical files called *.lv1. The *lv1 files can be displayed in silkysand profile up to 3.9 SU/pixel.

The current setting is to display house numbers up to 0.25 SU/pixel.
[config.housenumbers]
;
; House numbers are drawn below this scale.
;
showHouseNr=0.250000

When the customer wants to see the house numbers earlier, he only has the option of creating his own profile based on Silkysand, for example. He can import this profile into his xserver2 environment.
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply