FIND OUT MORE

Display your business-critical information with confidence. Vicmap™ API – authoritative, current and clear.

Debugging

If you are developing for Internet Explorer, to enable JavaScript debugging in Vicmap API simply include the firebuglite.js file into the webpage as shown in line 3 of the sample webpage below.

Alternatively, if you find that including firebug into the header of every webpage is too much of a trouble, please refer to Using Firebug Lite in IE for an alternate method that is more efficient. For firefox users, simply install the firebug plugin.

1  <html>
2  <head>
3  <script type="text/javascript" src="http://getfirebug.com/firebug-lite.js"></script>
4  <script type="text/javascript" src="http://116.240.195.134/vicmapapi/js/vicmapapi.js"></script>
5  <script type="text/javascript">
6      function init()
7      {
8          // "map" corresponds to the id of the div hosting the map
9          var map = new OpenLayers.Vicmap.Map("map");
10     }
11 </script>
12 <head>
13 <body onload="init()">
14 <div id="map" style="height:400px; width:600px; border:1px solid #000000;"></div>
15 </body>
16 </html>