SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 285 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

Now, the VE control itself should be instantiated with the
ID of the
tag, and the map should be initialized with the right parameters as shown
in this code snippet:

The VEMap control takes in the ID of the
tag as the host container in its constructor.
VEMap is at the heart of the VE API, and as the core component, it handles most of the
functionality. Take a moment to look at some of the methods in the VEMap control shown
in Table 9-1.
Table 9-1.Methods of the VEMap Control
Method Name Description
AddControl Adds a custom control to the map.
AddPolygon Renders a Polygon object (VEPolygon) on the map.
AddPolyline Renders a Polyline object (VEPolyline) on the map.
AddPushpin Adds a pushpin to the map.
AddShape Adds a shape object (VEShape) object to the map.
AttachEvent Wires up an event of the map control with a client-side event
handler.


Pages:
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297