Are you .NET fan? Discover our new PTV xServer.NET 1.4

PTV_MapserverPTV xServer .NET is an SDK which adds PTV xServer functionality to .NETclient applications. The new version of the PTV xServer .NET SDK 1.4 comes along with new controls and demo use cases.

Here are the highlights of the new version:

  • New interface IToolTips, which can be implemented by layers, to provide textual
    information around a dedicated location (commonly the mouse position). The UntiledLayer class implements this interface.
  • The layer responsible for showing content of Web Map Services is integrated into the Ptv.XServer.Controls.Map.dll. It allows re-projections of returned images to achieve a matching of the content provided by accompanying layers.
  • New Demo Center use cases, which are also available by the click-once-demo from http://xserverinternet.azurewebsites.net/xserver.net/ and demonstrate the usage of PTV Feature Layers: By means of this tool, street attributes can be activated for route calculation and shown in the map. Five different types are integrated by this use case, eventually restricted by the availability in the used map: Traffic incidents, Truck attributes, Preferred routes, Restriction zones and Speed patterns

dotnetdemocenter

The PTV xServer .NET Demo Center is part of a full-featured SDK which provides the Demo Center’s source along with other components and samples. More information on PTV xServer .NET can be found here.

A test version of the SDK is available for download via CustomerArea. Please notice that you have to register online via PTV Support form to achieve access to PTV’s customer area.

Interactive map applications with PTV xServer .NET

PTV xServer .NET is an SDK which adds xServer functionality to .NET PTV_Mapserverclient applications. The new version of the PTV xServer .NET SDK 1.3 comes along with additional controls, improved Visual Studio integration and enhanced demo use cases.

Highlights of the SDK update 1.3:

  • PTV xServer .NET is ready for PTV xServer Internet: The map controls can now access PTV xServer Internet, which is provided via Azure currently.
  • A new layer with the HERE Satellite View
  • Also WPF Map controls can be included in the toolbox of Visual Studio
  • Extensions of the PTV xServer .NET Demo Center which illustrate PTV xServer use cases: Tour planning scenarios, drag & drop routing, enhanced selection mechanism for geographical objects, extension of the shape layer including complex WPF controls

For a first glance start our Demo Center and test the new use cases: http://xserverinternet.azurewebsites.net/xserver.net/

xServer.NET_DemoCenterTourplanning

The PTV xServer .NET Demo Center is part of a full-featured SDK which provides the Demo Center’s source along with other components and samples. More information on PTV xServer .NET can be found here.

A test version of the SDK is available for download via DevZone. Please notice that you have to register online via PTV Support form to achieve access to PTV’s customer area.

Advanced Line Styling to visualize the direction of Routes and Tours

We were asked how to indicate the direction for a route or a tour using the shape layer. We’ve built a sample for it which demonstrates two options:

1. Use a stroked MapPolyline and animate the StrokeDashOffset property. This technique is also used at the RoutingDemo of the demo center application.
2. Implement a custom MapShape which renders little arrows along the polyline. This technique is a little bit more complex, because you have to calculate the arrow coordinates by yourself. I’ve implemented an ArrowDashLine class which handles this.
AdvancedLineStyles Download application, x-zip-compressed::

To indicate the directions of transports, you can also take a look at MapArrowDemo explained here.

For any questions please contact the PTV xServer Support Team.

How to implement custom MapShapes

A sample which shows how to implement a custom shape type using the example of arrows between locations. We’ve adopted Charles Petzold’s WPF arrow sample  to work with geographic coordinates.

MapArrowDemo

Download application, x-zip-compressed:

For any questions please contact the PTV xServer Support Team.

Use your own xMap Rendering Styles with PTV xServer .NET

  • Create your own rendering configuration (e.g. myRender.ini). You find the description of the format in the PTV xMap Server documenation
  • Copy the xmap-ajax-bg.properties and rename it (e.g. xmap-ajax-bg-myprofile.properties)
  • Change the entry for the rendering profile in this file, (e.g. map.profile=myRender.ini)
  • In PTV xServer .NET right after initialization of the map you can set this profile as custom profile
((map.Layers["Background"] as TiledLayer).TiledProvider as 
XMapTiledProvider).CustomProfile = "ajax-bg-myprofile";

Currently you can set the custom configuration only once right after the initialization but you cannot change it afterwards because the profile name has to be considered for the tile cache then. We’ll change this behavior for the next release, so you can change the profiles at runtime like in the sample we provide here.

CustomBackgroundProfiles

 

Download :

For any questions please contact the PTV xServer Support Team.

[ratings]

Multi-touch gestures for PTV xServer .NET

One of our collegues attended at Microsoft Build Developer Conference and came home with an Acer Iconia W3 and a Surface Pro tablet. So we could test PTV xServer .NET with multi-touch on Windows 8. We’ve added a pinch-zoom function, so multi-touch will be fully supported in the next version.

[youtube=http://www.youtube.com/watch?v=bSf4j0nvuNs&feature=youtu.be]

[ratings]