Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
VE Standard Map Control SDK, version 2.0
MapControl.SetView Method
MapControl.SetView Method

Changes the map to the specified MapView object.

MapControl.SetView(mapView);

Parameters

mapView
The MapView object that you want to display.

Remarks

The SetView method enables you to switch between predefined MapView objects. The following example shows how to create a new MapView object, set its properties, and then call the SetView method to change the map view.

Example

var view = new Msn.VE.MapView();
view.SetMapStyle(Msn.VE.MapStyle.Road);
view.SetLatLongRectangle(new Msn.VE.LatLongRectangle(
   new Msn.VE.LatLong(47,-112),
   new Msn.VE.LatLong(43,-110)));
map.SetView(view);

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker