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

learn more… | top users | synonyms

1
vote
0answers
130 views

locator service to use with ArcGIS Javascript API v2.1

I am hoping to find a locator service that will locate by address or intersection, and that will work with version 2.1 of the ArcGIS Javascript API. I tried this locator given in the examples, which ...
3
votes
1answer
213 views

Dynamically rendering polygon, point, and line features

I have a Feature Collection consisting of features having id, color_code, etc as attributes. I have to render this feature with the color in the color_code attribute. Is this possible and please ...
1
vote
1answer
376 views

Query a polyline layer using arcGIS's Javascript API

I'm attempting to query a polyline layer using the ArcGIS Javascript API I all ready have a lot of experience doing this with Point layers. So I set my Polyline layer up the same way and stopped and ...
3
votes
2answers
321 views

Fundamental concepts of ESRI Javascript API

I am building a Web Application for the first time using the ESRI's Javascript API and wanted to know the basic fundamental concepts that I should keep in mind?
1
vote
2answers
793 views

How to get an ArcGISTiledMapServiceLayer + WMSTLayer based on same service to align?

The image below can be obtained by adding WorldTimeZone layers to the JSAPI map: wmtsLayer = new ...
1
vote
0answers
189 views

esri.dijit.popup custom layout

I'm looking for a way to customize the layout of popup. What is asket to me is to change the defined labels of navigation inserting a custom string and move and change the icons to navigate the first ...
1
vote
1answer
875 views

Overlaping graphics not visible in featureLayer

I have constructed featureCollection from Json and feature collection has 44 features. I have given this feature collection as input to the Featurelayer which is showing only 32 graphics objects of ...
2
votes
2answers
789 views

ArcGIS API JavaScript, Flex, and Silverlight updated comparision

Does anyone know of a site, blog, etc. that constantly updates a comparison between the various ArcGIS APIs for each new release of the API?
1
vote
2answers
2k views

Convert spatial Geographic data from sql server 2008 to Json

Is there any example to convert spatial data (point,line,polygon) stored as geographic in sql server 2008 into Json and display data using Arcgis Javascript Api 3.0.I have tried converting geographic ...
0
votes
0answers
371 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 ...
3
votes
1answer
302 views

TO_DATE query on ArcSDE for Oracle dataset failing?

I'm trying to use TO_DATE to query an Oracle SDE dataset. It's not working in the javascript API application so I tried to query the rest end point directly and I get the error: "Unable to perform ...
0
votes
1answer
854 views

ArcGIS JS API Pop-Up w/TabContainer

I am attemtping to call a dojo tab container within an ESRI pop-up. The code that I have (see below) is able to create a pop-up with a tab container and the contents, but also creates three 'dead' ...
1
vote
4answers
4k views

Prevent drawing of overlapping point symbols - ArcGIS Server/Javascript API

Is there any way in ArcGIS to prevent symbols from being drawn when they overlap each other? I know this is possible for Labels using Placement Properties/Label Weight, but I can't seem to find ...
2
votes
0answers
293 views

Anyone have success with OpenLayers and ArcGISCache?

OPENLAYERS Has anyone had success using OpenLayers and the ArcGISCache layer beyond the examples? I'd like to mix tiles with different resolutions and although they seem to scale correctly they do ...
13
votes
1answer
446 views

Are there any Javascript map labeling engines available?

Does anyone know of a javascript library containing functions that would allow me to generate labels for points on the map so that the labels don't overlap one another, and have optional leader lines ...
3
votes
1answer
254 views

finding a location on a line using a point and a relative distance with arcgis js api

The problem I'm trying to solve is to find a point on a line given another point on the same line and a distance from the same point. I've been looking on the various RouteTask examples but they ...
2
votes
1answer
350 views

Consume netcdf Data with ESRI Javascript API?

We've got loads of raster data that can be organized by time, so we thought packaging them into netCDF would be a good a idea. But we also want to serve out the data to a web application that ...
1
vote
1answer
936 views

ArcGIS Server 10 Javascript API Offline

Is there anyway to have all the required files of JS API ? because i have a local application and the user wont be able to have the resources from serverapi.arcgisonline.com
0
votes
1answer
395 views

Is dynamically changing a datasource possible in arcgis js api?

I've posted a related question is in the ArcGIS Desktop forums, but hasn't gotten any replies yet. In that case, I would like tackle this in another way, which is dynamically changing a datasource ...
4
votes
1answer
3k views

automatic zoom to layer in arcgis js api

I'm trying to zoom to layer automatically as soon as the map finishes loading using the guide here. To be clear, I'm only loading one layer and just want to zoom in on one of the layers provided by ...
1
vote
1answer
1k views

ArcGIS JavaScript API: Override infowindow 'Zoom To' function or fire a second event

Those of you familiar with the Popup version of InfoWindow in ESRI's JavaScript API know that the Popup has a 'Zoom To' link on it that zooms you 4 levels closer to the linked feature. I'd like to ...
1
vote
0answers
765 views

adding arcgis js api featurelayer is slow and produces errors for ie [closed]

First time ArcGIS js API user here. The app I am building loads a series of FeatureLayer on top of an ArcGISDynamicMapServiceLayer. I based my code on the Class Breaks Renderer sample here. The app ...
4
votes
2answers
263 views

Adding large amount of data to web map using ArcGIS API for JavaScript?

I've got problem, I'm creating map based application, and now I have to add to map about 100 000 graphic points, from coordinates. I was trying in many ways to do it, but always process of adding ...
1
vote
1answer
837 views

JS API Toggle Pop-Up On & Off

I am attempting to allow for the pop-up to be toggled on and off by pressing a checkbox. Here are some snippets of the code: var clickHandler function popupOn(evt){ var query = new ...
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
693 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
660 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
246 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
888 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
421 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
276 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
501 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
601 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
604 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
279 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
1k 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
768 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
452 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
325 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
154 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 ...