Error - EnableGeoCommunity

Last post 8/26/2009 5:13:17 PM by Chris Pietschmann. 1 replies. << Back to Web.Maps.VE v2.0 General
8/26/2009 1:48:26 PM
Arul

Error - EnableGeoCommunity

Hi,

  If I use the following code, the page throws error for EnableGeoCommunity

var map = $find("<%=Map1.ClientID%>");
map.vemapcontrol.EnableGeoCommunity(false);
8/26/2009 5:13:17 PM
Chris Pietschmann

Re:Error - EnableGeoCommunity

The "map" variable is getting set to the Client-Side Instance of the Web.Maps.VE component; which doesn't have a property named "vemapcontrol". What you need to do is get a reference to the underlying VEMap object using the "get_Map()" method.

Here's an example of doing what you need:

var map = $find("<%=Map1.ClientID%>");
map.get_Map().vemapcontrol.EnableGeoCommunity(false);