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

1
vote
1answer
613 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 ...
3
votes
1answer
704 views

How to control the rendering priority/order of feature layers?

I am displaying polygon, line and point feature layers on a button click event and adding layers in order based on their geometry type, e.g.: polygon -> line -> point. In certain cases layers are ...
3
votes
2answers
816 views

Add Zoom Level to Map within TileLayer

I used ArcGIS javascript API 3.0 version and I use Bing map. I need to be able to zoom to 22., 23., 24., .. levels. So I was added an addNumLevels function to Map; esri.Map.prototype.addNumLevels ...
2
votes
1answer
477 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 ...
2
votes
1answer
634 views

Is there a Swipe tool for ArcGIS JavaScript API?

I was researching the ESRI JavaScript API, and was wondering if there is a sample which shows layer swiping in the browser. Is there such a Swipe sample?
2
votes
1answer
361 views

ESRI Javascript APT FeatureSet input to custom Geoproecessing tool

I have an ESRI Javascript application that uses a geoprocessing service that uses a cutsom GP tool. Since I have a set of values to be passed to the GP service I am planning to pass in it as a record ...
5
votes
1answer
280 views

How to draw graphics in a child window?

I am adding some graphics to the map in a parent window, and I would like to show the same graphics in a child window. I am using the ArcGIS Javascript API (version 3.1). I have written code as below: ...
1
vote
1answer
380 views

Heat Maps only for feature layer (why not for dynamic layer ?) in ArcGIS Java script API 3.0/3.2

I am referring this link to generate the heat map. In this example they used feature layer and I tried using dynamic layer but getting an error (that no map is displaying). I researched on Google ...
14
votes
3answers
10k views

Programmatic authentication to ArcGIS Server secured layers via RESTful API

I have an ArcGIS 10.1 Server instance exposing secured mapservices on the Internet. My need is to code down a client application (which I am currently building using the 3.3 version of the ArcGIS ...
2
votes
1answer
2k views

Popup from multiple services

I am trying to have one infowindow/popup show from multiple services. I have successfully added the second service to my code, however, only 1 result will display. Ex. if I am at full scale, only ...
3
votes
1answer
2k views

How to use Zoom Slider like the older version in Arcgis Javacript API 3.3?

I'm using Arcgis Javacript API 3.3. In this version zoom slider look like this. And here, this is the older version. Is there any way to make it like the older version?
3
votes
1answer
280 views

Opacity causes tiles to 'flash' in

I have a map sitting on top of a dark gray background. I have the canvas basemap set to initially load as semi-transparent: var canvas = new ...
1
vote
3answers
1k views

How to restrict zoom levels based on Bing Map availability?

Background My site is built on ArcGIS Server 10 with the JavaScript API 2.3, and uses Bing Maps as the background mapping. Although the site is aimed at NSW, Australia we allow the user to zoom ...
2
votes
2answers
761 views

pass string varialbe to placeholder for attribute in infoWindow (ArcGIS Javascript)

I am working on a Javascript-based webapp that uses an ArcGIS map service, which has several attribute columns containing URLs to photos. The user will be able to open photos by clicking on a link in ...
4
votes
1answer
9k 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 ...
2
votes
1answer
388 views

SOAP url of arcgis service

I basically use REST URL to display feature layer or ArcGISDynamic Service layer and it is commonly promoted by ESRI by their api example. I was wondering since the ArcGIS server also provide SOAP URL ...
5
votes
2answers
3k views

Turn Popups On/Off in ArcGIS Online Webmap via Javascript API Web Application

I am writing my first ArcGIS Javascript API web map application and consuming a web map authored in ArcGIS Online. The ArcGIS Online web map apparently does most of the work for me in terms of ...
2
votes
2answers
931 views

How to retrieve the mapPoint behind a PictureMarkerSymbol?

I am using ArcGis Javascript API 3.2. After instantiating a Point, PictureMarkerSymbol, attribite and an InfoTemplate, I use this code to plot a point on the map. var graphic= new ...
1
vote
1answer
321 views

Need help in ArcGIS Java Script API : Installation & configuration with different browsers

We are using ArcGIS Java Script API (version 3.2, 3.0, 2.8) according to our requirement we are using various API’s. Currently ESRI launched new version 3.3 so if I want to view old examples ...
0
votes
1answer
439 views

Esri Query Task service does not display

I am trying to make my way through some ArcGIS server Javascript API tutorials. My current issue is that when I try to display an Esri.Map, all I see is the "powered by esri" logo in the bottom right. ...
0
votes
1answer
2k views

Plot points using ArcGIS javascript api from co-ordinates

I would like to map co-ordinates that I got from the exif in photo's using my own command line tool that I made. As opposed to uploading your private photo's for everyone to see on flickr. How to I ...
3
votes
1answer
4k views

Changing ArcGIS Server 10.1 port (6080 to 8080)

Due some network issue (Maps are not displaying in secure environment), I want to change the default port 6080 to 8080. I am going through Web help and few links in which they mentioned that install ...
1
vote
0answers
158 views

setLayerDefinitions without defining layers?

I am working on a similar project to How to zoom to feature when clicking on drop-down list box item with ArcGIS JS API?, trying to filter the graphics on my map based on the user input into a ...
1
vote
0answers
140 views

Unable to display values in combo-box in ArcGIS Java Script API (ver 2.8)

I am trying to display few values in combo-box in JSAPI but I am getting an error ( I am not able to view the combo-box items). I have attached my completed code in JS-Fiddle (only removed server ...
0
votes
1answer
966 views

featureLayer.fields is undefined

When working with the javascript API, I have been getting an error in FireBug when trying to execute the following script: var featLayerURL = ...
11
votes
3answers
2k views

What is the future of ArcGIS web development ? Is it JavaScript and HTML5? [closed]

I want to know about the future of ArcGIS web development; is it HTML5? I used to work with ArcObjects and .NET Web ADF so what is the best technology I must follow, especially when I know that ...
0
votes
1answer
101 views

Need help regarding customizing Dojo/digit tool for ArcGIS Java Script API 2.8

I am developing this tool (Similar tool for the India like ‘State’ and then ‘district’ level) and I am trying different methods so please let me know which method is suitable or not suitable ...
1
vote
0answers
961 views

Can I supply my own REST API token to the ArcGIS Javascrpit API?

I am using the ArcGIS Javascript API to connect to the arcgis.com portal. To do so I am calling portal.signIn(). The issue is that I don't want the user to be responsible for performing the login, bo ...
0
votes
1answer
128 views

Need few references of ArcGIS Java Script API version 2.8

I need few samples from version 2.8 & I have check the site but Esri hosted latest version 3.2 so where should I get version 2.8 ?? I gone through this post regarding 2.8 version..and the only ...
2
votes
1answer
98 views

Change text color of PopupMobile

I am facing the problem that with some mobile Browsers like DolphinHD and Android Browser that the browser makes the text color white, and the background is also white. So i want to change the ...
1
vote
1answer
277 views

Export Web Map Task for 3076 features

I am trying to use Export Web Map Task but it has a limit of 1000 records, how can I use this service or replicate this service to execute my print command. Any suggestions? I am working on ArcServer ...
2
votes
2answers
1k views

ShapeFile or feature class to json

Is there any online or desktop based tool that can convert shapefile or feature class to json and not Geojson.Is there any tool in arcgis desktop to convert shapefile or featureclass into json.
3
votes
1answer
390 views

Javascript and esri.dijit.PopupMobile

I currently have a wonderful mobile version of our site up in which it uses PopupMobile to display the requested info. I also map a button on the map that allows the user to do a random function. ...
0
votes
1answer
4k views

Feature Layer from JSON file

I would like to project my shapefile information on the maps. I converted my shapefile into a JSON file. How can use the Json file to create a featurecollection object in the ARCGIS Javascript API. ...
2
votes
1answer
319 views

Feature Layer (Polygon) Rendering issue in ArcGIS Server 10.1

I have a feature layer consisting of 96,000 features, but we are displaying a maximum of 13,000 features in our map application. There is an issue that for some zoom levels the features are visible ...
5
votes
2answers
906 views

Unable to display FeatureLayer using ArcGIS server

I can't figure out why this FeatureLayer doesn't show up on top of my base map. I'm using ArcGIS Server 10.0 and the ArcGIS JS API 2.6. Here's the information from the service's REST parameters page: ...
4
votes
2answers
4k views

Error: Tried to register widget with id==legendDiv but that id is already registered

Getting the following error when running my app: Error: Tried to register widget with id==legendDiv but that id is already registered Not sure how to get rid of it. My javascript for the legend is: ...
3
votes
1answer
2k views

Use OpenStreetMap in Basemapgallery - Manually

I dont know how to add the OpenStreetMap to the basemapgallery. I want to do this manually because when i use ShowARCGIS basemaps:true i get too many basemaps i dont use. Here's my code: ...
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 ...
3
votes
1answer
2k views

How to add item to the ArcGIS Portal with the portal API?

I'm trying to add/update an item back to the ArcGIS Portal using the portal API, in much the same way as you would when doing 'Configure Application'. I am trying to use the update item call to send ...
1
vote
2answers
390 views

SQL Server STpointfromText comes from PHP into javascript as garbage

Sorry for the sloppy title. Here's the scenario - I have a table in SQL Server 2008 R2 It has a geographyColumn, created thusly: add geographyColumn as ...
0
votes
0answers
457 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 ...
1
vote
1answer
337 views

Why is the dijit.popup not working correctly?

I take the following steps: Click 2 overlapping features from 2 different featLayers. Popup auto-selects and highlights map.infoWindow.features[first object] The popup content is actually from ...
1
vote
2answers
114 views

Why is result from gp tool not being created on JavaScript API?

Ok I am really confused. I can see the output of the result from geoprocessing tool. But why am I not able to add it to the map. As you can see the result returns all the attribute values. This is my ...
3
votes
2answers
558 views

ArcGIS - How to programmatically create new dynamic layer for service?

I'm trying to create a number of widgets that will visualise different data by geographic area, e.g., the Potential Losses for Instrument X in Year Y for the Counties of State Z. Ideally this would ...
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 ...
2
votes
2answers
647 views

Could not load class 'dijit.layout.BorderContainer

I have developd a map with TOC, Navigation Toolbar and some other query options using Javasctipt API in .aspx page. When I run it individually, it is working perfectly, but I want to embed it into ...
2
votes
1answer
2k views

deactivate editToolbar with map onClick

I have the below function to enable editing. I click on an editable feature, the infoWindow is displayed with attributeInspector and the editToolbar (move point) is activated. I would like to call ...
1
vote
0answers
378 views

Any example of creating a time-aware layer (acrgis js api + ruby rails) using data from the server

I have a data set of points. Each point has latitude, longitude, date and description sent from the server I already have a graphic layer which is used for represening the points in a static way with ...
0
votes
1answer
214 views

Feature count of current features in Extent based on attribute?

I have one points layer in a cached map service, symbolised with a unique renderer on one field. e.g. petrol stations, symbolised by the company who owns them. I want to create a fairly basic ...