Share via


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

  1. 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

  2. In the Form1 code, replace the values of the username and password variables with your customer ID and password, respectively.

  3. In the Solution Explorer window, expand the Web References folder, right-click MapPoint, and then click Update Web Reference.

  4. On the Debug menu, click Start.