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

learn more… | top users | synonyms

1
vote
1answer
91 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
21 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 ...
0
votes
1answer
34 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
0answers
20 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 ...
2
votes
0answers
40 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 ...
1
vote
1answer
57 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
3answers
83 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
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
27 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
38 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 ...
1
vote
0answers
32 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 ...
0
votes
2answers
50 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
62 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
1answer
34 views

how to not print scalebar and how to print the zoom bar that shows on map

I am using javascript api for ArcGIS and need to print the zoom bar on map, but don't want the scale information to be printed. How can I achieve this?
0
votes
1answer
242 views

dojo/parser::parse() error TypeError {stack: (…), message: “Cannot read property 'toString' of undefined”}

I'm trying to get the overview map example working from here: https://developers.arcgis.com/javascript/jssamples/widget_overviewmap.html in my site. I have two errors. Chrome gives the one above in ...
0
votes
0answers
43 views

How to mouse hover on kml layer in arcgis javascript api

I am using ArcGIS java script API for map. i want show an popup info window when mouse hover on kml layer.I am trying this code for and using mouse-over event , But this is not working on kml ...
1
vote
2answers
33 views

Placement of Save Button in ArcGIS Javascript AttributeInspector dijit

I am having a problem with an AttributeInspector that I noticed also exists in an online sample here: http://developers.arcgis.com/javascript/samples/ed_attribute_inspector/ If you click on a polygon ...
0
votes
1answer
32 views

How get the link or file from uploads forder of feature service arcgis

I have succeeded in adding a file to arcgis server with the upload method of a feature service on arcgis server. But i can't see how to download what i have uploaded to. Do you have any idea on how I ...
0
votes
0answers
14 views

applyEdits method and File on arcgis feature service

I would like to know if it's possible to upload a file through the applyEdits method on a feature service? I have an Oracle database with a parameter "DOCUMENT" of type BLOB. I would like to upload ...
0
votes
1answer
34 views

Setting up ArcGIS Print service for ArcGIS Online account?

Can anyone tell me is it possible to setup an ArcGIS Print service with ArcGIS Online account? I could not find where to create one. What I would like is to implement this feature: ...
0
votes
0answers
42 views

InfoTemplate inside InfoWindow with multiple service layers

I have implemented the InfoWindow with TabContainer to work with my InfoTemplate which, when my layer is identified works beautifully with the custom attributes that I have set up. However, when ...
1
vote
1answer
33 views

ArcGIS API for JavaScript - Adding Point(s)

I need to add a single point, I am new to JS and ArcGIS API. I was looking for some code examples on how to create a point and/or a few other points (as needed) I can't use any additional ...
1
vote
1answer
34 views

How to get the TOC to update after adding a new Layer in the ESRI JSAPI?

I am developing an Web map with the ESRI's JavaScript API v 3.9. I am using the TOC widget available at http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 The documentation ...
0
votes
0answers
40 views

adding a column containing buttons in dojo grid arcgis jsapi

I am using ArcGIS jsapi to develop a web application where I use a synchronous geoprocessing service that return a shapefile. I used the shapefile table to populate 2 dojo grids depending on the value ...
0
votes
0answers
28 views

Using ArcGIS API for Javascript with Chrome on info window popup calls back two instances?

Using the ArcGIS API and harvesting external web map services. When using the application in Chrome when I click on a feature the info window calls back 2 instances of the same layer feature info in ...
1
vote
1answer
49 views

Migrating ArcGIS 9.3 to 10.1? [closed]

We have an older running ArcGIS 9.3 asp.NET application. Now we have installed 10.1 and started migrating. We had used Map Web Controls for displaying map in asp.net.Because there are some libraries ...
0
votes
0answers
37 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 ...
0
votes
1answer
36 views

How to forbid zoom map under scroll page?

I wrote code at ArcGis JavaScript. There is a map on web page at full display with a fixed height (400px) When i scroll-down page and cursor misses in zone map then browser works for zooming map, not ...
0
votes
1answer
78 views

using REST “delete features” in arcgis api for javascript

I am developping a web application that uses a feature service, what i want to do is save the data in the feature server, and then delete all the features at the start of the application. I am able to ...
0
votes
1answer
76 views

add features to a featurelayer and save changes in the server

I am developping a web application with arcgis javascript api. I am using arcgis server 10.2. I declared a featureLayer, the URL of this featureLayer is a feature service on my server. Using a ...
1
vote
0answers
29 views

Trouble adding tabs in identity popup JS API

May 28 Edit I have edited my code a bit and have come up with a fix to the tab container, however I am now having troubles getting my attributes to show when I click on one of my service layers. ...
1
vote
0answers
19 views

Identify Toggle Layers with Attachments

I was looking at this fiddle http://jsfiddle.net/neWnE/1/ and trying to see get attachments to work. Since it uses the popuptemplate I should be able to add the showAttachments: true to it to get ...
1
vote
0answers
54 views

How to combine three data extraction functions into one button?

I am looking to simplify my code. As of right now I have some code that allows users to extract GIS data in three different ways: Extract by drawn extent Extract by extent of the a county Extract by ...
0
votes
1answer
31 views

Passing RasterDataSource object to RasterData object in Javascript API?

I have a GP service that requires a RasterData object as input. The RasterData object should hold a RasterDataSource object, but I'm not sure of the syntax to connect these two classes. The API ...
0
votes
1answer
70 views

Modify the Zoom Buttons in ArcGIS.com JavaScript Application

I'm writing a JavaScript application to view web maps from ArcGIS.com. It is similar to the sample found on Esri's Samples page: http://developers.arcgis.com/javascript/samples/ags_createwebmapid/ ...
0
votes
2answers
53 views

Add an individual layer from ArcGISDynamicMapServiceLayer to the map

I have a ArcGISDynamicMapServiceLayer containing many layers. I'd need to add only individual layers to the map, like layers 2,5 and 10. The following code would add all the layers to the map: url = ...
1
vote
0answers
13 views

Make InfoTemplate moveable but still highlight attributes

I’m using the esri/InfoTemplate in the Javascript API to identify features. However, it gets anchored to the mouse click and cannot be moved around. Based on this answer I used dojo/dnd/Moveable to ...
0
votes
0answers
24 views

update a row with null geometry arcgis api for javascript

I am working on a project with ArcGIS api for javascript. I want to use something like "Replace Geometry Tool" in advanced editing in ArcMap: My application will generate a shapefile of points. Some ...
2
votes
1answer
139 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,
1
vote
1answer
40 views

HTTPS and working with non-secure services - ESRI jsAPI

Situation: I am currently working with an app that is required to be delivered over HTTPS because of an organizational security requirement. I currently do not have access to this servers ...
0
votes
2answers
52 views

queryTask - execute vs executeForIds

When setting up a queryTask, what's the difference between queryTask.execute() and queryTask.executeForIds()? In ESRI's JS API Reference, they have the exact same descriptions: ...
0
votes
1answer
133 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
0answers
44 views

Using ArcGIS SDK or REST API to create a route

I'd like to create a route by specifying endpoints and roads to travel by. For example, I'd might want to create a route from Atlanta GA to San Diego CA, but I want to specify that the route traverse ...
0
votes
1answer
38 views

ArcGIS JS - Feature Layer selection symbol before layers loaded

I have a feature layer that is dynamic and could pull a geometryType: esriGeometryPoint or geometryType: esriGeomertyPolygon I was wondering how would I know when to set the selection symbol to ...
0
votes
0answers
46 views

ArcGIS JavaScript manually render a layer with supplied JSON

Given the following JSON which is retrieved outside the ArcGIS/dojo framework, how would I go about rendering this layer? Thanks in advance! { "currentVersion": 10.01, ...
0
votes
1answer
66 views

return when asynchronous task has completed

I'd need a function to wait until the asynchronous task has completed and then return. In my example, I'm getting undefined returned from the "execute" method: var result = myClass.execute(obj); ...
0
votes
0answers
41 views

Detecting esri markers within certain distance using ArcGIS JavaScript API?

I have a set of coordinates that is loaded from database. I would like to detect all the loaded markers that are close to each others which is within a certain distance. so the code is something ...
0
votes
0answers
23 views

When will visibleAtMapScale property be populated for a map/image service?

To my knowledge, the service layer property, visibleAtMapScale, represents the service scale dependency. I like to know when visibleAtMapScale value is populated. I tried to get it when the layer is ...
0
votes
0answers
28 views

map stops at map.graphics.add(graphic);

function getLocRes(results) { //map.graphics.clear(); var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new ...