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. Download application, x-zip-compressed::
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.
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.
The “Windows 8 Modern UI” (formerly known as “Metro”) defines a new programming model for apps which supports tablets and other touch devices.
About Cookies on This Site
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.