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

learn more… | top users | synonyms

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
23 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
129 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
18 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
57 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
167 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
232 views

set infoTemplate for various graphics in graphics layer in loop

I am successful at getting an info window pop up on the event click of a marker on a map. Now, what I'm having trouble with is passing unique information for each graphic in the loop to the individual ...
1
vote
1answer
39 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
25 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
80 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
38 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
69 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 ...
0
votes
1answer
116 views

Browse (add/remove) ArcGIS Server Services (Layers) from the ESRI Javascript API viewer

I am quite new to the Javascript API. I am not if there is a widget that does what I would like but I am trying to create a web map that allows the users to choose/add/remove layers located on our GIS ...
0
votes
1answer
32 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
32 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
1answer
143 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 ...
0
votes
3answers
626 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 ...
6
votes
1answer
629 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 ...
3
votes
1answer
721 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
2answers
55 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
44 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
22 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
50 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
50 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
35 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 ...
0
votes
1answer
57 views

Add Point Symbol and Zoom to Address using Geocoder Widget

I'm following the tutorial here and it's not working: https://developers.arcgis.com/javascript/jstutorials/tutorial_geocoder.html Issue: I just want to add a point symbol and zoom in for the address ...
2
votes
1answer
128 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
22 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
753 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
543 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
200 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
14 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
18 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
112 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
19 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
82 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 ...
2
votes
0answers
39 views

Adding an 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 ...
0
votes
1answer
265 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
54 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
26 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
24 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
37 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
47 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
55 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
28 views

ArcGIS JavaScript API: onAnimate Error

I am trying to zoom to a point in ArcGIS JavaScript API (3.9). I am doing this one of two ways, I am either grabbing a point feature from ArcGIS Server (10.1), or I am grabbing the center of a polygon ...
0
votes
0answers
22 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 ...