var webmap = {}; webmap.item = { "title": "Soil Survey Map of USA", "snippet": "Detailed description of data", "extent": [[-139.4916, 10.7191], [-52.392, 59.5199]] }; webmap.itemData = { "operationalLayers": [{ "url": "http://server.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer", "visibility": true, "opacity": 0.75, "title": "Soil Survey Map", "itemId": "204d94c9b1374de9a21574c9efa31164" }], "baseMap": { "baseMapLayers": [{ "opacity": 1, "visibility": true, "url": "http://services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer" }, { "isReference": true, "opacity": 1, "visibility": true, "url": "http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer" }], "title": "World_Terrain_Base" }, "version": "1.1" };
var webmap = {}; webmap.item = { "title": "San Diego Special Events", "snippet": "Special Events Locations", "extent": [[6171671, 1760860], [6621931, 2102353]] }; webmap.itemData = { "operationalLayers": [{ "url": "http://vmgisprod3/ArcGIS/rest/services/SEPS_Edit/FeatureServer", "visibility": true, "opacity": 1, "title": "Special Events Map", "itemId": "204d94c9b1374de9a21574c9efa31164" }], "baseMap": { "baseMapLayers": [{ "opacity": 1, "visibility": true, "url": "http://citymaps.sannet.gov/ArcGIS/rest/services/SanGIS_Basemap/MapServer" }, { "isReference": true, "opacity": 1, "visibility": true, "url": "http://citymaps.sannet.gov/ArcGIS/rest/services/SanGIS_Basemap/MapServer" }], "title": "San Diego Basemap" }, "version": "1.1" };
i am stuck on "webmap": "204d94c9b1374de9a21574c9efa31164", on defaults.js
how i use ur codes in this situation?
Please Guide me
Regards
function add() { var webmap = {}; webmap.item = { "title":"Soil Survey Map of USA", "snippet": "This map shows the Soil Survey Geographic (SSURGO) by the United States Department of Agriculture's Natural Resources Conservation Service.", "extent": [[-139.4916, 10.7191],[-52.392, 59.5199]] }; webmap.itemData = { "operationalLayers": [{ "url": "http://server.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer", "visibility": true, "opacity": 0.75, "title": "Soil Survey Map", "itemId": "204d94c9b1374de9a21574c9efa31164" }], "baseMap": { "baseMapLayers": [{ "opacity": 1, "visibility": true, "url": "http://services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer" },{ "isReference": true, "opacity": 1, "visibility": true, "url": "http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer" }], "title": "World_Terrain_Base" }, "version": "1.1" }; return webmap; }In the index.html, I then changed
webmap: "dbd1c6d52f4e447f8c01d14a691a70fe",to
webmap: add(),It seems to work fine and when I click on a soil polygon the popup works as expected. The trouble I'm having is when I switch to an operational layer on my server, it's added to the map and displays in the legend just fine, but the identify popup doesn't work. Any thoughts on what I can troubleshoot?
It looks like this is determined by maybe a scale range set in the basemap? I changed the basemap to OpenStreetMap and I can zoom in as far as I want. I added Bing and can also zoom in as far as I want, but I noticed that the x,y coordinates I have displayed below the map disappear if I use Bing, but not if I use OpenStreetMap. I've added Bing to the basemapgallery and if I use OpenStreetMap as the Basemap in the webmap and then switch to Bing from the basemapgallery, the x,y coordinates are also fine. Thoughts as to what the issue might be?
How is your progress?
I would also like to know how to point to a ArcGIS Server ID instead of an AGOL.
Regards
Ezequias
... how to point to a ArcGIS Server ...
Add Function to use our ArcGIS server services · Issue #16 · Esri/Viewer · GitHub
this should help
an alternative way to provide your webmap is from cartoview which is free. Cartoview