The ArcGIS API for JavaScript is web mapping API from Esri.

learn more… | top users | synonyms

3
votes
1answer
594 views

Trouble with accesing API code: “ReferenceError: esri is not defined”

I am developing a web map application in the ArcGIS API for Javascript. I two have ArcGISDynamicMapServiceLayer layers that I am trying to run a simple query task on. The code I am using works in ...
0
votes
0answers
14 views

Errors when combining JavaScript samples

I was trying to combine different ArcGIS Javascript samples. Now the website displays in the browser, but i get 3 Errors in Firebug. dojo/parser::parse() error Error: Tried to register widget with ...
0
votes
1answer
24 views

Getting a reference to the current basemap

In my application I'm using basemap gallery widget for the user to switch between basemaps. However, when the basemap has been switched the map.getBasemap() keeps returning the original basemap ...
1
vote
1answer
303 views

ArcGIS Online Map using URL does not work with PhoneGap

I wanted to show my public accessible ArcGIS Online map with URL on a simple Hello World PhoneGap project with Eclipse. Eclipse threw out the following error in LogCat. Web Console:RequestError: ...
0
votes
1answer
108 views

Adding OGC complaint WMS Aerial Images as Base Maps using arcgis javascript api

I have an WMS layer which is a cross domain resource and I wanted to embed those layers as basemap in my application using JavaScript api rather than using built in ArcGIS Basemaps. WMS Layer is ...
0
votes
2answers
34 views

How to display a raster using Javascript API

It's all a proof of concept for myself and my learning but I have definitely hit a brick wall here! Here's what I've done and can get to work. I have written a Python script that: Sets its ...
0
votes
1answer
70 views

How to add Map Legend, Scale Bar and Select tool to an ArcGIS Server Service?

I have published a service from ArcMap to my Server Account but I can't figure out how to add the legend, scale bar and select tool to the service. According to the published service it was built ...
0
votes
0answers
26 views

Arcgis javascript - pan and zoom simultaneously

I'm using my android device to test the arcgis javascript API 's touch support. I noticed that by default, I cannot pan and zoom the map at the same time, like google maps. Am I missing something? A ...
0
votes
0answers
16 views

Editing many-to-many relationship classes with Javascript API

I am seeking some guidance on best practices when working with many-to-many relationship classes thru the ArcGIS Server Javascript API. I am designing a traffic count data management application. ...
0
votes
0answers
17 views

Refresh Legend when a layer in TOC is checked/unchecked

I am using V3.5 of ArcGIS Javascript API. My web application has a legend dijit and nliu's TOC widget. The legend updates whenever the map extent changes. However in the TOC, when a layer is ...
0
votes
1answer
21 views

[ArcGIS toolbars.Draw.POLYGON ]Object #<BarProp> has no method 'activate'

I am facing this error while activating the toolbar. This is my body code <button dojoType="dijit.form.Button" onClick="toolbar.activate(esri.toolbars.Draw.POLYGON); ...
1
vote
1answer
35 views

How to Migrate web maps from ArcGIS Flex to JavaScript API?

A client has several web maps that were made using ArcGIS Flex. But the client needs all the current web maps to be changed to ArcGIS JavaScript API. What steps need to be taken to make this happen ...
1
vote
1answer
25 views

What is difference between Map event onExtentChange and Map.extent property?

I am a newbie and I am looking to persist the map extent across sessions so that it can be loaded instead of the default extent. I believe what I need to do is to store the extent in a cookie after ...
0
votes
1answer
14 views

filtering GeoRSSLayer contents in arcgis javascript API?

I would like to make use of a public geoRSS feed with content from 10years (200+ items), however since it is too much information, i would like to show only a subset of this content in my map... I ...
0
votes
0answers
16 views

ArcGIS JavaScript problem with legend to show attributes

I'm running a geoprocessing task in my webapplication. When the task generated some results i destroy an existing legend and build up a new one that shows the legend for the resulting layers. That is ...
2
votes
1answer
13 views

Restrict WMSLayer (not map) extent with ArcGIS JavaScript API

Is there a way to restrict the rendering of a WMSLayer to a specified extent without restricting map panning and zooming? That is, I need the client to be able to pan outside the limits of the ...
-1
votes
1answer
188 views

Projection parameters from WGS84 UTM37 to Ain El Abd UTM37 and the reverse

I am developing application using JavaScript apis, I want the correct projection parameters to convert from WGS84 UTM37 to Ain El Abd UTM37 and the reverse. When I click in the map I get Ain El Abd ...
1
vote
0answers
17 views

ArcGIS for Javascript : Locate Widget Activate Popup for Layers X > Z?

Using ArcGIS for Javascript I have a map with a City Council District feature layer. I would like for the user to enter their address in the 'Address Finder' / Locate Widget (that's what it's called ...
0
votes
1answer
30 views

Uncaught ReferenceError: GEvent is not defined after migrating to google map api v3

I have managed to change the needed things, but I get the error from the title in the console, and I cannot figure it out what else needs to be done. any ideas? This is my code(if you paste it and run ...
1
vote
3answers
2k views

CORS for XHR in IE10

I am getting these errors when someone attempts to open my app in IE. I get a popup asking to Allow Blocked Content, and when this is clicked everything works fine. Is there anyway I can go about ...
2
votes
1answer
21 views

Getting geometry of drawing in ArcGIS Server JavaScript API

To me, ArcGIS Help and Online Resources is always full of unneccessay information and missing some important points. For example there are lots of samples for drawing but I couldn't find any thing for ...
0
votes
1answer
63 views

How to zoom to layer using ArcGIS Javascript API

I tried to get the function "Zoom to Layer" done using the following code snippet. But it does not change anything. The layer is a feature service layer, and I can see the full extent object of the ...
1
vote
1answer
28 views

ESRI Geocoder placeholder text not displaying

Following the ESRI API, I added the placeholder parameter to the geocoder widget to add some informative text would instruct the user what the search box was for. For some reason it is not displaying ...
4
votes
1answer
130 views

Web_Map_as_JSON from latest esri jsapi?

I'm trying to do a print export using arcgis 10.1 and latest esri jsapi. Is there any out of the box way that I can extract out Web_Map_as_JSON from a given webmap? esri.tasks.PrintTask generates a ...
0
votes
1answer
30 views

mapbox layer in ESRI API

I am building an application primarily with the ESRI API, but would like to load a mapbox tilelayer to use as the basemap as they are just so much more pleasing cartographically. I dont want to change ...
0
votes
1answer
18 views

can we add the feature layer from code

I need to add a feature layer to arcgisonline account from the code. i have created a developer account where if i want to create a feature layer i have to upload a CSV file and it makes the feature ...
2
votes
1answer
82 views

How do I make a GP Results table sortable? Or add Dojo Grid

Im aware a sort() function exists, just not sure where it should be placed in my code. I have a function that draws routes on the map and i'm getting my results that are in my table from those routes. ...
0
votes
0answers
17 views

ArcGIS API V 3.5 Navigation toolbar (zoomToPrevExtent) not working

I am just getting started with learning Dojo and ArcGIS API so please bear with me. I have an existing prototype of an application that use ArcGIS version 3.5. I am looking at the navigation toolbar ...
0
votes
2answers
62 views

2 legend objects with arcgis javascript api

Can i create 2 legend objects in one script? I'm currently working on a web-application in which i already do have a legend/TOC running and it looks like this: var legendLayers=[]; ...
1
vote
2answers
38 views

What values are needed for a SimpleMarkerSymbol?

My graphicGemetry object contains X and Y values (-9212442.86532579,4421916.145327024) but my image isn't appearing. I suspect there are other data values I need in order to plot my point but I do ...
0
votes
1answer
38 views

Update multiple features attributes in loop - JavaScript

I am trying to update multiple features in a feature layer through a loop. I have a feature layer that I would like to select and then assign someone to the features (through an attribute update. I ...
1
vote
0answers
57 views

esri ArcGIS javascript api compatibility with Internet Explorer 7 and 8

I've developed a web map using esri arcgis javascript api version 3.8 and its not compatible with IE 7 or 8. I've advised the people who have reported this to update their version of IE but, if it ...
2
votes
1answer
210 views

How to write addressToLocations onError?

How can I write a code for checking the error condition in Javascript (ArcGIS) for addressToLocations(params, callback?, errback?). if somebody entered an invalid address- how can I call error ...
6
votes
1answer
541 views

ArcGIS JS API Relationship Queries

Has anyone ever put the results of a RelationshipQuery() into a map.infoWindow that's been replaced with a dijit.popup? Here's the workflow: User clicks a point, and all identify results are put ...
0
votes
1answer
109 views

how to solve Arcgis API for Java Script - Asp proxy error

I am using ArcGis 10.1 for ArcGIS Api for Javascript. I have faced the problem of {"code":400,"message":"Unable to complete operation.","details":[]}. while running the application in IIS and my ...
1
vote
1answer
30 views

Fixed Zoom Extend For Overview Map on ArcGIS Server JavaScript API 3.8

Can some one please let me know if it is possible to have the Map Overview with Fixed extend and none zoom in or out functions? I know this was not possible on v.3 but how about v3.8? Thanks
0
votes
1answer
34 views

Popup design change

I am trying to put another link (Notes Methodologiques) next to "Zoom to" in InfoWindowLite popup window but I don't know how I can have them in the same area. What I have right now looks like this: ...
1
vote
1answer
52 views

Tell Dojo to look for minified classes with ArcGIS JavaScript API

I've got an application build using the ArcGIS JavaScript API. I have several classes built with Dojo define. Each class is in a separate file, and everything is working fine. However, I've minified ...
0
votes
2answers
116 views

Identify task: Input polygon into IdentifyParameters

I wish to find all the features within a polygon/circle drawn by my user. May I know if I should use IdentifyTask https://developers.arcgis.com/en/javascript/jsapi/identifytask.html Or is there a ...
0
votes
1answer
88 views

Flash a graphic using JSAPI AMD style

This should be simple, but not sure why I'm not getting it. Does anyone have a stub for showing how to flash a graphic? I want to be able to call it from a button in the JSAPI UI. I am using the AMD, ...
2
votes
2answers
27 views

Issue On Having HomeButton and Overview Together on ArcGIS Sever JavaScript API

Using ArcGIS 10.1 and ArcGIS Server Javascript Api I am having issue on having Home Button and Map Overview on the map. for what ever reason the home button is not showing up the map Here is the ...
0
votes
1answer
53 views

Clip and ship by a queried layer extent and by user defined extent

I am trying add a functionality to the clip and ship script. I would also like the users to extract data by the extent of a queried feature layer. For instance, if County = "Alameda" then extract data ...
0
votes
0answers
15 views

Combo Box selection to definition expression

Using ESRI JavaScript API I would like the pass the selection in a combo box to the setDefinitionExpression. I think this should be possible, but I am not sure of exactly what to do. The code that ...
2
votes
2answers
39 views

Is there a way to set a geometry filter on a esri.layers.FeatureLayer?

Suppose I want to limit the extent of a feature layer to a geometry (say a circle). Is that possible? I am aware of setDefinitionExpression but that is limited to a attribute filter. There seems to ...
0
votes
1answer
56 views

JavaScript API - Query and Edit point from Feature Layer

I am attempting to recreate the ESRI example for attribute inspections (https://developers.arcgis.com/javascript/jssamples/ed_attribute_inspector.html). I am having an issue when I create my feature ...
0
votes
0answers
19 views

ArcGIS API using maps from ArcGIS Online

I am new to the ArcGIS API for JavaScript but I would like to create an application which uses an existing map of ArcGIS Online. Creating an application where just a map is shown works fine. But now ...
4
votes
2answers
70 views

Best Practices : ArcGIS for Javascript

I have just started developing with ArcGIS for Javascript and as I'm learning Dojo I'm seeing a reason to modularize development for a more plug-n-play concept. I can't seem to find any good articles ...
0
votes
0answers
13 views

Automatically update the result of a QueryTask

I have developed a application using the ESRI JS API to allow users to create and edit features in a web map. I have used the QueryTask to create summary statistics to report back to the user on ...
1
vote
1answer
69 views

How do I change the color of an ArcGISImageServiceLayer?

I have published an image service of a raster layer (.tif). When I use it online, it is grayscale. In ArcMap, I have the option to change the color of the display. How can I do this from the ...
0
votes
1answer
38 views

Picture Symbol Proportion in ESRI Javascript API

I am successfully using a picture marker symbol to represent tree's in a web-map built using the ESRI Javascript API. Is there a method to proportionally size the picture symbol for each scale of the ...