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

learn more… | top users | synonyms

1
vote
3answers
71 views

Remove Geometry from map using ArcGIS API for JavaScript?

I need to remove a geometry from the map. It may be a marker, circle, polyline etc. I don't see any method like remove, clear or destroy. I already know how to clear everything on the map but this is ...
1
vote
0answers
23 views

Can you set custom fields for a [Feature] Layer?

Is there some way I can "tag" a [Feature] Layer so that I can grab the layer from the service and see in some attribute LocationField = I suppose I could put that information in the description and ...
3
votes
1answer
50 views

Inconsistent Identify Task- Explain this bug?

Through some console.log debugging I've located the exact line of code that is failing me but I'm not quite sure how to fix the problem. Basically, I have an identify function that queries the ...
2
votes
0answers
31 views

Saving bookmarks in a database using javascript [closed]

I want to save a bookmark permanently in a database using javascript. I have an idea. "I have a service. so that i shall use that service to interact my code and the database." I am struck with ...
1
vote
1answer
27 views

Drawing Graphic at street layer/level only

I am new to ArcGIS JavaScript API and would like some help. I have a scenario where a user has to draw a graphic, mainly a polyline and some points on a map. To avoid confusion I want to limit the ...
0
votes
1answer
34 views

AGS Tiled Map Services and the .jpg file extension using js api

I have an old app that is still using esri js api 1.4 (i know, it's dated) but that app works and it can pull tiles from a 10.0 tiled map services. When it does that it calls for the tiles at the url ...
0
votes
3answers
66 views

How to draw polygons from watershed boundary dataset?

I'm working on a web map using esri arcgis javascript api. I'd like to use the NHD Watershed Boundary Data to draw polygons based on the boundaries of the watersheds. Does anyone have any ideas of how ...
1
vote
1answer
29 views

Understanding URL that IdentityManager.findServerInfo() method expects?

Does anyone have experience working with the IdentityManager object in the JS API 3.9? I'm trying to understand what URL the findServerInfo() method expects. I've tried the base REST url, and ...
1
vote
1answer
49 views

How to remove ArcGISTiledMapServiceLayer completely

I have a problem related to "ArcGISTiledMapServiceLayer". I have an ArcGISTiledMapServiceLayer map service, which I have added to Map object. This service work as BaseMap. Now I want to add another ...
1
vote
1answer
41 views

Can I set individual scale levels for an ArcGISDynamicMapServiceLayer?

I have a map service that contains 6 layers. I turned one layer into a feature layer. I used this layer in a query and show the result. I then would like to just show the other 5 layers as a ...
1
vote
1answer
176 views

Why isn't my ArcGIS JavaScript QueryTask working?

var map; require([ "esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/layers/ImageParameters", "esri/tasks/QueryTask", ...
1
vote
1answer
22 views

Can I set individual opacity levels for an ArcGISDynamicMapServiceLayer?

I've added a ArcGISDynamicMapServiceLayer and I've used the imageParameters.layerIds property to only show certain layers. Is there a way to set a different opacity level for each layer?
1
vote
1answer
70 views

Is editing feature service through the REST API an okay approach?

I have a database that receives real-time data from alarms throughout the day, or on request. I'd like to create a web map that displays the "bad" alarms. My current idea is to create a Python ...
0
votes
1answer
44 views

Use Dojo to load modularized widget config files

I've taken a basic webmap 'ESRI HomeButton' and I'm trying to create a modularized webmap setup from it. I want to break down this simple webmap to have it utilizing a module system with config files ...
1
vote
1answer
70 views

ArcGIS for Javascript Template available?

ESRI has a stack of templates in the ArcGIS Online section. But when you download them it turns out that in order to make them run, you have to first create a webmap via their WebMap Viewer ...
0
votes
0answers
29 views

Create a PDF with map imagery and feature data from ArcGIS API for Javascript?

I would like to allow the user to zoom to a particular zoom, within their preferred extent, and then send this information to a PDF as well as relevant information from visible features. The end ...
5
votes
3answers
124 views

Hide zoom buttons in ArcGIS

Is there a way to hide the zoom-in/zoom-out buttons in ArcGIS javascript API? I have external zoom buttons elsewhere on the page, so these are no longer needed.
0
votes
0answers
65 views

Add Stacked Column Chart in InfoWindow

I want to add a a dojo stacked column chart to my InfoWindow (not pop up) that displays when a user clicks on a county in my map. The chart is based on land use information in each county layer from 3 ...
1
vote
2answers
86 views

Full extent of a map

Is there a way to get the full extent of a map? I am looking to use this extent to zoom out to whole world view on a button click.
0
votes
1answer
22 views

Passing extent from web map to PDF for integration?

I'm trying to figure out whether I can take an extent (or coordinatess with a Zoom level included) to a PDF in order to author a PDF that displays both GIS and report-styled business data? Is this ...
4
votes
2answers
93 views

ESRI JavaScript API ArcGISDynamicMapServiceLayer Scale Dependency Visibility

Background: I am building a JavaScript web app using ESRI's JavaScript API v3.8, and our ArcGIS Server v9.3.1. I have layers I am rendering using the ArcGISDynamicMapServiceLayer, and I have been ...
-1
votes
2answers
366 views

Populating combobox and zoom to selected field in box?

I am very new to arcgis javascript .I am not able to populate combobox and zoom to the selected field in the box <!DOCTYPE html> <html> <head> <meta ...
0
votes
1answer
195 views

Error executing tool.: Layer “layer1” Unable to connect to map server

I am using the Configurable Javascript Viewer, and have only changed a couple of the configuration settings. One change I made was to use my own Export Web Map Task. In viewer.js, I changed: ...
0
votes
0answers
27 views

ArcGIS javascript. Trying to use a dojo table of contents in CakePHP

Sorry for asking so many questions, but I am trying to learn arcgis, dojo, and cake all at the same time :/ Basically what I want to do is get this to work in the latest CakePHP. Where do I place the ...
0
votes
0answers
36 views

Add text to PictureMarkerSymbol in arcgis using javascript

I am new to ArcGis, i need complete code of how to add dynamic text on the marker symbol. I have Location Data in Json format: {locations: [{latitude: 52.1, longitude: 4.1, ...
0
votes
1answer
69 views

Mapquest directions API in ArcGIS javascript webmap application

I'm trying to build a webmap application using the ArcGIS JavaScript API. A functionality I would like to include is driving directions from a current GPS location to a feature in my feature service. ...
0
votes
0answers
48 views

ArcGIS Javascript API, help with adding marker data to infotemplate

I previously asked a question about adding picture markers from a list of coordinates I got that working, but now I need to apply info windows to each one and I have no clue how. The only thing I have ...
0
votes
0answers
27 views

FindTask doesn't work with rest of JavaScript code

I need to add a FindTask to the following code that returns the attributes of the searched in a data grid and selects the data on the map. By modifying the "show find task results in a datagrid" ...
0
votes
0answers
41 views

JavaScript: FindTask works but no data appears on map

I need to add a FindTask to the following code that returns the attributes of the searched in a data grid and selects the data on the map. By modifying the "show find task results in a datagrid" ...
0
votes
1answer
97 views

How do I make a picture marker symbol at a given latitude and longitude in ArcGIS for Javascript?

I have no idea how to use ArcGIS, so I spent about six hours trying to figure it out and got nothing. The only thing I have working is showing the map. ...
0
votes
1answer
117 views

ESRI JavaScript API 3.8 Locator: SyntaxError {log: undefined, stack: (…), message: “Unexpected token <”}

I am having issues trying to set up a geocoder/locator on my server. I keep getting an error SyntaxError {log: undefined, stack: (...), message: "Unexpected token <"}, but I can't seem to figure ...
0
votes
0answers
47 views

Copy ESRI Map by Value (not Reference) in JavaScript

Any way that you know of in JavaScript to copy an ESRI map object by value, not by reference? I know that I can do this: var foo = new esri.Map("foo"); var bar = foo; foo.id; //"foo" bar.id; //"foo" ...
0
votes
0answers
82 views

Showing only some points in Feature Layer on ArcGIS.Com WebMap Javascript API

I am looking at creating a webmap which will allow users to place a point either by clicking on a map or selecting a point from a drop down which will then buffer the point. I've done something ...
0
votes
0answers
121 views

ArcGIS Circle Buffer

I am stuck, trying to draw a simple circle buffer using ArcGIS. Here is how I set up my base map: dojo.require("esri.map"); dojo.require("esri.tasks.servicearea"); dojo.require("dijit.dijit"); ...
0
votes
3answers
162 views

How to toggle ArcGIS webmap layers using ArcGIS Javascript API

I've created a webmap using ArcGIS Online that I want to render in a web app using the ArcGIS for Javascript API. In ArcGIS Online, I've saved the webmap with all of the layers off (visibility: ...
7
votes
2answers
98 views

Which feature has highest value within extent

I have a layer in which I need to find out the maximum value of a given field within the current map extent, and then return back the value from a different field. e.g. Find state with highest ...
1
vote
0answers
47 views

Display 3 maps equally

How can I get a 33% equal split for 3 map panes - I keep getting the middle map being smaller than the left and right ones for some reason. Theres no header or footer - just 3 maps. If anyone can ...
0
votes
0answers
80 views

Point Cluster Layer not defined

I am trying to do a point cluster layer based on the JSON objects I obtained from database. Here is my JavaScript to plot a point cluster layer: function addClusters() { $.ajax({ url: ...
2
votes
2answers
70 views

Change symbol size in legend for FeatureLayer (ArcGIS API for JavaScript)

I'm learning how to create web applications using the ArcGIS API for JavaScript. I have a map that is displaying both an ArcGISDynamicMapServiceLayer (which includes two layers) and a FeatureLayer. I ...
2
votes
1answer
42 views

Setting Rotation of ExportWebMap

I see from the ExportWebMap specification that rotation can be set in the JSON object sent to the sever. Does anyone know if this can be accessed via the ESRI JavaScript API (v3.9)? I do not need to ...
0
votes
0answers
64 views

Dojo Stacked Columns Chart for JavaScript ArcGIS Web Map Pop

Anyone know how to use the the StackedColumns chart in dojo for ArcGIS JavaScript API? I need to add one to my popup window. I can only find the documentation below: ...
1
vote
1answer
83 views

ESRI Javascript API QueryTask error handling

I'm struggling to find the proper way to handle errors in a QueryTask. Particularly if the user clicks outside the feature layer. My current QueryTask looks at a field (bare_earth) populated with ...
1
vote
1answer
114 views

How to upload a csv file into esri map with coordinates and plot in an esri map

I have got a sample code to plot the points on an esri map using a csv file. But the csv file is maintained in a server, i'm unable to upload it from my local system.Please let me know how i can refer ...
0
votes
2answers
226 views

ArcGIS Javascript API Query & Add features without map using REST API

I need to query arcGIS map service and add this result to another feature service using ArcGIS JavaScript API. I should not use MAP object. I did query data without map from ArcGIS sample: Now i need ...
0
votes
1answer
60 views

ArcGIS Javascript API Editing - Create Feature from Geometry Object

I'm interested in passing a geometry object with certain attributes to an exposed feature class for committed edits. Essentially, I want to manually create a new feature without the template pane or ...
1
vote
1answer
60 views

Basemap Widgets

I am looking for a fancy Basemap plugin to use with the ArcGIS Javascript API. Something along the lines of the Basemap Widget (see image below) available in the Flex Viewer would be great. Anyone ...
1
vote
0answers
44 views

How to offset/displace overlapping lines in a web map?

I have a dataset of points representing a To/From status - something like distribution centres and delivery addresses. When the user clicks on a point I'd like to show the relationships between this ...
2
votes
1answer
116 views

How to make query task synchronous in ArcGIS JSAPI

I am using ArcGIS JS API version 3.6. I want to make query task synchronize. While executing query task reaming code will wait until completion of query task. For example I have shared my code here ...
0
votes
2answers
91 views

Simulate a mouse-click inside an ArcGIS Online JavaScript Application

I have a JavasScript application consuming an ArcGIS Online Web Map. I want to open a default popup at a specific coordinate. Is there a way to simulate a mouse-click at that point, or a better ...
2
votes
4answers
116 views

Crowdsourcing points by on-click to web map with moderation?

I want to build a really lightweight web map interface where a user can click anywhere on a map, create a point, type in a comment -- ideally all via Facebook, but I don't want to get ahead of myself ...