Developing Web Applications with the Web ADF - Web ADF JavaScript Library  

Mapping


The Web ADF JavaScript Library provides access to Web ADF controls in a scriptable browser environment.  In most cases, Web ADF applications will be centered around a Map control.  As a scriptable Web control, a Web ADF Map control is represented on both the client (browser) and server (IIS\ASP.NET process).  As a result, the Map controls can be accessed via JavaScript on the client or .NET on the server.   Merely adding a Map control to an aspx page includes the Web ADF JavaScript Library content necessary for using JavaScript to interact with the map.  In many cases the same action (e.g. method call or property change) can be initiated on the map via code on the client or server.  Both the JavaScript and .NET Map class have events, methods, and properties you can used to interact with the map.   In the page and code behind on the server you have access to the Web ADF Map control as a .NET class.  Accessing the JavaScript Map class on the client via script in a browser must utilize (and is limited by) JavaScript capabilities.  JavaScript can be added in a separate file or inline within the aspx page.  In most cases, JavaScript content will reside within the page header, body, or form and be triggered by an action in the page, such as a key press or mouse click.  The ASP.NET AJAX JavaScript Library provides a framework for event handling on JavaScript objects, so events can also trigger JavaScript code to execute.  Use the following discussion points and JavaScript code snippets to get started working with the Web ADF JavaScript Library.