How to show feature layer content from a higher zoom level

This forum covers all questions dealing with visualization of data within the native PTV xMap interface. 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: 2574
Joined: Mon Apr 14, 2014 10:28 am
Contact:

How to show feature layer content from a higher zoom level

Post by Bernd Welter »

HI there,

we've been asked whether it is possible to display specific feature layer content even at a very rough zoom scale.
Here's an example of how to do this in an on premise setting:
On the left side we see that the default settings of the fl cause the renderer not to display the icons at the given zoom level.<br />On the right environment the fl data is already displayed in the same level.
On the left side we see that the default settings of the fl cause the renderer not to display the icons at the given zoom level.
On the right environment the fl data is already displayed in the same level.
To achieve this change I had to change some files in the "/conf/profiles/rendering":
  • fl_trafficincidents.xml is responsible for the generic definition of the "traffic incidents" rendering scheme.
  • You can find similar files for SpeedPatterns, TruckAttributes, ... in the same folder.
Change the lower bounds of the icon's display range from standard=&quot;8-17&quot; to some value such as &quot;3-17&quot;.
Change the lower bounds of the icon's display range from standard="8-17" to some value such as "3-17".
Furthermore:
  • Repeat this for each icon category you want to show up at a rough level.
  • Ensure to cover the proper geographical sub unit, e.g. "<countryStyles countryCodes="US">" for the United States
  • This updated configuration requires a server restart.
  • After the restart all rendering profiles such as silkysand, gravelpit and so son will use the new definition.
  • Stay patient: the CUS will reload the traffic data - therefore you may have to wait for the reloaded traffic data.
  • On client side you should clear the browser cache to see the changes take effect.
Thanks to Uta for the assistance,
Bernd
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