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

learn more… | top users | synonyms

4
votes
0answers
276 views

convex hull over selected features

I am trying to achieve a convex hull over a feature Set returned by a query. But have been facing the error below which i am not able to figure out In order to debug to see how the convex hull works ...
4
votes
0answers
4k views

Populate an existing popup with an AttributeInspector after RelationshipQuery returns results

Here's the workflow: A user selects a feature layer polygon, views a popup. A link added to the popup will run a RelationshipQuery to view related records. How can I get the RelationshipQuery results ...
3
votes
0answers
78 views

Adding Edit button to ArcGIS Javascript template?

We've been able to successfully download the Find, Edit, Filter template, customize the configurations, and host it on our own server but here is the issue we are facing now. We're looking to use ...
3
votes
0answers
146 views

ArcGIS Javascript API - Looking For Styled Navigation Plugin/Widget

I am looking for a fancy navigation plugin to use with the ArcGIS Javascript API. Something along the lines of the Navigation Widget (see image below) available in the Flex Viewer would be great. ...
3
votes
0answers
448 views

How to create a custom Attribute Inspector for mobile app using the ESRI JS API

I am making a mobile version of a JS web application I developed. I'm noticing though that the AttributeInspector widget by default uses standard dojo/form controls. This means that the form within ...
3
votes
0answers
579 views

ArcGIS Javascript API 3.3 - Changing Layer Definitions / Refresh Not Behaving

I have an ArcGISDynamicMapService layer in my application that points to a fairly simple (6 layers) map service. In the application, there is a GUI/widget that allows the user to pick various options ...
2
votes
0answers
38 views

feature layers don't appear in the print result

salam, I have a problem when I print my map, when I display the result I find only one feauture of twenty. the result does't contain all features. I used esri/dijit/PrintTask verifier: function(){ ...
2
votes
0answers
118 views

High-DPI printing with ArcGIS API for JavaScript and esri.dijit.Print?

I've got cached tiles for all map layers at various zoom levels, and would like to print at DPI higher than the default (around 96) by using tiles from a deeper zoom level. It doesn't matter if map ...
2
votes
0answers
42 views

Showing data in form view (instead of grid view) using ArcGIS API for JavaScript?

Can anyone suggest how to bind data with the help of query in a Form view of the ArcGIS API for JavaScript? I have done it in Grid view but as the requirement of a client is that I have to bind it to ...
2
votes
0answers
108 views

Rendering performance

I am using ArcGis Java SDK for creating a map in my JavaFX application. I have a requirement to plot up to 500,000 graphics on graphics layer. When I do 100,000 graphics its performance is really bad. ...
2
votes
0answers
66 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
0answers
268 views

Can I highlight a selected feature using the ArcGIS REST API only?

I have a .Net web application with embedded maps, using the Arcgis javascript API. For non-interactive maps, I thought I would just make calls using c# to the REST endpoints. This works fine for ...
2
votes
0answers
96 views

Cannot use published zonal stats geoprocessing service (Arcgis Java API)

I am primarily following this tutorial. Here is the signature for the service used in the sample. It is slightly different than the one I have had any success with, though if I recall correctly the ...
2
votes
0answers
64 views

Dissolve Statistics Fields and Statistic Type as Parameters in GeoProcessor

I have a published service which uses a dissolve. In arcMap the I get prompted for all the fields, including statistics fields and stat type. I have the statistics fields marked as parameters. ...
2
votes
0answers
371 views

Data visualization techniques for web maps using ESRI and open source suites

I want to represent statistical data over the web map and looking the examples/techniques to represent data on the web map (apart from Pie-chat, bar graph) with new tools like gauge widget etc. ...
2
votes
0answers
168 views

How to serve KML files from ArcGIS Server in AGS JSAPI 3.6

I have a javascript test page that adds a couple kml layers to a map and I can toggle them off and on. I seem to get info popups for free with KML. When I click on a point feature I get the data ...
2
votes
0answers
657 views

How to access ArcGISDynamicMapServiceLayer with credentials (token)

I know I simply need to append a token=XXX to the export query string but how, in code, do we initialize "esri/layers/ArcGISDynamicMapServiceLayer" to use credentials? In my case I only want to ...
2
votes
0answers
124 views

Jsonp Callback error

Recently we have started migrating application from Javascript API 3.1 to 3.5 and we are finding this jsonp error coming sometimes during adding the layer.When we add the layer we also zoom to the ...
2
votes
0answers
2k views

How to dynamically add all feature layers using ArcGIS JavaScript API?

I have a mapserver http:// mymapserver/services/rest/xxx/mapserver/ which contains 7 layers with /mapserver /1 /through mapserver/7 If a define an ArcGISDynamicMapServiceLayer and 7 ...
2
votes
0answers
337 views

ArcGIS in PhoneGap

I am trying to set up a PhoneGap application with an ArcGIS Map using a Windows Phone template in Visual Studio 2012. I have tried using an example from the ArcGIS Javascript API samples to ...
2
votes
0answers
293 views

Anyone have success with OpenLayers and ArcGISCache?

OPENLAYERS Has anyone had success using OpenLayers and the ArcGISCache layer beyond the examples? I'd like to mix tiles with different resolutions and although they seem to scale correctly they do ...
2
votes
0answers
202 views

JSAPI: How to prevent GetImageUrl from being called twice?

I posted this on the ESRI forum a while back but got no response. PROBLEM: GetImageUrl is called twice resulting in two trips to the server if caching is off. QUESTION: How can this be prevented ...
2
votes
0answers
532 views

ArcGIS Javascript API - IE9 Quirks Mode

I'm having difficulty understanding why ArcGIS Javascript API isn't rendering SVG when running in IE9 quirks mode. When I visit the ESRI sample site at ...
1
vote
0answers
16 views

Attachment access using ESRI's dynamic services

I need to be able to display photo attachments in a tabbed popup window that ideally only contains a dynamic map service. I have a working demo running that uses a dynamic map to display the data and ...
1
vote
0answers
26 views

Run a locator task

I'm working with ArcGIS javascript api and I have a search function that finds a persons address by name and sorts it into a table inside a modal popup. It returns multiple people with the same name. ...
1
vote
0answers
42 views

Near Geoprocessing service

I created a simple model that includes a near geoprocessing tool with a point feature layer as an input and a line feature layer as a near feature and it works perfectly in desktop. Now I would like ...
1
vote
0answers
36 views

How to use ArcGIS API for Javascript print task to create a legend for dynamically rendered layer

I am using v 3.11 of the ArcGIS API for Javascript and executing the PrintTask to generate a printable pdf of a web map. The map has a couple of Dynamic Map Service Layers that are dynamically ...
1
vote
0answers
27 views

How to create a infotemplate that displays automatically

I have created a postcode search that that highlights a polygon and zooms in. but I would like it to display a infoTemplate box with having to click in it. I want it to show when the function runs. ...
1
vote
0answers
21 views

ArcGIS API for JavaScript Bookmark in separate Div

Using the ArcGIS API for JavaScript I need to create a number of different bookmarks and access them through the HTML in separate div tags. I created this JS Fiddle in attempt. I thought that if I ...
1
vote
0answers
46 views

Creating a buffer round a polyline

At the moment the code I use creates a buffer extending 1000km from each geometry creating square buffer zones over polygons, lines and points. How can I amend the code so that it creates a 'sausage' ...
1
vote
0answers
26 views

Mobile Safari and ArcGIS JavaScript API Errors

So in creating an application that uses the LaywerSwipe widget the application displays fine on iOS but I am unable to move the scope or slider. I get the following errors from init.js : It keeps ...
1
vote
0answers
91 views

ESRI Javascript - Print Task GP Service - Symbology Issue

I am using the ESRI js API, and using a python GP service to run a print task to PDF with custom layouts. This works great, except when i have any map service enabled in the map. The layer in the ...
1
vote
0answers
27 views

Generating a Placemark (Google Earth) via information link

I'm using the ArcGIS JavaScript API. I'd like to have an infowindow pop up that has a link to a downloadable KML placemark. Is this possible without pre-generating thousands of individual KML files? ...
1
vote
0answers
33 views

how to finds draw extents includes my point extent in openlayers3

i draw a DragBox on openlayers map and when i use drawend event, i can see thats extent. and i have some point on my map. my point is selected in EXTENT want to check whether with using openlayers3 ...
1
vote
0answers
29 views

view attributes from feature service and export to CSV or copy to clipboard

I have a Geo-Processing service that generates summary statistics of an area of interest. What I would like to know is; Simple method to display the data in my Webpage. Is Dgrid the recommended ...
1
vote
0answers
60 views

Printing from Feature Layer via ArcGIS API for JavaScript?

I am trying to print a map using a print service. I have followed the example on the ArcGIS site namely: https://developers.arcgis.com/javascript/jssamples/widget_print_esri_request.html However I ...
1
vote
0answers
95 views

ArcGIS JavaScript API Help

Kind of learning on the go here. My initial goal here is to allow a person to put a point on a map fill in the form, then close the form. I do not want them to be able to click other points to see the ...
1
vote
0answers
31 views

Retrieve the attributes from a feature with IdentifyTask/IdentifyRequest (Javascript API)

So I'm building a GIS web application. I am able to get the result from IdentifyTask with the "oncomplete" function, the problem I am running into is how I can get the information back out of the ...
1
vote
0answers
47 views

Increase maximum zoom level for a WebTiledLayer in ArcGIS

I am using the WebTiledLayer from the Javascript ArcGIS API to render a custom WMTS source. The WMTS I am using has zoom levels going from 18 to 21, however I cannot zoom in further than what appears ...
1
vote
0answers
77 views

Map Service Works in Flex, Won't Display using JavaScript

As the title states, a map service published on my server displays and can be identified just fine when added to a web map in Viewer for Flex. I am slowly learning to use the API for JavaScript. My ...
1
vote
0answers
45 views

How to Retrieve field name from Uploaded Excel file using ArcGIS Javascript?

I published GP Service which involves uploading data to the server using Upload feature of 10.1. I wrote the code for getting the itemID of the uploaded file. I wanted to have user select the X and Y ...
1
vote
0answers
19 views

Hide labels for features without data

I have a FeatureLayer that uses a ClassBreaksRenderer. The renderer loads data from a collection like so: var renderer = new esri.ClassBreaksRenderer( null, function (graphic) ...
1
vote
0answers
46 views

export map state as JSON: Web_Map_as_JSON

Is there a way to export the current map state as a JSON object, mostly named Web_Map_as_JSON. The JSON specification should be like this. In other words, it would be convenient to have a function ...
1
vote
0answers
27 views

How to pre-populate JavaScript forms in ArcGIS Web Application?

I have an ArcGIS web application and would like to pre-populate order numbers. Say if order 1 has been entered for a point on a map, when the next point is added, order 2 would populate ...
1
vote
0answers
30 views

Changing the color ramp in arcgis javascript

Using the arcgis javascript api, I am displaying geotiffs. What I want to do is change the color ramp in these images. I've looked through the api and I have not seen anything. Does anyone know where ...
1
vote
0answers
204 views

FindTask result returns an array of features but only displays the last item in the popupwindow

executing the complete findtask url generated by my application from the address bar I get back a good json object that returns 112 features I was trying to implement functionality similar to this ...
1
vote
0answers
24 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 ...
1
vote
0answers
50 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 ...
1
vote
0answers
180 views

Show Geometric Network Topology data in the web

I am trying to locate any API's for JavaScript (or other) that will help me to display current linear Geometric Network Topology and add multiple point/line geometry from JSON in HTML/JS. I ...
1
vote
0answers
73 views

Google Maps API to DOJO/ESRI Web App

I have a GIS webpage in HTML5/JavaScript using the Google Maps API. I found out we can no longer use the Google Maps imagery provided, and I need to switch to ESRI Imagery (free). Can someone help me ...