Gets or sets the client-side script that executes when the map Bounds are changed

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

Syntax

Visual Basic
<BindableAttribute(True)> _
Public Property OnClientBoundsChanged As String
	Get
	Set
C#
[BindableAttribute(true)]
public string OnClientBoundsChanged { get; set; }
Visual C++
[BindableAttribute(true)]
public:
property String^ OnClientBoundsChanged {
	String^ get ();
	void set (String^ value);
}
JavaScript
function get_onClientBoundsChanged();
function set_onClientBoundsChanged(value);

Remarks

When the map bounds change a client-side javascript event will be fired with the the following 3 parameters
  • typeThe event type (="BoundsChanged"). This can be ignored
  • argsThe new map bounds. args[0] contains MinX, args[1] contains MaxY, args[2] contains MaxX, args[3] contains MaxY
  • objThe object generating the event. This can be ignored.

Examples

 Copy imageCopy Code
        
            function MapBoundsChanged(type, args, obj)
            {
               var debugPanel = document.getElementById('debugpanel');            
               debugPanel.innerHTML = '[' + obj.toString() + ',' + type + ']Current Bounds: ' + args[0] + ',' + args[1] +  ',' + args[2] + ',' + args[3] + '
' + debugPanel.innerHTML ; } .. <div id = "debugpanel" ..
In this example OnClientBoundsChanged would be set to "MapBoundsChanged"

See Also