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

learn more… | top users | synonyms

3
votes
2answers
1k views

Export map to PDF using Esri JavaScript API

I've searched a lot and tried many ways to export a web map to PDF. I need to export a web map and all active layers. Can anyone help me?
5
votes
2answers
2k views

JSAPI - how to add a graphic on top of another graphic in the same layer?

I have a graphics layer and I'd like to add a graphic behind the existing graphics. I've come up with this: graphicsLayer.add(overlay.graphic); ...
4
votes
2answers
2k views

Using PHP with a web application?

I have been working on creating a web mapping application using ArcServer 10 and the JavaScript API. Recently I was told that queries need to be run using PHP due to prior work by another team. The ...
3
votes
0answers
689 views

How to handle real time GPS data with ArcGIS Javascript API? [closed]

I'm developing a web app using Arcgis Server 9.3.1 and Javascript API I have a database with gps data from several vehicles and I need to display each vehicle real position in a map. I display this ...
2
votes
1answer
639 views

esri 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 ...
2
votes
2answers
245 views

ESRI ArcGIS Javascript API - any 2.9 beta examples available?

I found the arcgis 2.9 beta at http://servicesbeta.esri.com/jsapi/arcgis/2.9 but cannot find any beta samples. Are they available?
1
vote
1answer
858 views

ESRI Javascript API - Emulate 'Red Glow' Effect From Flex API

I am trying to emulate the red glow effect so common in the Flex API Examples. Really, any type of blinking/flashing style marker will do. I am assuming I will have to use a picture marker symbol ...
0
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"); ...
3
votes
2answers
419 views

Testing Tools For Simulating User Interaction - Especially Map Panning

Can anyone suggest any tools that can simulate users panning around in a map? I have used tools such as SoapUI to do load testing, but never anything to simulate users. In case it matters, the app I ...
2
votes
3answers
1k views

ArcGIS server 9.3.1 Javascript API via REST : Transparency issue

I have two map services , one is tiled service returns a satellite image , and the other is dynamic displays the roads ,POIs and Parcels. I'm trying to make the dynamic one shows the roads only above ...
4
votes
0answers
274 views

convex hull over selected features

I am trying to achieve a convex hull over a feature Set returned by a query. But have been facing the error below which i am not able to figure out In order to debug to see how the convex hull works ...
1
vote
1answer
493 views

Time series data visualization

Hi I have two different data sources that i would want to use for my application 1) Time series data on a road network 2) Spatial data of the road network In essence i would want to combine ...
1
vote
0answers
595 views

ArcGIS Javascript API: Force the fit option when zooming via rubberband selection with tiled map services

We're using ESRI's ArcGIS Javascript API with a tiled basemap and when the user zooms in using a rubberband selection via the navigation toolbar the map sometimes zooms in too far. This is apparently ...
1
vote
1answer
1k views

ArcGIS javascript api: Convert a map service with projected coords to web mercator

here I see a question about tiled map services. But what about dealing with an arcgis server map service in a projected coordinate system like say 2278, how would I convert this to web mercator so ...
3
votes
1answer
591 views

show message if map service unavailable

If any of my ESRI REST map services are down I want to be able to tell the user, at minimum with an alert or message. I thought I could use onLayerAddResult(layer, error) but it doesn't seem to be ...
2
votes
1answer
1k views

ARCGIS Javascript API Feature Layer retrieval

I would want to develop an application where we could query the layer based on a result set of certain attributes of the features and highlight features. Approach Currently I tried using the feature ...
4
votes
2answers
6k views

Adding a FeatureLayer ARCGIS JavaScript API

Hi I am currently exploring ARCGIS Javascript API. I have my own map services and feature services up on my local server. I would want to use the FeatuerLayer to select and highlight feature on the ...
2
votes
1answer
277 views

ArcGIS Javascript API - How to submit a defect?

I would like to know the best way to notify ESRI of a possible defect in the JSAPI and gis.stackexchange seems like the best mechanism for doing so (Derek reads it and fixes it). That being said, ...
3
votes
1answer
996 views

How do I use a toggle button with the ESRI javascript api

I am trying to use two toggle buttons which have been added to a map to toggle layers on and off in my simple web application. I am having problems getting the toggle button to respond when clicked or ...
6
votes
1answer
731 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
0answers
4k views

Populate an existing popup with an AttributeInspector after RelationshipQuery returns results

Here's the workflow: A user selects a feature layer polygon, views a popup. A link added to the popup will run a RelationshipQuery to view related records. How can I get the RelationshipQuery results ...
0
votes
0answers
445 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?
3
votes
1answer
322 views

ArcGIS Server 10 GP Service Cannot Download Result?

I have implement the ArcGIS JavaScript example just like the ESRI official example (clip and ship) .Everything was going right except the final step ,when the gp job have finish and my browser lead me ...
2
votes
1answer
151 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
2k views

ESRI 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. ...
1
vote
1answer
1k views

ArcGIS JSAPI selectFeatures on feature layer with “stacked” features only returns one feature

I am using the selectFeatures function to launch a popup when clicking on a feature. Because of the nature of my data, many of the features (street segments) have coincident geometry (they are stacked ...
1
vote
2answers
889 views

Convert ArcGIS Javascript api Geometry Object to GeoJson [duplicate]

Possible Duplicate: How to convert ArcGIS Server JSON to GeoJSON? How to convert ArcGIS Javascript api Geometry Object to GeoJson using Javascript?
1
vote
0answers
719 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 ...
6
votes
3answers
2k views

How to display the map.InfoWindow outside of the map container?

I need to show an infoWindow outside the map (i.e. have it owned by the body of the HTML document, not the map div). If i subclass InfoWindowBase I can do this myself but I really don't want to do ...
2
votes
2answers
2k views

Javascript Api's ArcGISTiledMapServiceLayer won't show map

I am currently trying to show a map that has been tiled. I am using version 10 of the arcgis server, and version 2.5 of the javascript api, the odd thing i am running into is that the map will not ...
3
votes
1answer
848 views

Does the esri javascript api Identify Task Return a FeatureSet?

I am trying to get the results of an identify task using ArcGIS JS API 2.7 into a featureSet so I can utilize this sample http://arcscripts.esri.com/details.asp?dbid=16528 that takes the results of a ...
0
votes
3answers
590 views

JSAPI 2.8 and Dojotoolkit 1.7.2? May?

I realize no one can give a definitive answer but is it reasonable to think the next release of ESRI JSAPI will be built on top of dojotookit 1.7? And will be released in the next 2-3 months? Any ...
5
votes
3answers
3k 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.
8
votes
1answer
980 views

What are some examples of interesting zoom slider customisations?

The default Claro zoom slider control is pretty boring. It's also hard to see on top of many basemaps: Are there any examples of some nice customisations I could use for inspiration?
0
votes
3answers
815 views

How to load spatial data into ArcGIS Javascript API application from SQL Server 2008?

I have geometry data in SQL Server 2008 R2. How do I load that spatial data using the ArcGIS Javascript API?
2
votes
0answers
202 views

JSAPI: How to prevent GetImageUrl from being called twice?

I posted this on the ESRI forum a while back but got no response. PROBLEM: GetImageUrl is called twice resulting in two trips to the server if caching is off. QUESTION: How can this be prevented ...
3
votes
1answer
4k views

How to add or remove layers using ArcGIS API for JavaScript?

I want to use javascript and dojo to add and remove layers.
0
votes
1answer
377 views

ESRI JSAPI: How to use GMap3 as 1st layer when using gmaps-utility-gis.googlecode.com?

This question relates to ESRI JSAPI and Google Maps V3 integration... I've put together this fiddle http://jsfiddle.net/br4pk/1/ which demonstrates a mismatch between the LOD of the map and ...
3
votes
1answer
7k views

How to Zoom to a FeatureLayer Using ArcGIS Javascript API

I am making a web application using the Javascript API and am trying to zoom to a feature layer from a row click in a dojo data grid. I have this working for a dynamic layer, but am having issues with ...
3
votes
1answer
446 views

Any Open Source Extensions to ESRI JSAPI?

I'm looking for some functionality beyond what ESRI already provides in the JSAPI. For example, the ability to display the LOD in a tooltip on the zoom control. It seems like there should be a ...
2
votes
1answer
693 views

ArcGIS javascript API: A way to position Dynamic Service layer on top of Graphic Layer?

I have 3 layers: Tiled based map DynamicServiceLayer with ~1000 points Graphics layer with ~20 polygons I really need the DynamicServiceLayer to be on top of the graphics layer (point must be on ...
2
votes
1answer
1k views

How to vary the infoWindow size for different feature layers

I have multiple feature layers on the map, and I wish to display a different sized infoWindow for each layer. As far as I can tell, the map has one infoWindow, which can be resized using: ...
7
votes
1answer
2k views

Incorrect date displayed with Esri JavaScript API v.2.6

I am working on a site that is using version 2.6 of the Esri Javascript API. I have an info window that displays some date information, and the date is one day behind the date in the database. For ...
7
votes
1answer
2k views

Is the ArcGIS Server JavaScript API free to use?

The 2008 blog post announcing the ArcGIS Server JS API says: Everyone can use the ArcGIS JavaScript API. There is no fee for using the ArcGIS JavaScript API or deploying an application built with ...
1
vote
2answers
177 views

Tips and advice for Filtering on a large dataset

I am attempting to build an application using the ArcGIS JavaScript API that will allow my users to research competitor pipelines across the country. The main layer in this application is comprised ...
1
vote
2answers
2k views

ESRI Maps - Refresh the map

First time, map loads and the locations are plotted properly. Second time, when the new set of locations are pulled from the app, map reloads and gets the new set of data. But it is not refreshed. ...
1
vote
1answer
443 views

How to save Bookmarks between sessions using the JS API

The ArcGIS Server JavaScript API contains a Bookmark dijit which allows users to add and delete bookmarks. These are not persisted between sessions, but are reset each time the page refreshes. Has ...
4
votes
2answers
355 views

Why is the Button code on the ArcGIS.com sample viewers so complicated?

I'm trying to modify one of the ArcGIS.com sample maps to add my own buttons, and I'm surprised at how complicated the HTML page is. Here is the code for the simple "Details" button at the top left ...
1
vote
2answers
580 views

Using TiledMapServiceLayer and On Demand Tiling

I have a tiling services which generates tiles on demand but TiledMapServiceLayer does not use a callback for getTileUrl so how would one implement this? I've tried using the refresh! method to no ...
1
vote
1answer
741 views

How to join an external table to a set of polygons, and symbolize on the joined values, in a web map?

Say I have a table showing a number of statistics - for example, various gun crime by US State measures. I also have a dataset of state boundaries. How can I join the table to the features in a web ...