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

learn more… | top users | synonyms

0
votes
0answers
22 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
26 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
68 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
28 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
0answers
34 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
90 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
43 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
116 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 ...
0
votes
0answers
61 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"); ...
1
vote
0answers
45 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
0answers
43 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
1answer
133 views

Arcgis javascript API & highcharts libraries

I'm working with jsviewer and JSAPI V:2.8.I try to display a query result in a chart. what I want to do is :first, I want to query on my table and once I got the result liste I have a button that ...
1
vote
1answer
20 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
2answers
103 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 ...
1
vote
1answer
65 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
0answers
39 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: ...
2
votes
4answers
100 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 ...
1
vote
1answer
52 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 ...
0
votes
1answer
73 views

How to configure web map data layer that can accept csv data uploaded by user?

I made this map: http://tinyurl.com/a368268 on arcgis online. How do I get the same map but instead you can upload a new csv every time? Instead of having to first add it as data layer on arcgis ...
-1
votes
1answer
41 views

ArcGIS API for Javascript - InfoTemplate on a polyline

I have a web map with a few points and a single polyline. I have infoTemplate(s) attached to the points and tried to replicate this to the polyline however, I can't get it to work. I looked on the ...
0
votes
1answer
40 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 ...
0
votes
3answers
715 views

How to add png image with esri javascript api MapImageLayer Class?

I have a png image that we host that I need to resize and overlay onto a map at specific gps coordinates. Would this be an image class? I can't seem to find any examples that match up with my needs. I ...
0
votes
2answers
68 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 ...
1
vote
1answer
46 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
27 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
77 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
0answers
63 views

Change Logo in Public Information Web App Template

Anyone know how to change the ESRI logo and replace it with a customized logo in the "Public Information" web application template provided by ESRI? Link the Public Information Template Configurable ...
0
votes
0answers
43 views

Double tap on the map not work in the chrome of Nexus 7

I am stuck with a problem which is the double tap not working in the chrome of Nexus7. Say you have code like below. please help to review it . <!DOCTYPE html> <html ...
2
votes
1answer
192 views

how to synchronously execute a queryTask

How can a queryTask be executed synchronously? I'd like a feature set to be returned instead of deferred object. Thanks,
0
votes
1answer
26 views

Displaying network analysis service for Iran?

I am working on the ArcGIS API for JavaScript of ArcGIS for Server. I have a problem with network analysis services in Iran. There isn't any base map for routing in ArcGIS Online for Iran so how ...
2
votes
1answer
811 views

Delete Records from Feature Layer using ArcGIS API for JavaScript?

I am trying to delete some records from a feature layer, but I kept getting the error of invalid parameters from the errback. Below is my code: function deleteRecords() { var incidentId = 2; var ...
3
votes
2answers
31 views

Sharing information about apps built with ArcGIS API for JavaScript?

I built an app with the ArcGIS Javascript API and made it available on GitHub. Where would be an appropriate place to tell GIS users/developers about it?
4
votes
2answers
563 views

Point clustering only works for part of an area?

I am using the 3rd party scripts for point clustering as published by Globoserve, http://globoserve.posterous.com/ . I followed the instructions to the letter - and just replaced the queryTask ...
0
votes
2answers
259 views

Explode clusters of overlapping points in ArcGIS Javascript API

In my map application built on ESRI's javascript API there are a number of points that share a lat/long. I need a way to allow the user to see all of the points at a specific location by exploding ...
0
votes
0answers
22 views

How to call a querytask.execute in a event

My map needs to be updated every 15 minutes. I need to query to get new data time from the update. So i put a query function in "update-end" event. However the display function is never called. ...
0
votes
0answers
32 views

Join Standalone Tables from ArcGIS Server in Javascript API

I am trying to find a way to execute the equivalent of the following query with the ArcGIS JavaScript API (I made field and table names generic): SELECT a.field1, a.field2 FROM table1 a, table2 b ...
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 ...
3
votes
1answer
117 views

Making Geoprocessing Service results table sortable using ArcGIS API for JavaScript?

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
25 views

InfoWindow.move() causes InfoWindow to disappear

I use the EditToolbar to enable users to click a point and drag it to a new location. When users click, the InfoWindow showing an AttributeInspector also comes up. As the users drag the point to a new ...
0
votes
3answers
107 views

ArcGIS API for JavaScript - Create simple buffer or circle graphic against one point

I am stuck, trying to figure out how to create a simple graphic for adding a circle based on one point in my web map. I need the circle to be centered on my single point, with a radius of 5 miles. I ...
0
votes
1answer
411 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
1answer
82 views

Restrict suggestions from ESRI ArcGIS REST API to US addresses only

I am wondering if there is a way to restrict esri arcgis REST API to suggest only US addresses. Combination of location & distance parameters prioritizes the results, but that doesn't restrict ...
0
votes
0answers
27 views

Conversion of code from ArcGIS for JavaScript 3.7 to version 3.9

I have a developed a simple website using ArcGIS for JavaScript using version 3.7 and now want to migrate to version 3.9. How difficult is this? Any suggestions on making this an easy task..
0
votes
0answers
55 views

Can't zoom to feature from Datagrid with ArcGIS API for JavaScript

I have a find task in my application that returns features that are points, lines and polygons. I can get the search to populate the datagrid but I am having problems with my onRowClickHandler ...
1
vote
2answers
40 views

ArcGIS Javascript API zoom out?

I am using the ArcGIS API for Javascript and am wondering if it comes with functionality for zooming out using a rectangle, similar to the behavior in ArcGIS Desktop? Specifically, the user draws a ...
0
votes
2answers
65 views

ArcGIS Javascript API: Get Map Object from DIV

So I am currently writing an application using the ArcGIS JavaScript API, and I want to access the map object that is held inside of my div from a js module I have. I was thinking it would be a simple ...
1
vote
0answers
91 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 ...
0
votes
0answers
25 views

Map Route Direction Zoom to Segment

Basically I am trying to zoom to certain route segment when getting direction on OneMap. Here is the JavaScript codes where I trying to plot a route and zoom to certain route segment: function ...