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

learn more… | top users | synonyms

1
vote
1answer
447 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
66 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 ...
3
votes
3answers
454 views

How to zoom to feature when clicking on drop-down list box item with ArcGIS JS API?

I am developing a web application with ArcGIS JS Api that is similar to this smart campus: UCSB Interactive Campus Map. Here, in the Building drop down list box, you can select a building, and the ...
1
vote
0answers
80 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 ...
4
votes
2answers
173 views

How to auto-add new values to unique values classification values range?

I am using ArcGIS Desktop 10.1, ArcGIS Server 10.1 & SQL Server 2008 software. I am adding the query layer and directly publishing to ArcGIS Server and accessing the map in a JavaScript ...
1
vote
1answer
212 views

How to Delete Records from a Feature Layer?

I am trying to delete some records from a feature layer, but I kept getting the error of invalid parameters from the errback. Below is my code: function deleteRecords() { var incidentId = 2; var ...
3
votes
1answer
115 views

Query task issue with Arabic input

I am using ArcGIS Java Script API version 2.8 & using query layer in ArcGIS server. The data is coming from sql server and most of the data is in Arabic language. I am sorting the data and ...
1
vote
1answer
139 views

ArcGIS Map Service: group layer loading

My ArcGIS JavaScript application is using an ArcGIS Server Map Service that has a bunch of layers. It also has a group layer. The structure is: Service group_layer_0 layer_1 ...
0
votes
1answer
133 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 = ...
9
votes
3answers
434 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
72 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
138 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
63 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
52 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
121 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 ...
5
votes
2answers
164 views

Rendering huge amount of points

Evening Guys, I am new to ArcGIS, and currently developing a small app that uses ArcGIS Javascript API. I have encountered a couple of problems while working on this and would greatly appreciate if ...
1
vote
1answer
114 views

Difference between Identify task & Attribute Info in ArcGIS Java Script API (ver. 2.x & 3.x)

I am little bit confuse in between Identify task and attribute info task. According to research, both are displaying attribute information Interestingly if one point contains multiple attribute ...
2
votes
2answers
426 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.
4
votes
0answers
158 views

Styling a Chart within a Popup

I have a dojox bar chart on my app, that is populated from a QueryTask everytime the extent changes. I am making use of the Tufte theme (the only one that has a transparent background), and ...
3
votes
1answer
121 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
665 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. ...
4
votes
1answer
229 views

Existing ArcGIS Rest Services - What platform to use for building mapping application?

I have clients that have an existing ArcGIS Server. Map layers are published as rest services and I am going to build a mapping application that displays their datasets. Functionality should include ...
2
votes
1answer
128 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
283 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: ...
3
votes
2answers
452 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
430 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: ...
2
votes
1answer
168 views

How to Change the Default Displaying Order of Esri Basemaps in basemapGallery?

I just started using ArcGIS JS APIs. In my app, I want to combine a few ESRI basemaps with my own basemap service. I am using basemapGallery dijit to change basemaps. By default, basemapGallery shows ...
0
votes
1answer
71 views

Upgrading ArcGIS JSAPI 2.x to 3.x & getting different errors

I have few data in which ArcGIS Java Script version 2.6 and 2.8 is used & I am upgrading it to ver.3.0/3.1 and getting different errors like (Store error,Map display is blank etc.) I searched on ...
1
vote
1answer
147 views

How do you display ArcGIS Server dates without the javascript localized date offset?

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 as UTC. Mostly this is fine.You understand ...
5
votes
3answers
598 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
1answer
269 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
113 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
127 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
147 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
55 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 ...
1
vote
1answer
229 views

How to display unique records in combo-box in ArcGIs Java Script API ver 3.0/3.1?

I am displaying almost 9000 records by four type (A,B,C & D) in which I am displaying records using combo-box. Each record is classified by "ctype" ( A or B or C or D) so I am putting this in ...
0
votes
1answer
283 views

How to to print and save the map with tiled and dynamic layers in arcgis using javascript?

I want to print this map....can anyone please suggest me how to print and save the displaying pap in arcGis using java script World Street Map <style> ...
3
votes
2answers
167 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 ...
0
votes
0answers
36 views

graphics not displayed in child window derived from parent window parameters

My webapp allows the user to zoom to a map extent, then create a new window with a new map drawn to the zoomed extent of the parent window map. The parent map contains graphics, which should also be ...
0
votes
0answers
75 views

ArcGIS JavaScript API - symbol does not appear in IE but works fine with Chrome or Firefox?

I am writing an app, the problem is same symbols works great with Firefox/Chrome but do not appear well with IE, any help will be highly appreciated. Thanks
1
vote
2answers
247 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
195 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 ...
1
vote
1answer
252 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 ...
2
votes
0answers
353 views

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

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 ...
1
vote
0answers
113 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 ...
1
vote
2answers
84 views

Upgrading custom Java script tool (ver. 1.3 to 3.1 ) for ArcGIS Java Script API and getting an error

I have found useful tool here (All US States and counties on combo-box) its using Java script API 1.3 version. I have downloaded the tool and trying use but its gives an store error (using version ...
0
votes
1answer
79 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 ...
0
votes
0answers
70 views

Creating MapServer in Geoprocessing service

Is it possible to create MapServer in Geoprocessing service in ArcServer 10? I have see that we can access MapServer from Geoprocessing result, http://<arcgis rest ...
0
votes
1answer
128 views

Integrating ArcGIS Online Web map to my Java script file(test.html)

Is it possible to integrate ArcGIS Online web map to my java script API?? I check the samples but in which only web map is added..I have few layers in .html file (Like feature,dynamic etc. and I want ...
1
vote
1answer
170 views

Unable to see the featureLayer but it is present on the map

I have created a featureLayer from featureCollection and I am able to add it to the map and when I execute, map.graphicsLayerIds, it also returns the id of the featureLayer, ["resultLayer"]. But I am ...

1 2 3 4 5 8