Shape Toolbox Module


  • I have been trying to implement this module and it works fine in IE but not in any other browser.  I have tried registering the module:


    Microsoft.Maps.registerModule("ShapeToolboxModule", "XXX/ShapeToolboxModule.js");
    Microsoft.Maps.loadModule("ShapeToolboxModule", { callback: myModuleLoaded });

    //Callback function for loaded module
    function myModuleLoaded() {
      myToolbox = new ShapeToolboxModule(map);
      alert( 'Shape Toolbox Module Loaded (version ' + myToolbox.version() + ')');

    Also I have tried using script tags:

    <script type="text/javascript"src="XXX/ShapeToolboxModule.js"></script>
    <script type="text/javascript">Microsoft.Maps.registerModule('ShapeToolboxModule');</script>

    Neither works as it does not seem to register the module.  These are the errors:

    (1) TypeError: styleSheet.cssRules[i].selectorText is undefined

    (2) TypeError: myToolbox is null

    Has anybody else had this error?  If so what is the solution?


    Tuesday, June 11, 2013 9:56 AM