|
POST
|
Hi, Has anyone tried to reference the ArcGIS API for JavaScript using StealJS instead of adding <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri.css"> <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/"></script> to the <head> tag? I tried to use: steal("http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/") .css("http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri") but StealJs thinks i am looking for "http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/.js" and reports not found(404). I don't know what StealJS is, but if it requires a path to a JS file you can probably use one of the following URLs http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/init.js http://serverapi.arcgisonline.com/jsapi/arcgis/3.4compact/init.js http://serverapi.arcgisonline.com/jsapi/arcgis/3.4amd/init.js
... View more
05-03-2013
10:00 AM
|
0
|
0
|
714
|
|
POST
|
As I understand the documentation, geocoding for a single location will still work, you'll only need to pay for batch operations and / or if you are storing the geocoded results. One alternative to consider is MapQuest's Open Data Map APIs, which use data from OpenStreetMap.
... View more
05-01-2013
10:05 AM
|
0
|
0
|
1415
|
|
POST
|
Is this forum the right place to ask these kind of questions? This looks like a bug to me. Yes, this would seem to be the right place to ask. If you have a support contract with Esri you can file a bug report at http://support.esri.com. As far as I know that is the only way to file a bug report, but the JS API devs do read this forum.
... View more
04-30-2013
08:23 AM
|
1
|
0
|
674
|
|
POST
|
Since you are already familiar with Visual Studio I would stick with that. If you are able to upgrade to Visual Studio 2012 it is a lot better for web development. See this thread for more info.
... View more
04-19-2013
01:53 PM
|
0
|
0
|
499
|
|
POST
|
You can use the Proj4js library to project the extent from 3566 to 3857.
... View more
04-19-2013
07:26 AM
|
0
|
0
|
533
|
|
POST
|
I experienced problems of this sort when I tried to use the ArcGIS API with jQuery Mobile. I never found a fix for it, though. I made a forum post about it.
... View more
04-15-2013
02:58 PM
|
0
|
0
|
1883
|
|
POST
|
Same Error with 3.4 Chrome prompts for login, firefox does not https://www.mymanatee.org/gisapps/mapviewer34/index.jsp?type=utilitiesinfrastructure I just tried your link in Firefox (v 20) and was prompted for a login.
... View more
04-10-2013
10:10 AM
|
0
|
0
|
1041
|
|
POST
|
Any attribute starting with "data-" is valid under HTML5, so you shouldn't have had to disable detection of proprietary attributes. Does your HTML document include the HTML5 doctype?
... View more
04-10-2013
10:08 AM
|
0
|
0
|
3929
|
|
POST
|
Thank you guys for all the ideas! It seems VS is not very popular here. What is the most popular program to write JS? I've heard about Webstorm but never used it. I am trying Aptana 3 but I am very frustrated with the intellisense. Thanks Actually, I use Visual Studio 2012 for most of my web development now, with the following extensions installed. Web Essentials 2012 JSLint.VS2012 (Checks for potential errors in JavaScript code.) Microsoft Web Developer Tools Visual Studio Extensions for Windows Library for JavaScript I am using the "Premium" edition of VS 2012. I can't guarantee that all of these extensions would work with the free versions. My second choice would be Aptana 3, which you have already tried. This is good for situations where I know I won't need to do any server-side ASP.NET code. (I think Aptana it CAN do other types of server side code, but we use ASP.NET for our server-side code in our agency, and as far as I know Aptana can't do ASP.NET.) While intellisence would be handy, none of the editors I have used seem to support it very well, so I rely mainly on the online documentation for ArcGIS JS API, Dojo, jQuery, etc.
... View more
04-10-2013
10:04 AM
|
0
|
0
|
1502
|
|
POST
|
Thanks for the reply, but I'm trying to get images that are attachments from ArcGIS Server. I can use queryAttachmentInfos and get an array that includes the url to a page that has the image (example: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0/6070527/attachments/467") and the name of the image, but I'm trying to figure out A) how to get a link that I can use for a src tag and B) How to show all the images in a popup. For B I've been monkeying around with a dojox.image.slideshow, but I'm having trouble populating the slideshow object (actually the itemFileReadStore). Any help would be appreciated. -Brendan A) I looked at the atttachment link. I think the reason you can't link to it directly is that it has "Content-Dispositon: attachment" set in the response header. Also the header does not include the mime-type. You might have to use a proxy to strip out the Content-Disposition info from the header and set the mime-type. You could detect which mime-type to use based on the filename given in the header. The header response from you're sample attachement link. HTTP/1.1 200 OK
Content-Disposition: attachment; filename="5366266854_2165ce65f9_z.jpg";
Date: Wed, 10 Apr 2013 17:23:00 GMT
ETag: -817967711
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Content-Length: 32349
Connection: keep-alive B) You might also want to look into the dojox.image.Lightbox or dojox.image.LightboxNano.
... View more
04-10-2013
09:46 AM
|
0
|
0
|
1705
|
|
POST
|
I would recommend using Chrome as your browser rathern than IE. Firefox's Firebug add-in is pretty good too. (Firefox actually has a built in debugger now, but I haven't used it so I can't say if it is as good as Firebug.) The only time I would use IE is to make sure the page works in IE.
... View more
04-05-2013
09:01 AM
|
0
|
0
|
1502
|
|
POST
|
Complimentary use of Bing Maps is being phased out of ArcGIS products. Instead, all ArcGIS products will be "Bing ready". This means that Bing Maps will continue to work after you have inserted a Bing Maps key you have obtained directly from Microsoft. For more info see http://resources.arcgis.com/en/help/arcgisonline-content/index.html#//011q0000001q000000
... View more
03-27-2013
12:43 PM
|
0
|
0
|
824
|
|
POST
|
Have you tried clearing the browser cache in Chrome on the computer where it wasn't working? (Ctrl + Shift + Delete)
... View more
03-27-2013
07:46 AM
|
0
|
0
|
2091
|
|
POST
|
In fact I don't know the difference between "require" and "define". You use define to define a new module. You use require when you are only consuming other modules and not defining your own.
... View more
02-25-2013
07:22 AM
|
0
|
0
|
2376
|
|
POST
|
See the Graphic.toJson function. Hi, I am using ArcGIS Server 10.1 with JavaScript 3.2. I am running a query on a feature layer and the output is a JavaScript array. I would like the output to be in JSON. I have tried using JSON.stringify(), but the output does not match with the output I get using REST endpoint. Here is my code: var queryA = new esri.tasks.Query();
queryA.where = myGeogString; //myGeogString declared earlier and has a multiple query string ("State_name"='xyz' OR "State_name"='abc' .....)
queryA.returnGeometry = false;
queryA.outFields = ["*"];
var results;
queryTask.execute(queryA, function(featureSet) {
var attr = [], items = [];
for ( i = 0, il = featureSet.features.length; i < il; i++) {
var features = featureSet.features;
var fattributes = features.attributes;
results = [];
for (att in fattributes) {
for ( k = valueB.length; k > -1; k--) { //length of array of indicators for each feature in myGeogString
if (att == valOutB ) {
var myInd = valueB ;
var myAttr = fattributes[att];
results.push(myInd + ":" + myAttr);
}
}
}
items.push("location:"+featureSet.features.attributes.State_name + "," + results);
}
var itemsJson = JSON.stringify({locations:items});
alert(itemsJson);
}); Is it possible to convert this output to JSON so it matches with REST output? Thanks Samir
... View more
02-22-2013
11:15 AM
|
0
|
0
|
981
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2025 08:56 AM | |
| 2 | 03-05-2024 05:10 PM | |
| 1 | 04-30-2013 08:23 AM | |
| 1 | 05-03-2022 09:45 AM | |
| 1 | 06-30-2015 10:55 AM |