MinLevel with ShapeLayer

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.
Post Reply
infpro_mi

MinLevel with ShapeLayer

Post by infpro_mi »

Hello,

I would like to set the MinLevel of a ShapeLayer, to hide symbols at a specific degree of detail.

But the ShapeLayer does not support the MinLevel property. (only the UntiledLayer seems to support MinLevel)

How can we set the MinLevel of a ShapeLayer?
Or should I use another layer type to show symbols. (truck, ball, ...)

By the way, is it possible to show custom symbols? (e.g., gas station)
Do you offer more predefined symbols than Ball, Crosshair, Cube...? (Ptv.XServer.Controls.Map.Symbols)
For example, gas station or POI.

Thanks!
Best regards
Martin
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: MinLevel with ShapeLayer

Post by Oliver Heilig »

Hello Martin,

you can add either custom bitmaps or custom vector elements to the shape layer. Take a look at SymbolsAndLabels or the Balloon.xaml in ToursAndStops here https://github.com/ptv-logistics/xservernet-bin

Here is a detailed explation for custom vector symbols http://devblog.ptvgroup.com/2013/08/08/ ... p-markers/

For the display range. You are right, there's currently no Min/Max visible for the shape layer. Will look if there's another simple way to restrict the display range for shapes.

Oliver
Post Reply