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

learn more… | top users | synonyms

6
votes
1answer
541 views

ArcGIS JS API Relationship Queries

Has anyone ever put the results of a RelationshipQuery() into a map.infoWindow that's been replaced with a dijit.popup? Here's the workflow: User clicks a point, and all identify results are put ...
4
votes
1answer
130 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 ...
3
votes
1answer
599 views

Trouble with accesing API code: “ReferenceError: esri is not defined”

I am developing a web map application in the ArcGIS API for Javascript. I two have ArcGISDynamicMapServiceLayer layers that I am trying to run a simple query task on. The code I am using works in ...
2
votes
1answer
44 views

How can I limit range of the thumbs in esri/dijit/TimeSlider

From the example, range between those two thumbs is unlimited. So, I need some thing like this timeSlider.setThumbRangeLimit(1); //one year or something that limit the range only 1 year. I ...
2
votes
1answer
82 views

How do I make a GP Results table sortable? Or add Dojo Grid

Im aware a sort() function exists, just not sure where it should be placed in my code. I have a function that draws routes on the map and i'm getting my results that are in my table from those routes. ...
2
votes
1answer
102 views

Arcgis javascript API & highcharts libraries

I'm working with jsviewer and JSAPI V:2.8.I try to display a query result in a chart. what I want to do is :first, I want to query on my table and once I got the result liste I have a button that ...
2
votes
1answer
190 views

How to create a ClassBreakRenderer without data coming from Feature Layer?

I would like to create a ClassBreakRenderer to represent integer values. The symbols I am using are defined as PictureMarkerSymbols with JSON and they are just a filled blue circle with different ...
2
votes
1answer
212 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 ...
1
vote
1answer
35 views

Fixed Zoom Extend For Overview Map on ArcGIS Server JavaScript API 3.8

Can some one please let me know if it is possible to have the Map Overview with Fixed extend and none zoom in or out functions? I know this was not possible on v.3 but how about v3.8? Thanks
1
vote
1answer
44 views

Is there a way to get the extent of a query and not each individual feature?

I'm using this solution to get the extent of a query. It brings every feature geometry back to the client where I then calculate the extent of all the individual geometries. Since these can be ...
1
vote
1answer
18 views

Get Graphics from KML Layer in ArcGIS JS API

I just started working with the ArcGIS Javascript API and I was wondering how I would go about getting an array of Graphics from a KML layer. I do not know where to begin.
1
vote
1answer
73 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 ...
1
vote
1answer
309 views

ArcGIS Online Map using URL does not work with PhoneGap

I wanted to show my public accessible ArcGIS Online map with URL on a simple Hello World PhoneGap project with Eclipse. Eclipse threw out the following error in LogCat. Web Console:RequestError: ...
0
votes
1answer
5 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 ...
0
votes
1answer
21 views

[ArcGIS toolbars.Draw.POLYGON ]Object #<BarProp> has no method 'activate'

I am facing this error while activating the toolbar. This is my body code <button dojoType="dijit.form.Button" onClick="toolbar.activate(esri.toolbars.Draw.POLYGON); ...
0
votes
1answer
35 views

Uncaught ReferenceError: GEvent is not defined after migrating to google map api v3

I have managed to change the needed things, but I get the error from the title in the console, and I cannot figure it out what else needs to be done. any ideas? This is my code(if you paste it and run ...
0
votes
0answers
32 views

scalebar doesn't print properly in IE or FF

I have a ruler-style scalebar in my webapp, which uses the ArcGIS JS API version 3.1. When I send the map to print using window.print(), the scalebar renders as expected in Chrome, but in both IE and ...
0
votes
0answers
68 views

ESRI reverse proxy setting

My application is running on https but my arcgis server is not running on https hence I configured revrse proxy on my webserver.Even though map loads but when I query the rest services the url I ...
0
votes
0answers
114 views

How to get initial datas after bind time Slider to map , ArcGIS JavaScript API

Like this example:https://developers.arcgis.com/en/jav..._layerDef.html , I have added my featureLayer to my map, and bind the timeSlider with the timeExtent = featureLayer's timeExtent. After bind ...
0
votes
0answers
34 views

One Layer in Two Maps with Esri JS API

Is it possible to put a single FeatureLayer in multiple maps in the same app with the Esri JS API? I have two maps that I want to contain the same layer and I want the maps both to honor and changes ...
0
votes
0answers
40 views

How do you set the TimeZone for a feature layer in ArcGIS JavaScript?

The author of this question says: Esri recommends that databases are in UTC time. And if I’ve got this right, unless you set a time zone in your layer, you are entering a date in a date field ...
0
votes
0answers
77 views

Editing a stand-alone table in ArcGIS API for JavaScript

I am new to scripting and the API, and it would be good to have a clear idea of what to look into for this task. I am trying to let users add information to a table (but not edit that table in any ...
0
votes
0answers
270 views

How to add WMS Layer from openweathermap?

I've tried to add some WMS Layers to my webmap using ESRIs Java Script API. I'm very interested in using weather WMS layers and I've already found some usefull. If there is anything better free ...
0
votes
0answers
70 views

No automatic refresh of map OR no working TOC

I have a problem using nliu's TOC Either I can use NLiu's TOC, but the map doesn't update when I zoom. I have to pan the to update the map. Also I can't see the lines for the editor and measurement ...
0
votes
0answers
146 views

What causes an Out of Memory error in ArcServer?

I'm creating a web app in the ESRI JS API and have recently added a 2008 FIRM service to the app. I cached the service. When I would try and click and identify certain flood zones I get an error in ...
0
votes
0answers
53 views

FeatureLayer Mode_ONDEMAND notworking but Mode_SNAPSHOT is working

My web application is using ascgis javascript API 3.6 and I am trying to add FeatureLayer on Map. Layer is including buildings in a city. This is big data. Geometry type is polygon. I am adding ...
0
votes
0answers
121 views

ESRI add graphics to a layer via ajax call

I'm creating graphics layer with ajax return. I can see the graphics layer in the map, but the points don't appear on the layer, I'm adding the points but somehow something seems missing. Jen is an ...
0
votes
0answers
205 views

ESRI javascipt agsjs TOC works in version 3.0 but not 3.5 of the API

Is there a way to get the TOC.js to work in version 3.5?
0
votes
0answers
94 views

ArcGIS map service not resizing for print-friendly page

( I asked this same question on ArcGIS forums, with no response...I hope someone here can help!) I am using ArcView, ArcServer 10.0 and the JS API v3.1 (so no print function) ... I have an app where ...
0
votes
0answers
227 views

Looking for ArcGIS API for javascript and Jquery samples

I'm new in ArcGIS javascript API .I found tons of samples of ArcGIS javascript API and DOJO . it was very interesting for me but i know Jquery and i'd like to use Jquery to develop webgis.Is there ...
0
votes
0answers
148 views

Get Pixel index of a clicked point from a tile in WMTS layer

How do I get the index of a clicked point from a tile in WMTS layer? I also want the tile row and column number corresponding to the clicked location. So I tried to set the extent of my WMTS layer to ...
0
votes
0answers
52 views

Javascript API: Template of Widget for geoprocessing tools

I have to provide a lot of POC ArcGIS javascript API for geoprocessing tools (50 over) is there a java-script API widget or template to create this POC application easily?
0
votes
0answers
25 views

What is a simple way to create a popup table on map

Using arcgis javascript, is there a way to create a popup table after i perform some processing? Basically my user will select an extend and all address that fall within the extend will be shown.
0
votes
0answers
226 views

Arcgis Javascript API FeatureLayer click event and list attributes

I have a javascript application that including FeatureLayers, TiledLayer, DynamicLayer. I wanna when click a feature layer, clicked object attributes should list in a dom element. createMap: ...
0
votes
0answers
174 views

create heatmap with heatmap.js based on attributes

I am trying to use heatmap.js in my project (with Arcgis 10.1 server).. as per the samples given in the ESRI site http://blogs.esri.com/esri/arcgis/2012/09/26/heat-up-your-webmaps/ everything works ...
0
votes
0answers
68 views

ArcGIS JavaScript API displaying user defined part of layer

I need to display only particular part of one map service, not the whole layer. It's mosaic dataset served as ArcGISDynamicMapServiceLayer (if it's not the correct way to publish mosaic dataset in ...
0
votes
0answers
53 views

Service Token usage by applications authorization

As developers we are using Token based Service security concept with proxy to protect the tokens. I wanna understand something about tokens. A developer is using a token that given by ArcGIS Server ...
0
votes
0answers
1k views

Simple Dojo Pop Up Window

I'm working on my first web application using the JS API and am looking to add a simple tabbed pop-up window that can be called on the load of the page that can display map instructions and a general ...
0
votes
0answers
49 views

populate a combobox in jsviewer widget

I'm woriking with jsviewer and JSAPI v:2.8. in one of my widgets I have a combobox which I want to be populated once the widget is opened .it should be populated with a field values coming from a ...
0
votes
0answers
112 views

Adding imagery or world topo map from arcgisonline to map

I have an ESRI Javascript API application that uses a local Map Service with various feature layers. Now I need to add Imagery or top maps from ArcGIS online as base maps. I am trying the following. ...
0
votes
0answers
68 views

Why does my feature service allow add and delete but can't update attributes

I have published a FeatureService in ArcGIS 10.1. I connect to the service with this JSAPI sample: Using the Attribute Inspector. With this sample I can add features and I can move or delete ...
0
votes
0answers
112 views

cannot submit address to Google geocoder on iPad: ArcGIS JS webmap app

I am working on a web map app for desktop and iPads. The app uses a Google geocoder to locate addresses or intersections, added with the standard code in 'init': geocoder = new ...
0
votes
0answers
160 views

how do i get coordinates from a polygon like a drive time map

I want to do this locally in Javascript without using an ArcGIS service. The ideas is to get census group block and block data under drive time polygon overlays. An example of how the drive time ...
0
votes
0answers
292 views

ESRI JS API PopupMobile - view attribute page directly

I am using the ESRI Javascript API to write a mobile web application. I have used the PopupMobile widget for viewing/editing attributes. This widget creates a popup on the map when a feature(s) is ...
0
votes
0answers
123 views

How to add GeoTagged images to the map and store as KML

I have the requirement that i need to add a GeoTagged Image into the map and save that image in KML format. Give the approach to do this task.
0
votes
0answers
283 views

Toggle Layers from Multiple Services

I'm trying to adapt my code so that I can create a layer list of all layers in multiple services. I'd like them to be able to be turned on/off. My current code builds a dynamic layer list from one ...
0
votes
0answers
189 views

infoWindow does not open on initial page load (ArcGIS Javascript API)

I am working on a webapp using the ArcGIS Javascript API. I noticed that when I first load the map (currently living on a development server), the infoWindow does not open (when clicking on a ...
0
votes
0answers
316 views

How would one write a ArcGIS JSAPI layer to access WMS service via a Tile Server?

I want to request small WMS tiles instead of a single image for the entire map viewport because I know the request is going through a Tile Service (TileCache). OpenLayers handles this with the WMS ...
0
votes
0answers
353 views

How to display Heatmap in Internet Explorer 7 using ArcGIS JavaScript API?

Trying to find a solution to heat maps on IE7/IE8 (i.e. not using Canvas/HTML5/heatmapapi). Any ideas?
0
votes
0answers
572 views

Send ArcGIS JavaScript Geometry Object JSON to server using JQuery Ajax request

I need to send ArcGIS JavaScript Geometry Object JSON string to Asp.Net Handler. I am using JQuery Ajax request to post the Geometry Data. I am not able to pass JSON geometry like this ...