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

learn more… | top users | synonyms

2
votes
1answer
80 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 ...
2
votes
1answer
288 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 ...
6
votes
2answers
881 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 ...
2
votes
2answers
907 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
299 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. ...
3
votes
1answer
282 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. I am sorting the data according to the ...
3
votes
1answer
630 views

Problem with identify task in ArcGIS JavaScript API 2.8

I found interesting issue while using the “identify task” tool to display information at a point. Situation: I am displaying records by Type (A, B, C etc). When I display Type "B" records and I click ...
6
votes
2answers
433 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 ...
4
votes
1answer
534 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
251 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
734 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
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: ...
2
votes
2answers
748 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
88 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 ...
6
votes
2answers
2k views

Application Templates for ArcGIS Server?

Esri provide a lot of excellent template applications for us in conjunction with web maps. These templates are specifically designed for using with your resources on ArcGIS Online as opposed to ...
1
vote
2answers
294 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
356 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
269 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 ...
0
votes
1answer
2k 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 to me how to print and save the displaying pap in ArcGIS using JavaScript? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
1
vote
1answer
782 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 ...
2
votes
2answers
274 views

How to create a ClassBreakRenderer without data coming from Feature Layer?

I would like to create a ClassBreakRenderer to represent integer values. The symbols I am using are defined as PictureMarkerSymbols with JSON and they are just a filled blue circle with different ...
1
vote
1answer
1k 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
2answers
525 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 ...
4
votes
2answers
2k 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: ...
1
vote
0answers
283 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 ...
2
votes
1answer
1k 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
1answer
220 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 ...
1
vote
2answers
95 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 ...
0
votes
1answer
161 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 ...
1
vote
2answers
103 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 ...
1
vote
1answer
524 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 ...
2
votes
1answer
319 views

How to write addressToLocations onError?

How can I write a code for checking the error condition in Javascript (ArcGIS) for addressToLocations(params, callback?, errback?). if somebody entered an invalid address- how can I call error ...
3
votes
2answers
448 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 ...
3
votes
1answer
625 views

Basemap Gallery Error - ESRI JS API

I'm getting an error when trying to switch basemaps in my application(right now only works in IE9). TypeError: Unable to get value of the property '_basemapGalleryLayerType': object is null or ...
2
votes
1answer
398 views

Error while placing labels within polygons using ArcGIS JS API and a external Geometry Service

I have published in my ArcGIS server a map service with a table containing the polygons of all countries on Earth. So this table contains more than 200 rows and the geometry field is of type type: ...
4
votes
2answers
2k views

ArcGIS Javascript API - Using Proxy For Specific Layers

With ESRI's Javascript API - is it possible to make only certain layers go through the proxy? I know this is possible in the Flex API via proxyUrl property of applicable layers. Right now i have this ...
4
votes
1answer
664 views

ArcGIS Javascript API - Return 'normal' map extents when panning around the world

ArcGIS Javascript API maps allow the user to pan around the world, which is a great feature, however I am performing some processes that rely on map extents. I have discovered that despite the ...
3
votes
1answer
330 views

Need help: Sorting elements of a combo box in ArcGIS Java script API (ver. 2.8)

I am using sorting elements in combo box in ArcGIS Java Script API (v.2.8) & for sorting I am using “ fetchProperties="{sort:[{attribute:'name', descending:false}]}". All entries in combo box are ...
3
votes
2answers
649 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 ...
1
vote
1answer
821 views

Show Fields in infowindow from my custom layer

I want to display 2 fields from the POIData layer. What i get now is ${ToegangsNr} ${Baanvak} in text. Does anyone know how to do this in an DynamicMapServiceLayer. Thanks in advance POIData = new ...
6
votes
1answer
183 views

How to select all remaining features after a Layer Definition filtering?

I have a map service that represents the World map with a table with population associated. I would like to filter some of the data matching a criteria and then, select ALL remaining features to work ...
7
votes
2answers
13k views

How to make heat maps?

It might beginner question regarding heat maps..I want to prepare the heat maps so what parameters are required for that?? I gone through following posts about heat map..but I did not get exact ...
3
votes
1answer
598 views

Check if lat/long point is within shape

I'm a bit new to ESRI and GIS so forgive me if this is a simple question. Looking at this example ESRI Javascript sample (source code is here) I see you can click on a shape (via a published shape ...
1
vote
1answer
165 views

How to shade or add grey overlay to non-selected features in ArcGIS JS API?

I have an application showing cadastral parcels. When a parcel is clicked, the applications makes zoom to the extent of this feature and prepares a floating pane where it is possible to load some ...
1
vote
1answer
302 views

Zoom to link button in Popup, killing the Map

I am using the traditional Popup of JavaScript API and it seems to not work properly in my application. When you click on the map, the Popup comes fine but when you click on the Zoom to link button, ...
4
votes
3answers
3k views

Query Layer with user-defined (dynamic) parameters in ArcGIS 10.1

I have prepared and published with ArcMap 10.1 to my ArcGIS Server a Query Layer to access some information in my database. My output map represents the European Union states and using annotations, ...
0
votes
3answers
410 views

Accessing fields of particular layer

I am trying to access the fields which I can see in this particular layer. I am able to see that it has fields but fetching the values in those fields is something that I am unable to do. Is there ...
4
votes
1answer
997 views

Feature Service layer issues

What is the maximum number of records returned by WFS protocol? What is maximum number of records returned by a Feature Layer in ArcGIS Server 10.1? What is maximum number of records the ArcGIS ...
3
votes
3answers
2k 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
1answer
108 views

“Combo-box” for ArcGIS Java script API (ver. 3.1)

I am using combo-box in ArcGIS Java script API (ver.2.8). When I update the version to 3.1 it gives an error "TypeError: _2d.store.query is not a function" Can anybody tell me that "Combo-box" ...