|
POST
|
Found the error!! I am able to open maps from http://www.opengeodata.fr with the basic viewer without entering any user id and password. I still have a problem accessing to http://www.arcgis.com/home/ without entering any user id and password.
... View more
05-19-2014
11:34 AM
|
0
|
0
|
557
|
|
POST
|
Hi all I am trying to open this ArcGIs Online webmap in www.opengeodata.fr using a local copy of the basic Viewer http://www.opengeodata.fr/home/webmap/viewer.html?webmap=02e7e5a573d84a599e6366ecb205ff97 and I am getting the following error message: Unable to create a map: "id is null or not an object"
... View more
05-19-2014
10:54 AM
|
0
|
1
|
963
|
|
POST
|
http://doc.arcgis.com/en/arcgis-online/reference/configure-adfs.htm
... View more
05-19-2014
10:00 AM
|
0
|
0
|
1354
|
|
POST
|
Hi all We are using an option to log in into ArcGIS Online using our network accounts without entering any used id or password. . I downloaded the basic viewer template source code, and I customized it populating the following variables: - webmap: - sharingurl: Now when I run the web application I get the following error message: "You do not have permissions to access this resource or perform this operation" This is the detailed debug message: Uncaught Syntax Error: Unexpected token true jsapi_vsdoc10_v37.js:4078
Error
init.js:188
Attr.specified is deprecated. Its value is always true.
Error
"Error: User is not signed in.
at Error (native)
at q (http://js.arcgis.com/3.9/init.js:405:279)
at d._doSignIn (http://js.arcgis.com/3.9/init.js:409:383)
at d._enqueue (http://js.arcgis.com/3.9/init.js:400:420)
at d.getCredential (http://js.arcgis.com/3.9/init.js:385:298)
at d.checkSignInStatus (http://js.arcgis.com/3.9/init.js:388:531)
at declare._initializeApplication (http://localhost:54992/basic-viewer-template-master/javascript/App.js:150:33)
at declare._init (http://localhost:54992/basic-viewer-template-master/javascript/App.js:72:22)
at declare.constructor (http://localhost:54992/basic-viewer-template-master/javascript/App.js:51:22)
at new <anonymous> (http://js.arcgis.com/3.9/init.js:105:288)" init.js:205
Error
"Error
at Error (native)
at Object.f.load (http://js.arcgis.com/3.9/init.js:629:424)
at http://js.arcgis.com/3.9/init.js:187:69
at c (http://js.arcgis.com/3.9/init.js:74:221)
at d (http://js.arcgis.com/3.9/init.js:74:10)
at resolve.callback (http://js.arcgis.com/3.9/init.js:75:350)
at c (http://js.arcgis.com/3.9/init.js:74:436)
at d (http://js.arcgis.com/3.9/init.js:74:10)
at resolve.callback (http://js.arcgis.com/3.9/init.js:75:350)
at http://js.arcgis.com/3.9/init.js:191:300" init.js:205
... View more
05-19-2014
09:13 AM
|
0
|
1
|
6843
|
|
POST
|
Hi Kaitlynn I am having the same problem! Do you mind posting the source code to explain how to use the project method from the geometry service class. Thanks
... View more
05-14-2014
03:46 PM
|
0
|
0
|
1261
|
|
POST
|
Hi all, We have two options to log in to our ArcGIs online: - Using your com pany account (trusted connections) - Using your ArcGIS Account when I try to log in using my company account (trusted connection) ArcGIS online shows the folowing error message: "Unable to login using Idp Unable to validate SAML response" Thanks
... View more
05-14-2014
03:38 AM
|
1
|
4
|
8535
|
|
POST
|
http://stackoverflow.com/questions/17058843/arcgis-javascript-api-need-to-change-wkid-of-the-graphics-layer http://forums.arcgis.com/threads/91337-Project-geolocation-coords-to-State-Plane
... View more
05-13-2014
01:24 PM
|
0
|
0
|
1165
|
|
POST
|
Hi Melita, With ArcGIS Online I created a webmap and downloaded the Basic Viewer source code. I am calling the webmap from my source code. The web map has only a layer from a local map service created in ArcGIS Server 10.2 in a local server. This is the local map service spatial reference found typing: http://..../arcgis/rest/services/Stations/MapServer Spatial Reference: 102658 (2236) Spatial Reference: 102658 (2236)
Single Fused Map Cache: false
Initial Extent:
XMin: 712960.4940819422
YMin: 367612.53819423367
XMax: 1019065.4144157815
YMax: 594470.2958194235
Spatial Reference: 102658 (2236)
Full Extent:
XMin: 797538.3331276643
YMin: 379608.7253847002
XMax: 960101.7590398886
YMax: 603134.0456329477
Spatial Reference: 102658 (2236)
Units: esriFeet
... View more
05-13-2014
09:18 AM
|
0
|
0
|
1165
|
|
POST
|
Hi all when I try to add a grpahic to my map I get the following error message: function showResults(results) {
//symbology for graphics
var markerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 1), new dojo.Color([0, 255, 0, 0.25]));
var lineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255, 0, 0]), 1);
var polygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NONE, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]));
//find results return an array of findResult.
if (map.graphics) {
map.graphics.clear();
}
// var dataForGrid = [];
var g;
//Build an array of attribute information and add each found graphic to the map
dojo.forEach(results, function (result) {
var graphic = result.feature;
// dataForGrid.push([result.layerName, result.foundFieldName, result.value]);
switch (graphic.geometry.type) {
case "point":
graphic.setSymbol(markerSymbol);
break;
case "polyline":
graphic.setSymbol(lineSymbol);
break;
case "polygon":
graphic.setSymbol(polygonSymbol);
break;
}
g = graphic;
var zoom2 = 0.08;
map.centerAndZoom(g.geometry, zoom2);
map.graphics.add(g);
});
}
... View more
05-13-2014
07:24 AM
|
0
|
3
|
1909
|
|
POST
|
http://dojotoolkit.org/reference-guide/1.9/dojo/addOnLoad.html
... View more
05-07-2014
06:58 PM
|
0
|
0
|
593
|
|
POST
|
Hi all I have these two functions: function execute(searchText) and function showResults(results). function execute(searchText) {
//set the search text to find parameters
findParams.searchText = searchText;
findTask.execute(findParams, showResults);
}
function showResults(results) {
//symbology for graphics
var markerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 1), new dojo.Color([0, 255, 0, 0.25]));
var lineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255, 0, 0]), 1);
var polygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NONE, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]));
//find results return an array of findResult.
map.graphics.clear();
var dataForGrid = [];
//Build an array of attribute information and add each found graphic to the map
dojo.forEach(results, function(result) {
var graphic = result.feature;
dataForGrid.push([result.layerName, result.foundFieldName, result.value]);
switch (graphic.geometry.type) {
case "point":
graphic.setSymbol(markerSymbol);
break;
case "polyline":
graphic.setSymbol(lineSymbol);
break;
case "polygon":
graphic.setSymbol(polygonSymbol);
break;
}
map.graphics.add(graphic);
});
var data = {
items: dataForGrid
};
var store = new dojo.data.ItemFileReadStore({
data: data
});
grid.setStore(store);
}
and I want to add them in these source code. Where exactly can I add them? Before dojo.ready(function() or inside? <script type="text/javascript">
dojo.require("utilities.App");
dojo.require("dojo.on");
dojo.require("templateConfig.commonConfig");
dojo.require("esri.tasks.find");
var i18n;
dojo.ready(function(){
i18n = dojo.i18n.getLocalization("esriTemplate", "template");
var defaults = {
//The ID for the map from ArcGIS.com
// webmap: "f5b13dbed07c46cdb783cf361833aa6b",
//
//
// WASD Web Map
webmap: "d8536a2059654946a33487000b3adcc4",
// webmap: "c158034338ff4b55b1a4bde42fc2a289",
//Modify this to point to your sharing service URL if you are using the portal
//sharingurl: "http://www.arcgis.com", //for example: "http://www.arcgis.com",
sharingurl: "http://mdc.maps.arcgis.com",
//The id for the web mapping application item that contains configuration info - in most
////When editing you need to specify a proxyurl (see below) if the service is on a different domain
//Specify a proxy url if you will be editing, using the elevation profile or have secure services or web maps that are not shared with everyone.
proxyurl: "",
//cases this will be null.
appid: "",
//set to true to display the title
displaytitle: true,
//Enter a title, if no title is specified, the webmap's title is used.
title: "",
//Enter a description for the application. This description will appear in the left pane
//if no description is entered the webmap description will be used.
description: "",
//specify an owner for the app - used by the print option. The default value will be the web map's owner
owner: '',
//Specify a color theme for the app. Valid options are gray,blue,purple,green and orange
theme: 'gray',
//Optional tools - set to false to hide the tool
//set to false to hide the zoom slider on the map
displayslider: true,
displaymeasure: true,
displaybasemaps: true,
displayoverviewmap: true,
displayeditor: true,
displaylegend: true,
displaysearch: true,
displaylayerlist: true,
displaybookmarks: true,
displaydetails: true,
displaytimeslider: true,
displayprint: true,
displayprintlegend: false,
displayeditortoolbar: false,
displaymapwidgets:true,
//i18n.viewer.main.scaleBarUnits,
//The elevation tool uses the measurement tool to draw the lines. So if this is set
//to true then displaymeasure needs to be true too. NOTE: THis tool is deprecated and should no
//longer be used in the Basic Viewer. Use the new version of the template instead
//https://github.com/Esri/elevation-profile-template
displayelevation: false,
//This option is used when the elevation chart is displayed to control what is displayed when users mouse over or touch the chart. When true, elevation gain/loss will be shown from the first location to the location under the cursor/finger.
showelevationdifference: false,
displayscalebar: true,
displayshare: true,
//Set to true to display the left panel on startup. The left panel can contain the legend, details and editor. Set to true to
//hide left panel on initial startup. 2
leftPanelVisibility: true,
//If the webmap uses Bing Maps data, you will need to provide your Bing Maps Key
bingmapskey: commonConfig.bingMapsKey,
//Get the default map units
units: commonConfig.units,
//specify a group in ArcGIS.com that contains the basemaps to display in the basemap gallery
//example: title:'ArcGIS Online Basemaps' , owner:esri
basemapgroup: {
title: null,
owner: null
},
//Enter the URL's to the geometry service, print task and geocode service.
helperServices: commonConfig.helperServices,
//Set the label in the nls file for your browsers language
printlayouts: [{
layout: 'Letter ANSI A Landscape',
label: i18n.tools.print.layouts.label1,
format: 'PDF'
}, {
layout: 'Letter ANSI A Portrait',
label: i18n.tools.print.layouts.label2,
format: 'PDF'
}, {
layout: 'Letter ANSI A Landscape',
label: i18n.tools.print.layouts.label3,
format: 'PNG32'
}, {
layout: 'Letter ANSI A Portrait',
label: i18n.tools.print.layouts.label4,
format: 'PNG32'
}],
printlayout: false,
printformat: "PNG32",
//Specify the geocoder options. By default uses the geocoder widget with the default locators. If you specify a url value then that locator will be used.
placefinder: {
"url": "",
"countryCode":"",
"currentExtent":false,
"placeholder": "",
"singleLineFieldName":""
},
//when true locations searches use the current map extent.
searchextent: false,
//Set link text and url parameters if you want to display clickable links in the upper right-corner
//of the application.
//ArcGIS.com. Enter link values for the link1 and link2 and text to add links. For example
//url:'http://www.esri.com',text:'Esri'
link1: {
url: '',
text: ''
},
link2: {
url: '',
text: ''
},
//specify the width of the panel that holds the editor, legend, details
leftpanewidth: 228,
//Restrict the map's extent to the initial extent of the web map. When true users
//will not be able to pan/zoom outside the initial extent.
constrainmapextent: false,
//Provide an image and url for a logo that will be displayed as a clickable image
//in the lower right corner of the map. If nothing is specified then the esri logo will appear.
customlogo: {
image: '',
link: ''
},
//embed = true means the margins will be collapsed to just include the map no title or links
embed: false
};
var supportsLocalization = true;
var app = new utilities.App(defaults, supportsLocalization);
dojo.on(app, "ready", function(config){
initMap(config);
//create find task with url to map service
findTask = new esri.tasks.FindTask("http://s096v088:6080/arcgis/rest/services/PumpStations/PumpStations/MapServer/");
//create find parameters and define known values
findParams = new esri.tasks.FindParameters();
findParams.returnGeometry = true;
findParams.layerIds = [0];
findParams.searchFields = ["PUMPSTANUM"];
//set the search text to find parameters
findParams.searchText = "0010";
// findTask.execute(findParams, showResults);
});
});
</script>
... View more
05-07-2014
12:44 PM
|
0
|
1
|
719
|
|
POST
|
Hi all How can I pass several parameters to the basic viewer? http://www.arcgis.com/apps/OnePane/basicviewer/index.html?webmap=value1&field2=value2 The second one is to zoom the feature passed in value2. Using FindTask. Anyone has a sample code to share? Thanks
... View more
05-06-2014
02:58 PM
|
0
|
0
|
3330
|
|
POST
|
Hi Brad, I am looking for samples in how to call a regular SOAP service thanks
... View more
05-01-2014
11:16 AM
|
0
|
0
|
1148
|
|
POST
|
Hi all Is there a way to open a map zoomimg to a specific feature in a layer or feature service? Thanks
... View more
04-23-2014
08:37 AM
|
0
|
2
|
4596
|
|
POST
|
Hello everyone, Anyone editing SDE versions with Javascript applications. Thanks
... View more
04-23-2014
08:22 AM
|
0
|
3
|
3460
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-01-2026 12:34 PM | |
| 1 | 12-02-2022 08:17 AM | |
| 1 | 12-26-2025 05:02 AM | |
| 1 | 08-05-2025 04:28 AM | |
| 1 | 08-05-2025 04:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|