AnsweredAssumed Answered

Unable to Create Map from AGOL item

Question asked by tribeiro on Aug 12, 2013
Latest reply on Aug 13, 2013 by tribeiro
Hi Guys,
Can anyone help me understand why my code works for this item which is in the samples "4778fee6371d4e83a22786029f30c7e1", but when I add my own it throws this error ""Provide a geometry service to open Web Map."
Here's the code:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title>Create map from AGOL</title>     <link rel="stylesheet" href="http://js.arcgis.com/3.6/js/dojo/dijit/themes/claro/claro.css">     <link rel="stylesheet" href="http://js.arcgis.com/3.6/js/esri/css/esri.css"> </head> <body>     <div style="width: 100%; height: 300px; border: 1px solid black" id="map"></div>     <script src="http://js.arcgis.com/3.6/"></script>     <script>         require([             "esri/arcgis/utils"             , "dojo/ready"             , "dojo/domReady!"         ],         function (arcgisUtils, ready) {             ready(function () {                 arcgisUtils.createMap("a09c3609e11c474e990e8a2dce2e7330", "map").then(function (response) {                     console.log(arguments);                 }, function () {                     console.log(arguments);                 });             });         });     </script> </body>         </html>


The web map and all services are public. If someone could help me figuring out what's going on I'd be much appreciated!

Cheers,

Tiago

Outcomes