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

learn more… | top users | synonyms

0
votes
0answers
53 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
votes
1answer
259 views

how to solve Arcgis API for Java Script - Asp proxy error

I am using ArcGis 10.1 for ArcGIS Api for Javascript. I have faced the problem of {"code":400,"message":"Unable to complete operation.","details":[]}. while running the application in IIS and my ...
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
35 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
57 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 ...
1
vote
0answers
30 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. ...
0
votes
0answers
30 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
51 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
1answer
41 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 ...
1
vote
1answer
37 views

Javascript Map (ArcGIS API for JS v 2.9) Not Releasing Listeners

Our company uses a 'ArcGIS for Javascript' custom-developed map that was built on Dojo a few years ago. It has the 'usual' tools (Identify, Measure, etc) but the listeners won't release the tools. I ...
4
votes
1answer
1k views

Tiled map service base layer does not display properly in ESRI Javascript map

I am adding a map to a website built in asp.net and Javascript. When I add the esri.Map using a tiled map service layer base map, the map overlaps the map div and what I assume are tiles show up out ...
0
votes
1answer
93 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 ...
4
votes
2answers
3k views

How to calculate distance between two points with esri.geometry?

The function http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_geometry/esri.geometry.getLength should calculate distances between points. When I am trying to calculate distance ...
0
votes
1answer
95 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 ...
0
votes
1answer
34 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 ...
1
vote
0answers
21 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 ...
0
votes
2answers
57 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 = ...
0
votes
1answer
91 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/ ...
1
vote
0answers
56 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 ...
3
votes
1answer
263 views

TO_DATE query on ArcSDE for Oracle dataset failing?

I'm trying to use TO_DATE to query an Oracle SDE dataset. It's not working in the javascript API application so I tried to query the rest end point directly and I get the error: "Unable to perform ...
2
votes
1answer
872 views

Arcgis Javascript latitude and longitude convert to WGS_1984_UTM_Zone_36N

I am using Arcgis Javascript api. I have two points comes from Google maps like this x:-111.67095840000002 y: 32.7558935 I wanna use this points on my Arcgis map. My map spatial reference is using ...
0
votes
1answer
62 views

ArcGIS API V 3.5 Navigation toolbar (zoomToPrevExtent) not working

I am just getting started with learning Dojo and ArcGIS API so please bear with me. I have an existing prototype of an application that use ArcGIS version 3.5. I am looking at the navigation toolbar ...
2
votes
0answers
22 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
28 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 ...
0
votes
2answers
54 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
0answers
36 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 ...
0
votes
1answer
182 views

Simulate a click event on FeatureLayer in ESRI JavaScript API

When my app changes context (user clicks on a tab) I want to programmatically "Select" the first of 6 points in my Feature Layer so I get the blue box around the point and activate the info window. I ...
0
votes
0answers
46 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 ...
3
votes
3answers
433 views

Additional Parameters for PrintTask?

Hi Guys I'm writing a custom GP tool for printing with 10.1. I need to pass some additional parameters into GP tool. I'm using printTask from jsapi and I couldn't add more parameters just by adding to ...
0
votes
0answers
45 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
51 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
73 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); ...
9
votes
4answers
984 views

what is the right way to delete all features from featureLayer

I have a featureLayer and I don't want to kill it and create another one. I want to delete all features from the current featureLayer. I found that I can use applyEdits method but in order to use it I ...
0
votes
0answers
24 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
74 views

Customizing map.on(“click”) while using default editor widget

My question is whether or not it is possible to use the default editor widget in my case given the needs of my application. My map consists of points displayed from four different FeatureLayers. They ...
21
votes
6answers
2k views

What is future of Silverlight with ArcGIS Platform?

At the September 2011 Build Conference, Microsoft said a lot about Windows 8 and the Future of JavaScript over Silverlight. No Plugins wanted!! JavaScript with html5 ftw! What is the future of ...
0
votes
2answers
99 views

ArcGIS Javascript API - switch case to display attributes in a popup

var vliTemplate = new InfoTemplate("Visual", "<tr><b>VLI Number:</b> <td>${VLI_VLI_NO} </tr></td>"+ "<br><tr><b>Not Greened Up ...
1
vote
1answer
136 views

How do I change the color of an ArcGISImageServiceLayer?

I have published an image service of a raster layer (.tif). When I use it online, it is grayscale. In ArcMap, I have the option to change the color of the display. How can I do this from the ...
0
votes
1answer
135 views

Setting a renderer that uses a function for a dynamic layer in ArcGIS JavaScript API

How can I, if possible, set a renderer for an ArcGISDynamicMapServiceLayer which uses a function to determine feature values instead of just attribute values? When using the following code, the ...
1
vote
2answers
55 views

Arcgis javscript calculating lines in a place

I have two mapservice. Fist service includes parcels and second includes water pipe lines. I want to calculate total pipelines length in a parcel. How can I calculate this via arcgis javascript API. ...
0
votes
0answers
38 views

Add Print Dijit to the map context menu

I'd need to implement print map functionality from the map context menu (right click on the map). Here, I create a printer: // ------------------------------------------ //add printer // ...
1
vote
1answer
322 views

ESRI JS API - How to get event object from Draw Toolbar onDrawEnd

I am using the Draw Toolbar in the Esri Javascript API v3.4 and connecting to the onDrawEnd event using aspect.after(drawingToolbar, "onDrawEnd", drawEndHandleFunction, true); I am using the Draw ...
0
votes
2answers
51 views

Need help with ArcMAP API to find coordinates of points in point shape file

I need to find some reference or even C#.Net example code of how to use the ArcMAP 10.2 programmers API. I have got a CSV file with X, Y and Elevation coordinates of soil samples and I want to write ...
0
votes
0answers
103 views

Attribute Inspector for points - JavaScript API

I am attempting to get an application working where editors can click on a point feature and edit a form. I need the form to have a save button that when clicked will apply the edits to the feature. ...
0
votes
0answers
34 views

Read renderer from an ArcGISDynamicMapServiceLayer

Is it possible to read renderer from an ArcGISDynamicMapServiceLayer? I'd need then to change the color in order to create graphics with the same symbol but different color. Something like: var ...
0
votes
1answer
69 views

Getting a reference to the current basemap

In my application I'm using basemap gallery widget for the user to switch between basemaps. However, when the basemap has been switched the map.getBasemap() keeps returning the original basemap ...
0
votes
2answers
138 views

How to display a raster using Javascript API

It's all a proof of concept for myself and my learning but I have definitely hit a brick wall here! Here's what I've done and can get to work. I have written a Python script that: Sets its ...
0
votes
0answers
55 views

Arcgis javascript - pan and zoom simultaneously

I'm using my android device to test the arcgis javascript API 's touch support. I noticed that by default, I cannot pan and zoom the map at the same time, like google maps. Am I missing something? A ...
0
votes
0answers
93 views

Editing many-to-many relationship classes with Javascript API

I am seeking some guidance on best practices when working with many-to-many relationship classes thru the ArcGIS Server Javascript API. I am designing a traffic count data management application. ...