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

learn more… | top users | synonyms

0
votes
1answer
347 views

ESRI Javascript API Geocoder VS Locator module

What's the difference between ESRI's Geocoder and Locator module in the javascript API? I know the Geocoder defaults to ESRI's geocoding service, or both modules can be set to a custom Address Locator ...
0
votes
1answer
207 views

Flash a graphic using JSAPI AMD style

This should be simple, but not sure why I'm not getting it. Does anyone have a stub for showing how to flash a graphic? I want to be able to call it from a button in the JSAPI UI. I am using the AMD, ...
2
votes
0answers
64 views

Dissolve Statistics Fields and Statistic Type as Parameters in GeoProcessor

I have a published service which uses a dissolve. In arcMap the I get prompted for all the fields, including statistics fields and stat type. I have the statistics fields marked as parameters. ...
0
votes
1answer
52 views

ArcGIS javascript api Rendering some parts of the Featurelayer?

Hi I'm confused how to render only some parts of a feature layer. Since all the given classbreak rendering samples are rendering the whole feature layer, is there any method to render only a few of ...
0
votes
1answer
167 views

Infowindow selection change

I am using infowindow to display the results of identifyTask that has two layers from my map service so it returns multiple features. The infowindow has more button in each feature it identifies so ...
0
votes
1answer
64 views

Add layer from a folder to Map using java script api

I know you can add layers to map through map service using javascript api. Can we directly add layers (placed in a folder on ftp) to the map using javascrip api. If so, can please explain it and ...
2
votes
1answer
273 views

How to add a “loading” image is ESRI JSAPI AMD

Does anyone have an example of how to display a "loading" image in the new AMD environment of ESRI's JSAPI? Familiar with doing it in the past, just seems there's quite a lack of documentation. ...
2
votes
1answer
1k views

Help with getting the coordinates of a point updated using ESRI JS API Editor

I've been working with ESRI's javascript API for about a week and finding that somethings click while other things are still a mystery to me. I've already created a simple web map that loads an ...
5
votes
1answer
775 views

Redraw info window after centering map on click (ESRI Javascript API)

When I click on one of the features on my map the map gets re-centered using the following event handler: var pointClick = projects.on("click", function(e){ // Center map on selected feature ...
2
votes
1answer
109 views

Change SDE Version in ArcGIS JavaScipt API depending on connected user

I am programming for an web editing application with ArcGIS API for JavaScript. I've published a version of ArcSDE with Feature Acces and I need to know how can I change in the web application from ...
0
votes
1answer
245 views

How to Set a feature layer Editable? (without Editor widget)

I'm new to arcgis JS api, now I want to update the whole records in a specific field of the feature layer, but I don't want to use the Editor Widget, is it possible? How to set the layer editable? I ...
2
votes
1answer
83 views

Toggle PopUp Functionality

Firstly: I've look through every example on Stack GIS.Stackexchange which might deal with my problem. Of course there was good input, but unfortunately I'm not able to fix it. Admittedly my Java ...
2
votes
1answer
284 views

Print FeatureLayer labels in Esri JavaScript API 3.5 and earlier

I have a need to implement labels on features in a FeatureLayer in version 3.5 if Esri's Javascript API. The labels are from a field returned by a REST feature service. I can't move to 3.7 for various ...
4
votes
1answer
244 views

Why should I use the AMD style deceleration in ArcGIS JS API?

It seems to me like this: var point; require(['esri/geometry/Point'], function(Point) { point = new Point(); } does the same thing as: var point = new esri.geometry.Point(); Is there any ...
2
votes
1answer
98 views

How to handle URLs longer that 2048 chars in JSAPI v2.7 and ArcGIS 10.2

In ArcGIS Server 9.3 and JavaScript API v2.4 there was need to set proxy.config in ASP.NET in order to handle requests to REST map services having more than 2048 characters in the URL as parameters. ...
3
votes
1answer
110 views

Use a Tiledmap service as basemap instead of an Arcgis.com map in AMD style coding

How will I define a arcgisTiled map service as the base map (instead of “topo”) as against using arcgis.com map services while defining a new map in AMD style? map = new Map("map", { ...
0
votes
1answer
786 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
2answers
133 views

How can I use arcgis server to help me find a street according to Latitude and longitude?

I am now in a project using a taxi GPS data(latitude and longitude ) to locate the road segment it is being on.I have the road map data. So, I wonder if I can use arcgis server to get the road segment ...
1
vote
0answers
35 views

Using AttributeInspector to Create New Record

This is a follow up question to another questions I posted earlier: Adding Record to Related Table using JavaScript API Without repeating too much information from that previous question, I was able ...
2
votes
1answer
356 views

ArcGIS JS API - Can't draw results of Query Task

I have an ArcGIS JavaScript map that I'm trying to use with a Query Task. The query runs fine on the server side and the proper geometry is returned. Then, I draw the feature as follows: var features ...
2
votes
1answer
159 views

Adding Record to Related Table using JavaScript API

I looked and didn't find this question so hopefully it isn't a repeat. I am new to the JavaScript API and just started creating a web application where the user will enter maintenance records for a ...
3
votes
1answer
410 views

ArcGIS javascript API Update Records of a Feature Layer

I'm new to ArcGIS javascript API, now I want to create a feature layer and then add an array of attributes or simply update the array of attributes of a specific field. I only need to replace the ...
1
vote
1answer
359 views

Custom ArcGIS GraphicsLayer (JavaScript)

I am working on an application that will retrieve data from various sources and construct ESRI GraphicsLayer objects from the data and display it on a map. I have created custom FeatureLayers before ...
2
votes
1answer
99 views

Need help regarding Hot-spot Analysis through ArcGIS JSAPI 3.6/3.7

I am going through Hotspot Analysis through java script sample and I want to perform similar thing at my end. While accessing this sample it taking too much time to display the result (for sign in I ...
3
votes
1answer
2k views

How to Use Custom Basemaps with BasemapToggle widget?

I'm trying to upgrade my app from version 3.3 to version 3.7 of the JavaScript API and am switching out the basemap gallery for the new BasemapToggle widget. I have two custom basemaps that I want to ...
2
votes
1answer
1k views

Visibility On-Off of Label Layer in arcgis javascript 3.7

I am using ArcGIS JavaScript 3.7 API's and i am using agsjs.dijit.TOC control and it is working fine but when i added Label Layer in my map that time Label layer is coming fine but TOC is not working ...
2
votes
1answer
360 views

How customize GeoRSS icon in ArcGis JS API?

I have this little piece of script to customize the icon of some GeoRSS points, but I have no display and no error in the console. var map; require(["esri/map", ...
1
vote
1answer
75 views

Cache TIled Services

I want to UnderStand what is cache Tiled Services and how can it improve performance.I am facing a performance issue in my application.I created a cache services and loaded the map without adding ...
3
votes
1answer
234 views

How to replace the legacy function “doQueries ” to AMD ESRI Javascript format?

I'm trying to understand the migration of ESRI API for javascript, from legacy to AMD. In the case of this example, how replace the fucntion doqueries????: function init() { map = new ...
1
vote
0answers
96 views

How to get TOC and Widgets (scalebar, overviewmap and basemapgallery) all working with ArcGIS JavaScript API?

Yesterday I spent many hours trying to get a scalebar, overviewmap and basemapgallery working in one webmap using nilu'S TOC. Unfortunately without success :( I have one version, where scalebar and ...
2
votes
2answers
202 views

ArcGIS Javascript Viewer with ArcGIS Server [duplicate]

I'm certain this question must have been asked/answered, but I just can't find it. I'm running ArcGIS Server and want to build a basic viewer that points to my locally hosted services. I'm not ...
2
votes
1answer
103 views

Extent Intersection when WrapAround180 enabled

Allowing WrapAround180 allows map extents to go beyond the true Web Mercator extent. Once this happens I am not able to use map.extent.intersects(point). My work around was to Normalize extents in ...
1
vote
0answers
445 views

How to get the feature set for geoprocessing service?

I am calling a geoprocessing service in a web app. The geoprocessing service has one parameter (a feature set). But I am not sure how to find the parameter in the javascript code to send it to the ...
1
vote
0answers
451 views

Does on click functionality work with a feature layer or map?

I have implemented a world map, onLoad of the page I query the feature layer and highlight some countries based on some criteria. I have to define onClick events for the highlighted countries. When ...
6
votes
2answers
280 views

Web_Map_as_JSON from latest esri jsapi?

I'm trying to do a print export using arcgis 10.1 and latest esri jsapi. Is there any out of the box way that I can extract out Web_Map_as_JSON from a given webmap? esri.tasks.PrintTask generates a ...
2
votes
1answer
185 views

GeoRSS reprojection

Sorry I'm newbie in ESRI API javascript, I'm trying to to change the GeoRSS projection from from 102100 to 54030. could anyone give me a hand?! please! my project script is: var map; require([ ...
1
vote
1answer
137 views

Can I add GeoExt or ArcGIS JS API to Openlayers + Dojo App?

I've written a basic map app with Dojo and Openlayers (using titlebar , toggle buttons , checkbox tree and some more). I've seen ArcGIS JS Api has nice tooltip / balloon and GeoExt has nice Legend ...
3
votes
3answers
404 views

ESRI JS API - Getting a Screenshot with pure Javascript

I have a requirement to be able to produce a pdf of the application's map (Esri JS API 3.7). The map will contain ArcGISDynamicMapServiceLayers, user drawn graphics including text symbols, and ...
3
votes
2answers
140 views

Style Print dijit menu in esri JavaScript API

Trying to add styles to a dijit is difficult enough, as I have to track down the classes it uses after it loads. I've managed to do that, but I'm struggling to find the appropriate classes to alter ...
1
vote
2answers
183 views

ArcGIS javascript API Printing: fuzzy result

I created a real simple web app, copied from samples actually, to try figuring out something about the Print Dijit. Here's the thing. When you click print here there are two major concers with the ...
4
votes
1answer
124 views

Options to Replace Interactive Mapping System

I have been tasked with replacing our organizations online interactive mapping system. It is your run of the mill County Government interactive map. Its bulky, unreliable, slow and out of date. It is ...
3
votes
3answers
620 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 ...
3
votes
1answer
275 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
1
vote
1answer
476 views

Change Defination query of a layer in ArcGISDynamicMapServiceLayer

Is there any solid example to change the definition query at run time of the ArcGISDynamicMapServiceLayer using javascript API 3.5 or higher version and ArcGIS server 10.1. I found API documentation ...
2
votes
1answer
395 views

Changing basemaps with different spatial references (ArcGIS Javascript)

I've got a new requirement to switch basemaps that have different spatial references. The app is using ArcGIS Javascript, and switching to Silverlight is not an option at this point in development. I ...
0
votes
1answer
335 views

How to programmatically click on Feature or particular region without coordinates? [closed]

How I can programmatically click on feature using javascript library, lets say in world countries map how can I programmatically click on a particular country ( i don't want to use co-ordinate as my ...
3
votes
1answer
1k 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 ...
3
votes
1answer
558 views

ArcGIS JS API: Zooming with mouse wheel/double-click forces pan

I have a map that I'm initializing off-screen and sliding in using jQuery. For some reason zooming in with the scroll wheel or by double-clicking causes the map to simultaneously pan down (or pan up ...
1
vote
1answer
150 views

Pass Queried Feature Set to geoprocessor as a parameter

I am new to geoprocessing services and tried to publish my first. I created a simple model with one parameter, a featureset, and I am intersecting it with another layer which is specified in the ...
1
vote
1answer
221 views

JS API - onDrawEnd firing twice

I have a simple editing application with the following code: startEditing : function(template) { var drawingTool = template.template.drawingTool; switch(drawingTool) { case ...