Gets or sets the client-side script that executes when the map ZoomLevel changes

Namespace:  EGIS.Web.Controls
Assembly:  EGIS.Web.Controls (in EGIS.Web.Controls.dll)

Syntax

Visual Basic (Declaration)
<BindableAttribute(True)> _
Public Property OnClientZoomChanged As String
C#
[BindableAttribute(true)]
public string OnClientZoomChanged { get; set; }
Visual C++
[BindableAttribute(true)]
public:
property String^ OnClientZoomChanged {
	String^ get ();
	void set (String^ value);
}

Remarks

When the zoom level changes a client-side javascript event will be fired with the the following 3 parameters
  • type The event type (="ZoomChanged"). This can be ignored
  • args args[0] contains the current zoom level
  • obj The object generating the event. This can be ignored.

Examples

 Copy Code
        
             function MapZoomChanged(type, args, obj)
            {        
                var debugpanel = document.getElementById('debugpanel');
                debugpanel.innerHTML = '[' + obj.toString() + ',' + type + ']Current Zoom: ' + args[0] + '<br/>' + debugpanel.innerHTML;        
            }
             ..
             <div id = "debugpanel" ..
             
In this example OnClientZoomChanged would be set to "MapZoomChanged"

See Also