Icon Collision and Suppression Sample
Icon Collision and Suppression Sample
This sample Windows application demonstrates how to select which icons to display on a map. It shows how to use both the MapOptions.PreventIconCollisions property and the MapSpecification.HideEntityTypes property.
Run this sample in Visual Studio .NET
Double-click project file to open the project in Microsoft® Visual Studio® .NET.
Visual Basic .NET project location:
SDK_Install_Folder\Samples\[.NET 1.1 | .NET 2.0]\IconCollisionAndSuppression\vb\IconCollisionAndSuppressionVB.vbproj
Visual C# .NET project location:
SDK_Install_Folder\Samples\[.NET 1.1 | .NET 2.0]\IconCollisionAndSuppression\cs\IconCollisionAndSuppressionCS.csproj
In the Form1 code, replace the values of the username and password variables with your customer ID and password, respectively.
In the Solution Explorer window, expand the Web References folder, right-click MapPoint, and then click Update Web Reference.
On the Debug menu, click Start.