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

learn more… | top users | synonyms

0
votes
1answer
373 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
1answer
25 views

Printing ArcMap layouts from ArcGIS Server Services (10.1+)

I've prepared a map with multiple data frames using ArcMap and setup my desired layout. I published the map onto the ArcGIS Server and setup a printing service which uses the custom layout of the ...
1
vote
1answer
733 views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
2
votes
2answers
142 views

Is there a way to set a geometry filter on a esri.layers.FeatureLayer?

Suppose I want to limit the extent of a feature layer to a geometry (say a circle). Is that possible? I am aware of setDefinitionExpression but that is limited to a attribute filter. There seems to ...
1
vote
1answer
153 views

How to find whether a Point lies inside a Polygon using ArcGIS JavaScript API?

We want to find whether a Point lies inside a Polygon. var point = new esri.geometry.Point(-85.91,25.68,this.parent.esriMap.spatialReference); var polygon = new ...
1
vote
1answer
259 views

Polygon using ARCGIS API for javascript

I've polygon data as POLYGON ((1645481.0939999996 6124506.9885, 1645470.0473999996 6124473.5406, 1645475.7094 6124440.1391,1645481.0939999996 6124506.9885)) in wkid=2193 I want to project ...
0
votes
1answer
27 views

ArcGIS Javascript Api - QueryTask and setDefinitionExpression

I've written some code to query a Feature Layer using either a QueryTask or using the setDefinitionExpression when adding the layer. For testing I am using the ASP.Net Development Server. I've ...
3
votes
1answer
574 views

How to embed ESRI maps on my website

I've got a website where I'd like to insert maps with some placemarks (restaurants, points of interest, ...). I'm tired of Google Maps and like to use ESRI basemaps. Is it possible to do this? I'd ...
3
votes
1answer
281 views

ESRI/ArcGIS draw protractor

I am using ArcGIS maps and trying to follow JS API. I am trying to understand how can I add a protractor on the map which will help in angles while drawing polygons. I understand I could add a Feature ...
0
votes
1answer
161 views

Mapquest directions API in ArcGIS javascript webmap application

I'm trying to build a webmap application using the ArcGIS JavaScript API. A functionality I would like to include is driving directions from a current GPS location to a feature in my feature service. ...
1
vote
0answers
11 views

ESRI addProxyRule causing issues with back button functionality in Firefox

Currently, i'm using the addProxyRule to set up the proxy to be used when calling arcgis. I'm then taking that result and generating a url to take the user to a different part of our site pertaining ...
0
votes
1answer
122 views

Is it possible to copy and paste features in an online Edit function?

Using the ESRI JS API, is it possible to select a feature and then create buttons to copy and paste that feature? This would be done using the Editor Widget. If its possible to do this, but only ...
2
votes
1answer
362 views

How to write addressToLocations onError?

How can I write a code for checking the error condition in Javascript (ArcGIS) for addressToLocations(params, callback?, errback?). if somebody entered an invalid address- how can I call error ...
0
votes
1answer
1k views

How to zoom to the extent of a query result

Does anyone know how to change the extent on the map in function of a query? in legende I have no problem using the function showResults (featureSet) {... but, can not get any display in AMD. Here ...
1
vote
0answers
25 views

Print two different maps object in one layout template in Arcgis javascript api

I'm trying to publish a print service that accepts two maps objects, sent by javascript and print them, I found PrintTask() wedjit, something like printTask.map=map, my goal is to try to send two map, ...
0
votes
0answers
70 views

ArcGIS JavaScript API JSONP request

I am trying to add featues to esri.layers.FeatureLayer from response of JSONP request with esri.request. Interestingly I have right response and all features are perfectly shown on the map,BUT I get ...
1
vote
1answer
36 views

ArcGIS Javascript 3.12 ApplyEdits Issue

In my application I am drawing a freehand polygon, clicking a "Save" button and adding the polygon to my feature layer. This works correctly except when the polygon crosses itself (Image 1). When ...
0
votes
1answer
144 views

arcgis javascript api featureLayer not available immediately upon show click event

I am adding a feature layer as such in my index.html file. featureLayer00 = new FeatureLayer("http://webadaptorserviceurl/MapServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, id: "0", ...
2
votes
1answer
146 views

How to create a time slider using arcgis javascript that only shows a year at a time?

I am looking at this example on how to create a time slider using the arcgis javascript api. Instead of showing the data cumulative from the start date. I want to just show the data for that ...
1
vote
1answer
26 views

Passing Arguments Between Widgets with Mixedin Templates - CMV Builder

I am attempting to manipulate a custom widget (Table) I built. I first initialize the widget in the viewer.js class and attach it to the 'sidebarBottom' pane in the viewer. Since the 'Find' widget is ...
0
votes
1answer
173 views

How to zoom to layer using ArcGIS Javascript API

I tried to get the function "Zoom to Layer" done using the following code snippet. But it does not change anything. The layer is a feature service layer, and I can see the full extent object of the ...
2
votes
1answer
28 views

Toggle between custom basemaps (different projections/tile structures)

Wondering if it is possible to toggle between two basemaps with that have a different wkid and tile structure? I have tried with a basemap gallery and a basemap toggle with no luck. We have one ...
4
votes
1answer
106 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 ...
1
vote
1answer
42 views

Legend ArcGIS Javascript does not recognize Legend from ArcGIS for server 10.2.2

I have created maps in ArcGIS for desktop and published them to ArcGIS for server 10.2.2. Because of performance issues I have created a group layer of the same map with different levels of details. ...
1
vote
2answers
26 views

Programatically retrieve units from a map's SpatialReference

I'm trying to retrieve the units (like feet or meters) of the current spatial reference from an ArcGIS map, using the JavaScript API. I have the map's spatial reference object, with it's well-known ...
1
vote
0answers
13 views

Using PrintTask a Map with Graphics symbols not solid

I have a Web map using JavaScript API. One of the layers is a Graphics Layer that I add graphics to. The line symbol style for these graphics I add is STYLE_SHORTDOT. When I have a graphics drawn ...
1
vote
1answer
41 views

Polyline not showing on esri maps

I have list of points. I am pushing these points to an array. Now when i draw polyline through esri map graphics.add then its not shwoing anything. My code for drawing polyline on esri map is as ...
-4
votes
0answers
28 views

Unable to create a proxy in ArcGIS javascript API from local server

XMLHttpRequest cannot load http://nit445/EdtBaseMap/proxy.ashx?http://nit445/ArcGIS/rest/services/bmptlinJS/FeatureServer/0/applyEdits. No 'Access-Control-Allow-Origin' header is present on the ...
2
votes
2answers
71 views

Add a legend in an ArcGIS Javascript API

I am quite new to Javascript. I have made a html script that includes services I published to ArcGIS for server. It all does exactly what I want and I made it by copying working scripts together and ...
0
votes
1answer
3k views

ESRI Javascript API: setting feature layer selection symbol

This seems like it should be a relatively simple thing to do, but for whatever reason I can't figure it out. I'm trying to add functionality to select a group of parcels as laid out in this example, ...
0
votes
1answer
260 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. ...
1
vote
0answers
17 views

ESRI JavaScript HeatmapRenderer class and Print widget

I’m working on an application using ESRI’s HeatMapRenderer class from the JavaScript API. The issue that I am running into is that the Print widget fails if the heat map renderer layer is on the map. ...
1
vote
2answers
56 views

FeatureLayer fullExtent is being constricted by Dojo ContentPane side panel

I have an ArcGIS JavaScript application which displays one single FeatureLayer on a map which is in a Dojo BorderContainer/ContentPane template similar to the one shown here. I am trying to ...
1
vote
2answers
4k views

Converting from British National Grid (27700) to WGS84 (4326) to Web Mercator (102100)

I'm developing a web application that uses ArcGIS to display a map using JavaScript. We are holding all our data in MS SQL Server 2008 as Easting/Northing against the British National Grid. ...
1
vote
0answers
54 views

ESRI JavaScript API Web Application and SQL Queries in ASP.NET?

My workflow (and security restrictions) for a new html/javascript based web application is making me think that I could program an ASP.NET application, inside which I load the 'map' and the 'legends' ...
3
votes
3answers
138 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 ...
3
votes
1answer
122 views

Show an ArcGIS InfoWindow on Map Init

I have created a map with a simple marker at a specified location but I cannot figure out how to have an infowindow attached to the position open automatically on page load. This is my init function: ...
5
votes
2answers
222 views

How to run a python script on the server, returning the results to the client

Here's the end result I'm trying for: the user clicks on a feature on an ArcGIS Server JS map a Python script is triggered on the server the Python script uses an attribute from the feature (eg its ...
3
votes
1answer
923 views

Interacting with the Map after selecting a button/tool

I am using the ESRI Javascript API 2.0 and Dojo dijits. Does anyone know how to wire up a dojo button (or toggle button) in a toolbar to a mouse click event on the map? I want the user to have to ...
6
votes
1answer
224 views

Duplicate items in the legend

I have recently created a web map that uses the legend snippet from the ESRI JavaScript API website. https://developers.arcgis.com/en/jav...et_legend.html It works great for the most part, but has ...
0
votes
1answer
393 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
2k views

ArcGIS JavaScript API layer order?

I have the below code which ensures a layer is valid before adding it to the map. mapConfig.Services is an array of service url's and loadMapService is a simple function which returns an ESRI layer. ...
2
votes
1answer
399 views

Positioning esri.symbol.PictureMarkerSymbol at the center when clicked?

I use ArcGis Javascript api 3.2. I have a symbol: candidateSymbol=new esri.symbol.PictureMarkerSymbol('image/PushPin.png', 30, 30); I want to center it when it is being clicked. PS: There will be ...
5
votes
2answers
1k views

Moveable ArcGIS Identify Popup Window (Dojo)

I'm trying to get a popup window that identifies a location to be moveable. My code is similar to the API example: var popupOptions = { fillSymbol: new ...
0
votes
1answer
46 views

What would cause Dojo in later versions of ArcGIS Javascript (v3.12) from working in Internet Explorer?

On my testing machine I experience no problems with using http://developers.arcgis.com/javascript/samples/featuretable/ but if I run the same example on my client's machine I get "'require' is ...
1
vote
0answers
14 views

Narrow viewport => not showing map in browser?

I have a webapplication using the arcgis javascript API and it works great. Unfortunately I ran into a small peculiarity: If the viewport for the map is smaller than 930 pixels it refuses to load my ...
1
vote
1answer
27 views

Feature Layers fail every second time the page loads, with “Error: Unable to complete operation”

If I create a very simple map based on the Feature Layer On Demand sample, and change the URL to my own feature layer, the map consistently fails every second time: Error: Unable to complete ...
1
vote
3answers
59 views

How to work on map created by using arcgisUtils.createMap

arcgisUtils.createMap(id,"map").then(function(response){ //update the app dom.byId("title").innerHTML = response.itemInfo.item.title; dom.byId("subtitle").innerHTML = ...
24
votes
6answers
5k views

What are differences between ArcGIS Web APIs (JavaScript/WPF/Silverlight/Flex)?

Esri currently offers 3 different web API's that can be freely downloaded. Are they all equal? If not, what are the relative strengths/weaknesses of each of these API's?
2
votes
0answers
21 views

How to use items param in TemplatePicker to draw with?

I have been checking the JS API of TemplatePicker and it says to either use featureLayers or items in the params object: https://developers.arcgis.com/javascript/jsapi/templatepicker-amd.html I ...