VE Map Control

Last post 4/23/2009 10:59:47 PM by Chris Pietschmann. 1 replies. << Back to Web.Maps.VE v2.0 General
4/22/2009 12:47:19 PM
Arul

VE Map Control

Hi

How do I use the following line "map.vemapcontrol.EnableGeoCommunity(false); " . If  I use this line in the event "OnClientMapLoaded" Web.Maps.VE, javascript throws null exception.

Regards
4/23/2009 10:59:47 PM
Chris Pietschmann

Re:VE Map Control

The Web.Maps.VE Map control doesn't have a "vemapcontrol" property. You can still do this by first getting a reference to the VEMap object within the Web.Maps.VE control by using the following line of code. Then you can access it's "vemapcontrol" property as expected.

var map = $find('<%=Map1.ClientID %>').get_Map();