https://github.com/ptv-logistics/xserver.net-samples
A collection of PTV xServer .NET samples and demos
https://github.com/ptv-logistics/xserver.net-samples
c-sharp dotnet gis ptv-xserver shapefile sharpmap wms
Last synced: 6 months ago
JSON representation
A collection of PTV xServer .NET samples and demos
- Host: GitHub
- URL: https://github.com/ptv-logistics/xserver.net-samples
- Owner: ptv-logistics
- License: mit
- Created: 2014-06-06T12:43:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T15:45:00.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T08:14:21.192Z (6 months ago)
- Topics: c-sharp, dotnet, gis, ptv-xserver, shapefile, sharpmap, wms
- Language: C#
- Homepage: http://xserverinternet.azurewebsites.net/xserver.net/
- Size: 81.9 MB
- Stars: 9
- Watchers: 11
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
xserver.net-samples
===================A collection of samples and demos for [PTV xServer .NET](https://xserverinternet.azurewebsites.net/xserver.net/).
### Resources
* [xserver.net](https://github.com/ptv-logistics/xserver.net) - Source code for PTV xServer.NET
* [xserver.net-docs](https://ptv-logistics.github.io/xserver.net-docs) - API documentation for xServer.NET
* [DemoCenter](https://xserverinternet.azurewebsites.net/xserver.net/) - PTV xServer.NET Demo Center
* [NuGet Package](https://www.nuget.org/packages/Ptv.XServer.Net) - Install-Package Ptv.XServer.Net### Remarks
For xServer internet an additional authentication is needed compared to an on-premise solution. This authentication consists of a common user/password pair which has to be set at the corresponding property of the Map control. A special user xtok exists which can be used for unregistered clients. The corresponding password, called xToken, can be [obtained](https://www.ptvgroup.com/en/solutions/products/ptv-xserver/test-now) to grant full access of xServer functionality.Due to this full access the xToken cannot be provided in the source code. Instead, place holders are used. They are replaced when the build process is started by a tool called Insert-XS.Net-Token.exe. When this tool finds an appropriate place holder, it shows a dialog to insert the xToken.
To access multiple sample projects without any tedious repetition of xToken insertion, Insert-XS.Net-Token.exe can be used to substitute the place holders in all projects. This tool is located in libs subfolder of the base directory. Via command line add the following parameters:
Insert-XS.Net-Token.exe -path "base directory of xserver.net-samples project"
### The samples
#### [ActiveX](ActiveX) \#interop
Shows how to use the map as ActiveX control
#### [BasemapTooltips](BasemapTooltips) \#xserver-1
Shows how to display city/street information as tool tip by reverse locating
#### [Circles](Circles) \#custom-data
Shows how to render circles with a geographic radius
#### [CustomBgProfiles](CustomBgProfiles) \#xserver-1
Shows how to switch the basemap profile
#### [CustomInit](CustomInit) \#customize
Shows how to explicitly initialize the xMapServer base map#### [CustomLayout](CustomLayout) \#customize
Shows how to set-up a map-layout with custom gadgets
#### [CustomLocalizer](CustomLocalizer) \#customize
Shows how to use your own string resources to localize the texts of the control.#### [CustomPanAndZoom](CustomPanAndZoom) \#customize
Shows how to change the default behavior for pan/zoom interaction.
#### [DemoCenter](DemoCenter) \#xserver-1
Source code for xServer.NET demo center.
#### [DrawMode](DrawMode) \#customize
The basic code to add an interactor for drawing custom polygons
#### [DragAndDrop](DragAndDrop) \#customize
Shows how to implement drag&drop for elements on the map.
#### [ExtensibilityTest](ExtensibilityTest) \#customize
Tests for customization and extensions of the map control
#### [FeatureLayers](FeatureLayers) \#xserver-1
Shows how to render Feature Layers on the control
#### [FormsMapCS](FormsMapCS) \#hello-world
Shows how to add the map to a Windows Forms application in C##### [FormsMapVB](FormsMapVB) \#hello-world
Shows how to add the map to a Windows Forms application in VB.NET
#### [leaflet-vb6](https://github.com/ptv-logistics/leaflet-vb6) \#featured \#interop \#vb6 \#javascript \#leaflet
Embed leaflet-based maps within classic desktop applications
#### [Mandelbrot](Mandelbrot) \#customize
Shows how to implement a client-side tile provider and demonstrates the "Infinite Zoom" feature
#### [ManySymbols](ManySymbols) \#customize
Shows practices to display many symbols with the ShapeLayer
#### [ManySymbols2](ManySymbols2) \#customize
Shows how to display even more symbols by implementing a custom layer
#### [MapArrowDemo](MapArrowDemo) \#customize
Shows how to build custom shapes for the shape layer
#### [MFCMapDialog](MFCMapDialog) #\interop
Shows how to add the map to an MFC application
#### [MultipleContainers](MultipleContainers) \#customize
Test for map controls in multiple tab-, split, and dock-containers
#### [MemAssertDemo](MemAssertDemo) \#testing
A utility class + demo that helps to track-down memory-leaks in your code.#### [MemoryPressureTest](MemoryPressureTest) \#testing
Tips to optimize xServer.NET for limited-memory scenarios#### [PieChartsAndExport](PieChartsAndExport) \#user-data
Shows how to render arbitrary WPF elements and print/export the map content
#### [Providers](Providers) \#interop \#3rd-party
Shows how to add 3rd-party basemap tiles
#### [RoutingVB](RoutingVB) \#interop
Shows how to add drag&drop routing to a Visual Basic project.#### [SelectionDemo](SelectionDemo) \#customize
Shows how to render custom icons and select them by dragging a rubber band
#### [ServerSideRendering](ServerSideRendering) \#xserver-1
Shows how to render additional xMap layers with tooltip interaction
#### [SharpMap.Widgets](https://github.com/ptv-logistics/SharpMap.Widgets) #interop \#featured \#leaflet
Build responsive map applications for web and desktop
#### [SimpleWms](SimpleWms) \#3rd-party
Shows how to add simple WMS (with "Google" EPSG:3857) layers to the control
#### [SymbolsAndLabels](SymbolsAndLabels) \#customize
Shows how to draw symbols with an attached label tag
#### [TourPlanningDemo](TourPlanningDemo) \#xserver-1
Shows practices how to use the new xTour 1.18 job api @xServer internet
#### [ToursAndStopsMultiCanvas](ToursAndStopsMultiCanvas) \#customize
Shows how to build one logical layer containing different canvases rendered before and after the xMap labels
#### [VdiPerformance](VdiPerformance) \#testing
Benchmark for different settings that influence performance on Virtual Desktop Environments (VDI)VdiPerformance
#### [WMTSLayer](WMTSLayer) \#new \#wms \#xserver-2 \#3rd-party
Demonstrates the integration and initialization of a layer showing Web Map Tile Service (WMTS) content.
#### [Xmap1Rest](Xmap1Rest) \#xserver-1
Shows how to initialize the base map using the Xmap1 tile and wms APIs.#### [Xmap2LayerFactoryTest](Xmap2LayerFactoryTest) \#xserver-2
Demonstrates the API for native Xmap2/FeatureLayer support.
#### [XYNSegments](XYNSegments) \#xserver-1
Shows how to select and render xServer XYN-Segments
![]()