awxapi-1.0.js

Summary

This JavaScript library lets an application control an embedded ArcWeb Explorer Flash 8 component in a Web page.

The following is the "hello world" example of ArcWeb Explorer using JavaScript:

Note: If you copy and paste the code below, you must save it in a file that is accessible from a Web server. The code will not work if you launch it from the file system.

 <html>
 <head>
     <title>ArcWeb Explorer - Show Map</title>
     <script src="http://www.arcwebservices.com/awx/awxapi-1.0.js" type="text/javascript"></script>
     <script type="text/javascript">
         function onBodyLoad()
         {
             AWUtils.insertMap("explorer", "mykey");
         }
	   function onCreationComplete
	   {
             var myExplorer = new AWMap("explorer");
             var myLatLon = new AWLatLon(42.367044, -71.052742);
             myExplorer.centerAndScale(myLatLon, 10000);
         }
     </script>
 </head>
 <body onload="onBodyLoad()">
 <div align="center" id="explorer" style="width: 800px; height: 600px">ArcWebExplorer Flash Object</div>
 </body>
 </html>
 


Version: 1.0


Class Summary
AWGradientStyle AWGradientStyle is a class to encapsulate gradient style information.
AWImgMarkerStyle This style renders a marker as an image on the map.
AWLatLon AWLatLon is a class that encapsulates location information.
AWLatLonExtent AWLatLonExtent is a class that encapsulates a location extent.
AWLocation AWLocation is a class that encapsulates marker location information.
AWMarker AWMarker is a class that encapsulates marker information.
AWPolygon AWPolygon is a class that encapsulates polygon information.
AWPolygonStyle AWPolygonStyle is a class that encapsulates polygon style information.
AWPolyline AWPolyline is a class that encapsulates polyline information.
AWPolylineStyle AWPolylineStyle is a class that encapsulates polyline style information.
AWSWFMarkerStyle This style renders a marker as a swf object on the map.
AWUtils Helper class containing static utility functions.

See http://www.arcwebservices.com/awx/awxapi-1.0.js for details.

For the awxapi-no-prototype-1.0.js library that does not use the Prototype library, see http://www.arcwebservices.com/awx/awxapi-no-prototype-1.0.js.