ygorth

Newbie in Javascript API! Problem: Object Navigation is a number.

Discussion created by ygorth on Jun 14, 2013
Latest reply on Jun 14, 2013 by JUihlein-esristaff
Hello,

Anyone can identify what I'm doing wrong?

    
...
<script>
        dojoConfig = { async: true,
                       parseOnLoad: true
        };
    </script>
    <script src="js/vendor/esri35.js"></script>
    <script src="js/main.js"></script>
    <script></script>
</head>
    <body class="claro">
        <div id="navToolbar" data-dojo-type="dijit/Toolbar"></div>
        <div id="mapDiv"></div>
    </body>


require(["esri/map", "esri/toolbars/Navigation", "dojo/domReady!"],
    function (
        Map,
        Navigation
        ) {
        map = new Map("mapDiv", {
            center: [-56.049, 38.485],
            zoom: 3,
            basemap: "satellite"
        });

        navToolbar = new Navigation(map);

    });


The debug information that the object Navigation is the number 3 and not a function.

Ty!!!

Outcomes