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

learn more… | top users | synonyms

1
vote
2answers
92 views

How to create an if else condition with ArcGIS JavaScript API combo boxes?

I have an ArcGIS JavaScript API Web App that uses multiple combo boxes. I would like to create an if-else conditional statement between two fields in my feature layer. If one field is chosen in ...
1
vote
2answers
89 views

How to use same info window setup for more than one layer with identify, arcgis javascript api, cmv template

I am new to javascript and am playing around with customizing the CMV template https://github.com/cmv/cmv-app. I am trying to customize my info windows for my layers, and have had some luck modifying ...
1
vote
1answer
108 views

Polygon using ARCGIS API for javascript

I've polygon data as POLYGON ((1645481.0939999996 6124506.9885, 1645470.0473999996 6124473.5406, 1645475.7094 6124440.1391,1645481.0939999996 6124506.9885)) in wkid=2193 I want to project ...
0
votes
0answers
29 views

How to Destroy Widget embedded within infoWindow?

I have a custom info window window with an image displayed using the link from the field. Everything works fine except the fact that I get a warning as below: An error occurred when destroying a ...
2
votes
0answers
30 views

Project a polygon on new spatial reference using ARCGIS API for JavaScript [duplicate]

I've polygon data as POLYGON ((1645481.0939999996 6124506.9885, 1645470.0473999996 6124473.5406, 1645475.7094 6124440.1391,1645481.0939999996 6124506.9885)) in wkid=2193 I want to project ...
0
votes
1answer
46 views

ESRI Online Geoenrichment POST

've been working on an app for a presentation and we are using ArcGIS Online to geoenrich Canadian Census Dissemination Areas upon the users click. The only catch here is that some of the polygons are ...
1
vote
1answer
51 views

Perform non-spatial queries on DB tables of a RDBMS connected with arcgis

Is it possible to use the arcgis infrastructure so as to perform queries on DB tables that do not contain spatial information? For example, considering I have a RDBMS where I have a table namely ...
0
votes
4answers
116 views

How to set map extent in Arcgis javascript using spatialReference 4326

I am using Arcgis Javascript API for my map and the map is coming from Arcgis online usng map by ID. Here is code var startExtent = new esri.geometry.Extent(52.37615, ...
1
vote
1answer
42 views

Adding multiple addresses - ArcGIS Javascript

I am trying to use ArcGIS Javascript API to add all of the service orders that are open to a map. I can get this to work with a single address, but it is not working when I try to loop through a list ...
1
vote
0answers
33 views

how to finds draw extents includes my point extent in openlayers3

i draw a DragBox on openlayers map and when i use drawend event, i can see thats extent. and i have some point on my map. my point is selected in EXTENT want to check whether with using openlayers3 ...
0
votes
1answer
90 views

How to set center of map in ArcGIS API for JavaScript using Lat Long?

I am using Arcgis javascript API for my map where map is coming from arcgis online using map by ID. Now I want to set map center using Lat long,For this I am using this method to set map center ...
1
vote
3answers
148 views

Project Point using ArcGIS API for JavaScript?

I've to project geometry point Point(1657272, 6100874) with NZTM, WKID: 2193 But, point is shown near Austria, not on NewZealand maps. I've converted above coordinates to geographic, still its ...
0
votes
0answers
35 views

How to combine two arcgis javascript functions with coded domain values for combo box dropdown?

I have a function which calls a layer that has a domain and coded value. I would like to create another drop down menu which shows the priority of these domains(service orders). My js file ...
2
votes
1answer
47 views

Mobile Template - ArcGIS API for JavaScript

I added dynamic map service to the mobile template from esri. However, I see couple issues. 1. map does not cover full screen (when vertical). 2. background shows black on mobile browser (chrome). ...
1
vote
0answers
29 views

view attributes from feature service and export to CSV or copy to clipboard

I have a Geo-Processing service that generates summary statistics of an area of interest. What I would like to know is; Simple method to display the data in my Webpage. Is Dgrid the recommended ...
1
vote
0answers
58 views

Printing from Feature Layer via ArcGIS API for JavaScript?

I am trying to print a map using a print service. I have followed the example on the ArcGIS site namely: https://developers.arcgis.com/javascript/jssamples/widget_print_esri_request.html However I ...
1
vote
2answers
215 views

Adapting ESRI ArcGIS API for JavaScript Feature Layer With Selection sample for use in Configurable Map Viewer (CMV)

I am trying to build my first widget, for use in the Configurable Map Viewer (CMV), using code from ESRI's ArcGIS API for JavaScript feature layer with selection sample. I've been successful in ...
1
vote
1answer
27 views

Legend hangs with large featurelayers at startup

My problem is that I created an app with a lot of services that the user can use. The problem is that when I implement the legend widget and the code goes over startup(), the app becomes stuck and it ...
0
votes
0answers
32 views

What would prevent ESRI JSAPI AMD modules from being cached?

I am using AMD style in the ESRI Javascript API (along with the esri application boilerplate: https://github.com/Esri/application-boilerplate-js). For some reason, the AMD modules from the ...
3
votes
1answer
120 views

Best Practice for HTML5 Geolocation with ArcGIS for Javascript API

My organization would prefer to use its own basemaps rather than those provided by ArcGIS Online due to the accuracy of information that is represented in them. The area we service is rapidly ...
2
votes
2answers
75 views

What is the proper “title” property for the Terrain with Labels Basemap?

EDIT: Actually this posted link ended up helping me quite a bit but don't mark it as duplicate because the problem I had using it stemmed from needing to define the map before defining the ...
1
vote
1answer
20 views

Problem migrate 3.4 to 3.6 or upper JS API

I have a problem when I tried to migrate from 3.4 to 3.6 or upper. I can see the map but once all is loaded the page becomes blocked, also the web browser. I can put more information, because the ...
2
votes
1answer
133 views

Configurable Map Viewer (CMV) - Navigation Toolbar Widget - Zoom box issue in IE10

In playing around with adding the Navigation Toolbar Widget to the CMV I noticed the zoom box doesn't show when dragging a box to zoom in/out in IE10 (the red box). It works as expected in Firefox, ...
1
vote
0answers
88 views

ArcGIS JavaScript API Help

Kind of learning on the go here. My initial goal here is to allow a person to put a point on a map fill in the form, then close the form. I do not want them to be able to click other points to see the ...
0
votes
3answers
140 views

Setting initial extent in Configurable Map Viewer (CMV) via ArcGIS API for JavaScript API?

I've been playing around with the Configurable Map Viewer (CMV) and would like to set a custom initial extent. I was thinking I could replace center:[-96.59179687497497,39.09596293629694] with ...
2
votes
1answer
106 views

Changing the cursor on an ESRI map

We are building an app starting from the ArcGIS Tax Parcel Viewer. I have added buttons to allow users to switch to Street View or Pictometry when they click on the map. All that is working fine, ...
0
votes
0answers
23 views

Return coded value descriptions in an InfoTemplate

Using the ArcGIS JavaScript API, I've assigned an InfoTemplate to a feature layer. For fields with a coded value domain, the popup is displaying the coded value rather than the description. I have ...
0
votes
0answers
27 views

PictureMarkerSymbol disappears when map is dragged

I am creating a Picture Marker Symbol object and adding it into graphic layer. It shows up when loads and 80% of the time when map is dragged it shows up as well. But sometimes Picture Marker Symbol ...
1
vote
0answers
31 views

Retrieve the attributes from a feature with IdentifyTask/IdentifyRequest (Javascript API)

So I'm building a GIS web application. I am able to get the result from IdentifyTask with the "oncomplete" function, the problem I am running into is how I can get the information back out of the ...
0
votes
0answers
31 views

How to set CSS for iPhone 3 and 4 Esri applications?

I have an application developed with a Local Government template. It renders fine on a Samsung Note, meaning that my title bar appears. On an iPhone the title does not appear. Below is my CSS which ...
0
votes
0answers
98 views

Layer Definition Query - Subqueries

Background: I want to track the movement of icebergs in ArcGIS. In my FileGeodatabase I have a single Iceberg layer. What I have thought of is to create an ID field for each object; each ArcGIS ...
1
vote
0answers
47 views

Increase maximum zoom level for a WebTiledLayer in ArcGIS

I am using the WebTiledLayer from the Javascript ArcGIS API to render a custom WMTS source. The WMTS I am using has zoom levels going from 18 to 21, however I cannot zoom in further than what appears ...
1
vote
0answers
77 views

Map Service Works in Flex, Won't Display using JavaScript

As the title states, a map service published on my server displays and can be identified just fine when added to a web map in Viewer for Flex. I am slowly learning to use the API for JavaScript. My ...
-2
votes
1answer
40 views

Using JS SDK API Locally

I saw the documentation and notice that the SDK download link is live to esri server, can we download the SDK and setup in local environment? Please suggest? If YES, how to change the config so that ...
0
votes
0answers
64 views

Drop down menu not populating for ArcGIS JavaScript API Application

I am using this template http://localgovtemplates2.esri.com/publicinfocenter/default.htm When editing the config.js which is in JSON format, the parameters are { Key: "Key", ...
1
vote
0answers
44 views

How to Retrieve field name from Uploaded Excel file using ArcGIS Javascript?

I published GP Service which involves uploading data to the server using Upload feature of 10.1. I wrote the code for getting the itemID of the uploaded file. I wanted to have user select the X and Y ...
1
vote
0answers
18 views

Hide labels for features without data

I have a FeatureLayer that uses a ClassBreaksRenderer. The renderer loads data from a collection like so: var renderer = new esri.ClassBreaksRenderer( null, function (graphic) ...
1
vote
0answers
46 views

export map state as JSON: Web_Map_as_JSON

Is there a way to export the current map state as a JSON object, mostly named Web_Map_as_JSON. The JSON specification should be like this. In other words, it would be convenient to have a function ...
4
votes
1answer
128 views

How to disable double-click zoom in Arcgis Javascript API

I am using ArcGIS java script API for creating map. I am trying to disable the double-click zoom in the map. Here is link of my map: http://urbanaccessregulations.eu/mindcrew/mobile-popup.html I used ...
1
vote
1answer
107 views

Using feature service with JavaScript API and ArcGIS for Server on localhost?

I installed ArcGIS 10.2 for Server on my localhost and created and published a feature service on it. Now I want to use the feature service I created on a simple html page using Javascript. How can I ...
1
vote
0answers
27 views

How to pre-populate JavaScript forms in ArcGIS Web Application?

I have an ArcGIS web application and would like to pre-populate order numbers. Say if order 1 has been entered for a point on a map, when the next point is added, order 2 would populate ...
0
votes
1answer
80 views

Export my map in various formats

I want to implement a sort of content negotiation so as to export my map in formats like pdf jpg etc. Is there any way to export my current map view (with all the enabled options so far) in various ...
2
votes
2answers
63 views

Layer vs. Color Transparency with ArcGIS Javascript API

When creating services with ArcGIS Server, I have paid attention to the warning that Layer Transparency will make response time slower and that I should change to color transparency instead so I have ...
1
vote
1answer
63 views

Compare two feature layers

I have a base layer on top of which I will plot two separate feature layers, one containing polygons and the other containing points. Now I have to find the points which plot into the polygon. I tried ...
2
votes
0answers
110 views

High-DPI printing with ArcGIS API for JavaScript and esri.dijit.Print?

I've got cached tiles for all map layers at various zoom levels, and would like to print at DPI higher than the default (around 96) by using tiles from a deeper zoom level. It doesn't matter if map ...
2
votes
2answers
120 views

Create a web application with ArcGIS Server

I have a question about ArcGIS server: I want to make an application for users who can search for proper houses, like a house-finding engine, and I published my map to ArcGIS Server but how can I ...
1
vote
1answer
120 views

ESRI JS API : FeatureLayer : pure client side query?

so I've created this wrapper around feature layer where I create the empty feature layer as is in the API help page : new FeatureLayer(featureCollectionObject, options?) providing the first ...
0
votes
0answers
49 views

ArcGIS API for Javascript: Time Aware KML Animation

I am using ArcGIS API for Javascript. I would like to know how to animate a KML file with time-aware ground overlays using the built-in time slider?
3
votes
1answer
69 views

Change projections depending on the zoom level

Is it possible in ArcGis (from a technology/performance/… point of view) to switch projections depending on the zoom level? For example, Is it possible when zooming at some extent to the poles, my ...
4
votes
2answers
65 views

tabbed popup window for Arcgis Javascript

Anyone know examples of a tabbed popup window for Arcgis for javascript, NOT an infowindow? If you could point me in the the right direction it would help.