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

learn more… | top users | synonyms

4
votes
1answer
1k views

ArcGIS JS API: Convert ESRI Date Type into String

I am following this ESRI tutorial to display information from a related table for the selected features. The example in itself for my project works fine, however, my data include two Date fields and ...
0
votes
0answers
54 views

Shapefile to ArcGIS JavaScript JSON format? [duplicate]

Possible Duplicate: How to convert SHP into GPX or JSON? We're in the proces of adding a new feature to our Web Application where we employ the use of ESRI's ArcGIS Javascript API alongside ...
0
votes
1answer
45 views

Graphic Layer graphics redraw incorrectly after map zoom event

I have a web map application which adds arrows onto street segments signifying direction as a Graphics Layer. The direction of each arrow is calculated by this process: 1) build an array of the street ...
0
votes
1answer
163 views

ArcGIS Javascript How to filter TOC

I am very new to ArcGIS Javascript and have been reading some samples from the API. So pardon my ignorance and I hope I am asking the right question. I am using ArcGIS JavaScript 3.5 API and ...
1
vote
0answers
47 views

IWorkspaceEdit2Proxy equivalent in ArcGis Javascript api

Is there any equivalent for IWorkspaceEdit2Proxy in JS ArcGis API ? I've gone through the whole JS API documentation and haven't seen anything that would help to implement grouping edit operations. I ...
1
vote
1answer
69 views

Multiple Attribute Tables - CMV

I am trying to add multiple tables using tabs to one of my viewers but can't get it to work. Below is the code that I have added to my viewer.js widget option (it adds a table for 'Site 2' but not ...
2
votes
1answer
374 views

Define spatial reference of layer in ArcGis JavaScript API

I get an error "Map: Geometry (wkid: 3301) cannot be converted to spatial reference of the map (wkid: 4326)" when I want to add only graphics layer. I found that spatial reference for a map is defined ...
0
votes
0answers
26 views

How to retrieve the results of a map service query as tiled images ?

I have a map service with 100k ++ points. I am using feature layer, and definition expression to perform filtering. The performace is poor. I have tried clustering but it still struggles since there ...
0
votes
1answer
27 views

Querying ARCGIS to find feature having specified point

I am trying to query features by point, so that it returns a feature that CONTAINS the point given. With the screenshot below, you can see that inspite of giving all the fields correctly, the server ...
1
vote
1answer
89 views

Variable buffer radius in ArcGIS JavaScript API?

I'm hoping someone can help with this, I'm trying to combine the following Esri samples, to end up with the ability to create buffers based on a variable radius, that will then query data within the ...
0
votes
0answers
131 views

How to generate exportable report from web map (ArcGIS JavaScript API)

I would like to build a web map using ArcGIS JavaScript API containing 1 layer of polygons & 1+ layers of points (or lines) contained within said polygons. I want this to be enabled with some sort ...
9
votes
3answers
1k views

Map Application Requires Refresh to Initialize

I tried this question over on StackOverflow but didn't get any answers. Hoping you all might be able to help. Creating a web mapping application in Javascript/Dojo: When I load the app in a browser ...
4
votes
2answers
2k views

How to trigger a hover event for map graphics in ArcGIS Javascript API?

I want to trigger an event when the user hovers over a geometry that they drew. I know how to set up hover events for DOM objects, but not for graphic elements within the map window.
1
vote
1answer
47 views

ArcGIS API for JavaScript RouteParameters vs REST API

I have the network analysis service and I need to get the route between two points, but I don't want the single path polyline, but rather set of paths representing the edges it travels though (pretty ...
1
vote
1answer
71 views

How to access feature layer properties in an array in arcgis javascript

I can't seem to access my feature layer properties in an array. I am adding my feature layers to an array as such: dojo.forEach(globals.layers, function (addit, i) { ...
0
votes
1answer
32 views

Calculate print extent in arcgis from screen extent?

I am printing with preserveScale set to false as I need the extent on paper to match what is displayed on screen as closely as possible. Unfortunately the print server does need to fill the paper and ...
4
votes
2answers
348 views

Automate testing of web app based on ArcGIS JS API

So, there are multiple products that can let you automate testing interaction with web pages. I have used Selenium IDE for some time now and it works great for creating unit tests for HTML elements on ...
-1
votes
1answer
1k views

Creating an AttributeInspector via JavaScript API v2.7

I'm trying to display an AttributeInspector when I click on an object from a layer. I'm following this sample, but I cannot get it to work. Here is my sample code: dojo.require("esri.map"); ...
0
votes
1answer
80 views

Call Identify Click Function on Dropdown Change

I am a web programmer with no GIS experience and I am working with a GIS specialist with no web service experience. I am using the JavaScript API 3.7 but I am not very familiar with the API. I have ...
1
vote
0answers
317 views

Dynamically set field information in popup template discussion (Automate the process)

I want to create a certain function to streamline some of my customization work. I work with a web app that's built using ArcGIS JavaScript API which contains a few layers. Each layer is configured ...
1
vote
1answer
44 views

Understanding URL that IdentityManager.findServerInfo() method expects?

Does anyone have experience working with the IdentityManager object in the JS API 3.9? I'm trying to understand what URL the findServerInfo() method expects. I've tried the base REST url, and ...
1
vote
0answers
95 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
1answer
96 views

Exporting map.graphics to image using ArcGIS API for JavaScript?

I'm developing a GIS Map Application, I'm using Esri JS API . I have a facility to highlight some parts in the map, however I'm wondering if I can - in any way - export these graphics into an image ...
2
votes
1answer
157 views

Duplicate source information from esri.tasks.PrintTask

We are trying out the PrintTask in ArcGIS Server 10.1 pre-release. When an Esri base map is enabled, we are getting source information in two places in the resulting .pdf. I can confirm that this ...
2
votes
1answer
826 views

ArcGIS JavaScript API: Does current extent match initial extent

In using the JS API, I need to detect if the current extent matches the initial extent. If no match, then I need to display a UI element ("Return to Original Extent"). The initial extent is cached in ...
0
votes
0answers
41 views

how to get the features of a definition expression without having to project them on the map

I want to perform a definiton expression on a feature layer and get the graphics/features. If I set the visibility of the layer to false, the features cannot be retrieved. Is there any way to get the ...
5
votes
4answers
4k views

Zoom to selection

I am trying to create an application, where in I want to zoom to selected features. Basically, I want to zoom to the extent of a selected point or polygon.
0
votes
1answer
78 views

How to add spatial reference ESRI:102100 as a custom CRS to Geoserver?

I've been struggling with this for over a week. I'm using the ArcGIS Javascript API to create a basic map application, and I'm trying to add a WMS layer from my geoserver to this application. The ...
1
vote
3answers
247 views

ArcGIS Javascript API - How to define spatial reference for WMS layer?

I'm just starting with the ArcGIS Javascript API, and I'm having some issues adding layers from my geoserver to my basic map application. I started with the WMS resource info sample from the ESRI ...
0
votes
1answer
100 views

ArcGIS Javascript Spatial Query with Lat Lng or X Y?

I am using Google Maps on the front end as all I need on this view is to show the points. When user clicks on the map in the view, it selects a point hence giving out lat and lng. I am trying to use ...
9
votes
3answers
3k views

How to query all records (>1000) and export to csv?

I posted in arcgis forum but never got any answer. Can anyone tell me how to solve this? Assume you have a vehicle tracking records from Oct.1 to Dec. 31 with wind speed information. All data is ...
1
vote
1answer
88 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 ...
4
votes
2answers
3k views

Hiding infoWindow of ArcGIS API for JavaScript while using measure tool?

In my Javascript API Web application I'm using the infoWindow to query a parcel layer and display display information in a popup when I click the parcel. I've set this functionality to turn on and off ...
-1
votes
1answer
66 views

Is ArcGIS JavaScript API and SDK free? [duplicate]

I wish to integrate my .NET web Application to ArcGIS via JS Web API but the application is for commercial use and at an organizational level. Can someone please give me an insight on: available ...
1
vote
1answer
2k views

Override infowindow Zoom To function or fire second event using ArcGIS JavaScript API?

The Popup of ArcGIS JavaScript API has a 'Zoom To' link on it that zooms you 4 levels closer to the linked feature. I'd like to fire another event after the default zoom to function executes. ...
1
vote
1answer
1k views

Overlaping graphics not visible in featureLayer?

I have constructed a featureCollection from JSON and the feature collection has 44 features. I have given this feature collection as input to the Featurelayer which is showing only 32 graphics ...
0
votes
1answer
119 views

Change the symbology of a dynamic map service in client

I am trying to use someone else's map service in my web map, but their symbology is atrocious so I need to render new colors through JavaScript API. I try the following (amongst many other efforts ...
3
votes
1answer
237 views

Dynamically rendering polygon, point, and line features

I have a Feature Collection consisting of features having id, color_code, etc as attributes. I have to render this feature with the color in the color_code attribute. Is this possible and please ...
1
vote
3answers
2k views

How to create working Hyperlinks in OnDemandGrid Cells

I'm creating a simple ArcGIS application that shows a table of data from a feature layer, one of which is a URL string. I'd like to make that string be a clickable hyperlink. Is this possible and if ...
0
votes
1answer
62 views

ArcGIS JavaScript API Proxy page

I'm developing a Web Application that is using the ArcGIS Javascript API. When adding a Feature Layer I'm using the setDefinitionExpression to limit the features that are returned. The expression ...
1
vote
1answer
63 views

Can't retrieve data from featureLayer

I can't get any value from featurelayer. This is the code: function testarvin1() { require([ "esri/Map", "esri/layers/FeatureLayer"], function (FeatureLayer) { ...
0
votes
1answer
369 views

How do I initialize the ArcGIS proxy via server side .NET code (C#)?

I know how to do this via JavaScript code: esri.config.defaults.io.proxyUrl = "../proxy.ashx"; But, how do I do this in .NET? I am very new to the GIS space.
0
votes
2answers
426 views

Getting BaseMapToggle error from ArcGIS API for JavaScript?

I'm having a problem with my Web Application. I try to fit in a legend and a BasemapToggle but it doesn't seem to work. My Code looks like this: <!DOCTYPE html> <html> <head> ...
0
votes
1answer
63 views

Making Operational Layer from WebTiledLayer and MapImage?

I'm attempting to use the CMV and put a WebTiled layer in as an operational layer. I've been able to get the layer into the basemap without issue, but can't get sort it out for the Operational Layer. ...
7
votes
2answers
6k views

Using own basemap with ArcGIS API for Javascript?

I'm trying to make a map using the Javascript API. I want to use my own basemap, but I can't find the most simple code to do this. I always see something like this: function init() { map = ...
1
vote
1answer
397 views

How to add Map Legend, Scale Bar and Select tool to an ArcGIS Server Service?

I have published a service from ArcMap to my Server Account but I can't figure out how to add the legend, scale bar and select tool to the service. According to the published service it was built ...
10
votes
4answers
1k views

HeatMap to identify hotspots on cached service from ArcGIS Server?

ArcGIS Server lets you create cached map services. These can be consumed by various applications (ArcGIS Desktop, web apps, etc) I would like to get an idea on which areas of my cache are getting hit ...
0
votes
1answer
246 views

Change Header/Background Color For Attribute Popup Window (JavaScript Web AppBuilder)

After creating a web app and downloading it using the JavaScript Web AppBuilder for ArcGIS (Developer Edition), I was able to change the site header and widget popup color schemes via an existing ...
2
votes
0answers
35 views

developing a Talking Map

I need to develop a prototype of a web application that speaks : When you click on a city (point) it says the city name (Audio files are ready) I want to use ArcGIS Javascript API. do you have any ...
0
votes
0answers
64 views

Move Zoom In & Out Button in ArcGIS JavaScript Web AppBuilder (Developer Edition Download)

After creating a web app in ArcGIS Online, I downloaded the app using the Web AppBuilder for ArcGIS (Developer Edition). Several folders, .json, .html, .js, and .css files are contained within the ...