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

learn more… | top users | synonyms

0
votes
1answer
14 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 ...
1
vote
1answer
373 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
124 views

TitlePane not rendering - working with basemapGallery sample code 2

I'm having the exact same issue as this question: TitlePane not rendering - working with basemapGallery sample code but the solution doesn't work for me. my javascript: ...
0
votes
1answer
86 views

evt.layers undefined while trying to display Legend widget in Javascript API

I cannot get an ArcGIS Javascript API Legend widget to show up. An excerpt of my code is as follows. I believe I'm failing somewhere near the console.log that I call...undefined comes up in the ...
0
votes
2answers
78 views

Is installing Web Adaptor mandatory/important with ArcGIS for Server?

If I am using ArcGIS for Server for my web application is it mandatory or important to install the ArcGIS Web Adaptor? I am facing a proxy page configuration issue.
6
votes
2answers
2k views

How do I use my own basemap with Javascript API?

I'm trying to make a map using the Javascript API. I want to use my own basemap, but I can't find the most simple code to do this. I always see something like this: function init() { map = ...
2
votes
3answers
855 views

ESRI proxy page not working properly + CORS + cross domain scripting

I have set up a proxy page. I am using jsp version of proxy page. I have set up a server URL which will point to my Java. When I load the my page which the proxy URL has set in its html it will work ...
4
votes
2answers
858 views

Auto resize map to 100% after content pane is removed in ArcGIS JSAPI

Been at this for hours and I can't seem to figure it out. I'm using AG-JSAPI 3.6 I have a map layout with a bordercontainer and two contentpanes, One is the map div and the other is the left div ...
0
votes
0answers
8 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
0answers
26 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
12 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 ...
2
votes
2answers
107 views

Popup is cropped out of window

Sometimes clicking on different features close to window boundary makes part of popup out of window's boundary. layerInfoWindow = new InfoWindowLite(null, domConstruct.create("div", null, null, ...
4
votes
3answers
62 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
1answer
13 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 ...
0
votes
2answers
46 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
41 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
0answers
17 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 ...
3
votes
1answer
22 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 ...
0
votes
1answer
32 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
15 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
19 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
89 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
2answers
151 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
33 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. ...
4
votes
1answer
174 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 ...
2
votes
1answer
246 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 ...
0
votes
1answer
34 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 ...
7
votes
3answers
8k views

Draw a point with ArcGIS Javascript API

I am currently trying to draw a point with the ArcGIS Javascript API. Pretty much like this example, http://help.arcgis.com/en/webapi/javascript/arcgis/demos/toolbar/toolbar_draw.html, except the ...
1
vote
0answers
23 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 ...
0
votes
0answers
26 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 ...
2
votes
1answer
205 views

How to create a ClassBreakRenderer without data coming from Feature Layer?

I would like to create a ClassBreakRenderer to represent integer values. The symbols I am using are defined as PictureMarkerSymbols with JSON and they are just a filled blue circle with different ...
0
votes
0answers
16 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
19 views

ArcGIS Javascript API LabelLayer - when clicking a label is there a way to know which feature is represented by that label?

When adding labels via addFeatureLayer it is impossible to know which feature was clicked? The "click" callback for a LabelLayer provides the label graphic but no reference to the FeatureLayer ...
0
votes
1answer
52 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
0answers
19 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
213 views

How to zoom to the extent of a query result

Does anyone know how to change the extent on the map in function of a query? in legende I have no problem using the function showResults (featureSet) {... but, can not get any display in AMD. Here ...
0
votes
2answers
61 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: ...
0
votes
0answers
21 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" ...
7
votes
3answers
1k views

ArcGIS Server 10.1 - Inconsistent Querying Errors

I have recently upgraded to ArcGIS Server 10.1 SP1. Since making the switch, I am getting a lot of inconsistent errors, specifically performing queries against a map service's REST API with the ...
7
votes
2answers
87 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 ...
0
votes
0answers
29 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 ...
1
vote
1answer
83 views

Intersect features / point in polygon

I have a base map on top of which I have added a feature layer . I pull thousands of json data from my db which has lat/long information , then I create points using lat/long and I plot those points ...
3
votes
1answer
211 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
0
votes
0answers
39 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
1answer
126 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, ...
0
votes
1answer
200 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 ...
1
vote
0answers
43 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 ...
9
votes
2answers
1k views

Restrict pan and zoom in ArcGIS Javascript API?

I'm creating a web map of a university campus. I have the map functioning, but I don't want to be able to pan off of the basemap, into whitespace. Do you know of a function that will auto-pan the ...
0
votes
1answer
94 views

Mouse click event used gis application with much data

I will create an application that using my water pipes, electric cables, gas pipes service in a city. All of streets and roads including water pipes. My service is publishing pipes. My service like ...
0
votes
0answers
22 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: ...