1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
function LoadMap(address)
{
myMap = new VEMap("mapDiv");
myMap.LoadMap();//http://msdn.microsoft.com/en-us/library/bb412546.aspx
myMap.HideDashboard();
myMap.SetZoomLevel(5);
StartGeocoding(address);
}
function UnloadMap()
{
if (myMap != null) {
myMap.Dispose();
}
}
function StartGeocoding( address )
{
myMap.Find(null, // what
address, // where
null, // VEFindType (always VEFindType.Businesses)
null, // VEShapeLayer (base by default)
null, // start index for results (0 by default)
null, // max number of results (default is 10)
null, // show results? (default is true)
null, // create pushpin for what results? (ignored since what is null)
null, // use default disambiguation? (default is true)
null, // set best map view? (default is true)
GeocodeCallback); // call back function
} |
Partager