var map = null; function initialize() { map = new VEMap('map'); if (controls == 0) map.HideDashboard(); map.LoadMap(new VELatLong(47.6, -122.33), 1); if (zoom >= 0) map.SetZoomLevel(zoom); showAddress(); } function showAddress() { try { map.Find(null, address, null, null, null, null, null, null, null, null, processFindResult); } catch (e) { alert(e.message); } } function processFindResult() { var shape = new VEShape(VEShapeType.Pushpin, map.GetCenter()); shape.SetTitle(address); shape.SetDescription(""); map.AddShape(shape); }