Tagged Questions

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

learn more… | top users | synonyms

2
votes
1answer
152 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
378 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
347 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
93 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
349 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
73 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
231 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
93 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
192 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
100 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
423 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
421 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
262 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
181 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
135 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
392 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
138 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
176 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
122 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
590 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
260 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
442 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
378 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
320 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
516 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
144 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
208 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 ...
2
votes
1answer
72 views

Load dojo from local and ESRI packages separately

Is there by any chance a way to load dojo packages from my local and then load ESRI javascript api packages which i need?
3
votes
1answer
172 views

looking for an esri compatible javascript engine

I work on an esri heavy team, i'm looking for a mapping engine that will give me flexibility to build on top of and leverage only the pieces I need and or add more as the app grows. I've been using ...
1
vote
1answer
202 views

How can I use the ArcGIS JavaScript API along with a separate version of Dojo?

I am using the ArcGIS API for JavaScript in my application which is being developed using IBM WebSphere Portal. When I integrate ESRI with my HTML code it works fine but when I load the ArcGIS ...
1
vote
1answer
257 views

Determine if ArcGISDynamicMapServiceLayer is from a Tiled Map Service in ESRI JavaScript API

For some of our JavaScript mapping applications, we load a Tiled Map Service as a ArcGISDynamicMapServiceLayer. When we use the PrintTask and want to print a map at a scale in between the tiled map ...
1
vote
1answer
86 views

Using ESRI Dojo version for building web application

If I am using ESRI's JavaScript API for my application, then I cannot load a different version of Dojo other than the one shipped with ESRI. I have to rely on ESRI for Dojo. The map appears in only 3 ...
1
vote
1answer
275 views

Problem with creating a “blank” basemap in an application built with arcgis javascript api

I'm building an application where I'd like the user to be able to select a blank basemap from a gallery of basemap options. I've found that if I initialize the app with a "white" "blank" or "none," ...
-1
votes
1answer
292 views

arc gis javascript API Capturing polygon “onclick” event data to pass as featureset

How can you figure out what polygon is clicked within a feature layer? I have a feature layer made of county polygons. When the layer is clicked I want to trigger a geoprocessing task on my server. ...
1
vote
0answers
32 views

ArcGIS Javascript - Editor API methods?

I was looking at the API for the ArcGIS Editor widget (esri.dijit.editing.Editor), and I couldn't find a list of methods that are on the widget. I've seen other examples online that call destroy(), ...
0
votes
2answers
111 views

Is installing Web Adaptor mandatory/important with ArcGIS for Server?

If I am using ArcGIS for Server for my web application is it mandatory or important to install the ArcGIS Web Adaptor? I am facing a proxy page configuration issue.
2
votes
3answers
1k views

ESRI proxy page not working properly + CORS + cross domain scripting

I have set up a proxy page. I am using jsp version of proxy page. I have set up a server URL which will point to my Java. When I load the my page which the proxy URL has set in its html it will work ...
0
votes
1answer
233 views

How to rubberband zoom w/o the shift key: arcgis api for javascript

I want to enable the rubberband zoom effect without users having to hold the shift key down. This behavior is found is Esri navigation bar dijit. I don't want to use the dijit. How can I get a zoom ...
4
votes
1answer
537 views

Setting proxy url for larger request [closed]

When I query for larger features I get esri.config.defaults.io.proxyUrl is not set error. Can someone please explain why proxyurl is needed, how I should set it up, what should it point to, and any ...
3
votes
1answer
136 views

ArcGIS JSAPI - web workers CORS issue

In my JS web-application, I'm trying to store the tiles in my localstorage using web workers.I'm using the code from this Esri sample. I just deleted line 20 in the ioWorker.js file: url = ...
1
vote
0answers
95 views

Populate print template title text from a dojo textbox

I have a print widget that starts up great. It's based on the typical ArcGIS print widget sample. However, I want to tweak this a bit. There is a "titleText" property in the layout options that I ...
1
vote
2answers
77 views

ArcGIS Javascript Editor - showAttributesOnClick feature

I'm using the Editor dijit to add feature to my map. I was looking at one of the online samples, which mentions a "showAttributesOnClick" setting in the description. When I look at the code in that ...
2
votes
1answer
204 views

Migrating to ESRI js version 3.2 from 3.6

I have to migrate to esri js api 3.2 instead of 3.6 since 3.2 uses dojo 1.7 , what are the pros n cros.If change the code which is written in 3.6 to 3.2 i.e api reference then my code breaks , any ...
4
votes
1answer
154 views

In clause in Query

I am using ESRI JavaScript API 3.6. I want to perform a query operation on the fields returned by the rest service. As far as I know and have read, we can use like and = operators to query single ...
1
vote
0answers
123 views

Create Materialized View to Flatten ArcGIS JavaScript API Database

I'm doing a project using ArcGIS JavaScript API v3.5 hosted on ArcServer v10.1. While reading the question below, remember that I do not have control over the datasource and cannot just create a ...
0
votes
1answer
281 views

Cached Map Services concept and feature layer

I am having performance issue in my application. My feature layer has 220 polygons, but when I load the map with the feature layer, the browser hangs. On the advice of forum experts, I have now ...
0
votes
2answers
251 views

ArcGIS javascript API 3.6 How to prevent .on adding graphic layer from eliminating popups on other layers

I have am using mouse events to add a new graphic as such. paCounties.on("mouse-over", function (evt) { var highlightGraphic = new Graphic(evt.graphic.geometry, highlightSymbol); ...