POST
|
<!DOCTYPE html> <style> html, body, #mapDiv { padding: 0; margin: 0; height: 100%; } </style> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <title></title> <link rel="stylesheet" href="https://js.arcgis.com/3.16/esri/css/esri.css"> <script src="https://js.arcgis.com/3.16/"></script> </head> <body class="claro"> <script> var map; require([ "esri/map", "esri/arcgis/utils", "dojo/domReady!" ], function(Map, arcgisUtils) { arcgisUtils.arcgisUrl = "http://consid.maps.arcgis.com/"; arcgisUtils.createMap("e682e2f2bfff4cf2918190a8b3e44087 ", "mapDiv").then(function(response) { map = response.map; }); }); </script> <div id="mapDiv"> </div> </body> </html>
... View more
03-24-2016
08:19 AM
|
0
|
3
|
17353
|
POST
|
Thank you But no I just get a error: Any Idea what this mean?
... View more
03-24-2016
08:05 AM
|
0
|
5
|
17353
|
POST
|
Okey. Thank you for your answer. I created a account on http://www.arcgis.com/features/ and created a map there. But I don't know how to access It so I can follow the tutorial..
... View more
03-24-2016
07:12 AM
|
0
|
7
|
17353
|
POST
|
Im following this guide: https://developers.arcgis.com/javascript/jshelp/intro_agstemplate_amd.html I am using the Web Map ID that they do In the tutorial: 1a40fa5cc1ab4569b79f45444d728067 However, when I run my code: var map; require([ "esri/map", "esri/arcgis/utils", "dojo/domReady!" ], function(Map, arcgisUtils) { arcgisUtils.arcgisUrl = "file:///C:/Users/Bryan/Desktop/gis.html"; arcgisUtils.createMap("1a40fa5cc1ab4569b79f45444d728067 ", "mapDiv").then(function(response) { map = response.map; }); }); I get the following error: NS_ERROR_DOM_BAD_URI: Access to restricted URI denied In the tutorial they say the following: To access a web map from a portal outside of ArcGIS Online, reference the arcgisUrl property and set the path to your portal URL before calling the createMap() method: arcgisUtils.arcgisUrl = "http://pathto/portal/sharing/content/items"; But what is a portal URL? What Is my Portal URL? Anyone who can help me?
... View more
03-24-2016
04:37 AM
|
0
|
9
|
19349
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|