Use this tag when ArcGIS API for JavaScript is the web mapping API that you are using from the ArcGIS platform.

learn more… | top users | synonyms

4
votes
2answers
4k views

“TypeError: Unable to draw graphic (geometry:null, symbol:null)” after adding tiled and feature layers

I'm seeing the following error when attempting to add a tiled and feature layer to the same map when using the ArcGIS Server JS API 3.1: TypeError: Unable to draw graphic (geometry:null, ...
0
votes
2answers
1k views

Toggle Visibility of Features in FeatureLayer

How to toggle the visibility of features in a feature-layer using check-boxes .I have grid containing check-boxes in a columns representing each feature in Feature-layer and so if I check off the ...
5
votes
2answers
1k views

Does the ArcGIS JavaScript API let me build / package my application using Dojo?

I'm currently getting to grips with the new (3.1) ArcGIS JavaScript API and how it bundles Dojo and relies on Dojo's Asynchronous Module Definition (AMD) approach. I'm familiar with AMD and recently ...
2
votes
1answer
496 views

Clustering Point for StatePlane WKID 2236

Does anyone have an example to point me in the right direction to utilize Clustering with the ESRI JS API working with a State Plane wkid: 2236? I want to provide a solution for an internal ...
5
votes
1answer
550 views

Unclear on proxy used for AJAX in Javascript

I do understand how the proxy helps in transferring the XMLHttpRequest between the ArcServer and the Server (IIS/Apache) but where I am confused is that the first time the Html Doc loads, doesn't the ...
3
votes
1answer
3k views

ArcGIS Javascript API - Refresh

The ArcGIS Javascript API has a nice refresh interface for ArcGISDynamicMapServiceLayer: var dynamicMapServiceLayer = new ...
6
votes
1answer
258 views

Is it possible to install ArcPy on a server for use in a geoprocessing web application?

I have a website on my intranet and would like to add some geoprocessing tools to it with Python. Many Users will not have Arc installed on their machines, so I think I need to have the scripts set ...
5
votes
1answer
769 views

Using download JavaScript code option of ArcGIS Online without getting basemap too?

I am trying to create a Web App, using the ArcGIS Online feature of downloading the javascript code, with the map id being used for connecting to the ArcGIS Online. I was able to do that successfully ...
0
votes
2answers
4k views

Differences between ExtJS and Dojo Framework

I have been using OpenLayers and the ESRI's JavaScript API and found that both using different set of JavaScript libraries have some implications on the quality of application that they deliver. Dojo ...
1
vote
0answers
219 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
258 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 ...
2
votes
1answer
479 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
536 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
1k 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
194 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
1k views

Overlaping graphics not visible in featureLayer?

I have constructed a featureCollection from JSON and the feature collection has 44 features. I have given this feature collection as input to the Featurelayer which is showing only 32 graphics ...
2
votes
2answers
853 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
3k 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
442 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
420 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
1k 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
7k 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
310 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 ...
15
votes
1answer
533 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
377 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
480 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
1k 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
0answers
55 views

Shapefile to ArcGIS JavaScript JSON format? [duplicate]

Possible Duplicate: How to convert SHP into GPX or JSON? We're in the proces of adding a new feature to our Web Application where we employ the use of ESRI's ArcGIS Javascript API alongside ...
0
votes
1answer
547 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
5k 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
2k views

Override infowindow Zoom To function or fire second event using ArcGIS JavaScript API?

The Popup of ArcGIS JavaScript API has a 'Zoom To' link on it that zooms you 4 levels closer to the linked feature. I'd like to fire another event after the default zoom to function executes. ...
1
vote
0answers
966 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 ...
2
votes
1answer
431 views

How to generate thumbnails from shape file and display them on my website?

I tried to generate thumbnails from shape file and display them on my website(using jsp).I had been read this and this question .Very similarity questions ,but I know nothing about python... Is ...
4
votes
2answers
338 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
1k 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
2k 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?
7
votes
2answers
3k 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
3k 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
846 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
906 views

ArcGIS 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
252 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
1k 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 ...
-1
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
504 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 ...
5
votes
0answers
330 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
614 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
717 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
878 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 ...