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

learn more… | top users | synonyms

0
votes
1answer
65 views

zoom rubber band missing in IE11 with esri js api 3.10

I am no longer seeing the rubber band in the browser when a user does a zoom operation where they can draw their zoom extent. This started breaking when i added in a X-UA tag = 'Edge'. I am testing ...
2
votes
1answer
42 views

Finding Distances in Spatial Query - ArcGIS Javascript

I am running a spatial query based on a buffered location (e.g. user clicks map, point is buffered and points from feature layer are queried within buffer). Has anyone run something similar but also ...
3
votes
1answer
4k views

How to add or remove layers using ArcGIS API for JavaScript?

I want to use javascript and dojo to add and remove layers.
1
vote
0answers
10 views

Making attribute features pop up in a static location

I am writing an ArcGIS application that has a 20% left pane div and an 80% map div. The left pane div has four tabs: one for layers, one for search, one for what I want to display information, and one ...
1
vote
1answer
38 views

Make FeatureClass that has a FileGeodatabase data source editable?

I wasn't able to find any documentation on this, but is it possible to use the Editor widget in the Esri JS API to edit a FeatureLayer whose data source is that's stored in a FileGeodatabase? I've ...
2
votes
4answers
124 views

How to perform relational queries against an ArcSDE geodatabase using the ArcGIS API for JavaScript?

I have a geospatial database which contains both spatial and not-spatial tables I would like to publish my data on ArcGis for server and perform both simple and spatial queries. Also, foreign key ...
1
vote
1answer
71 views

Why do I have to reload the page, to show the Map correctly?

I added a map, in the way I'm supposed to, but why do I have to reload/refresh the page, to get the map (almost) as I want to? This is, what I mean: Map before reloading the page: Map after ...
2
votes
1answer
582 views

set infoTemplate for various graphics in graphics layer in loop

I am successful at getting an info window pop up on the event click of a marker on a map. Now, what I'm having trouble with is passing unique information for each graphic in the loop to the individual ...
0
votes
1answer
303 views

Adding OGC complaint WMS Aerial Images as Base Maps using arcgis javascript api

I have an WMS layer which is a cross domain resource and I wanted to embed those layers as basemap in my application using JavaScript api rather than using built in ArcGIS Basemaps. WMS Layer is ...
0
votes
1answer
44 views

different browsers referencing different css files, arcgis javascript cmv

When I open a page in chrome, and click on a feature the popup style is coming from one css file, and when I do the same thing in firefox, the popup looks completely different and is referencing a ...
0
votes
0answers
37 views

How to link two combo boxes in ArcGIS JavaScript API

This is related to this question: How to create an if else condition with ArcGIS JavaScript API combo boxes? A few parameters have since changed; Now the layer references multiple fields which should ...
0
votes
0answers
21 views

Use pdf file from a network drive to use it in webmaps without creating Virtual directory?

I would like to include some pdfs, docs, images etc stored in the network drive in webmap popups. I don't want to create a virtual directory in IIS and expose it (which is rather easy). What are the ...
1
vote
1answer
70 views

Configurable Map Viewer (CMV) - Content Pane with CMV

I’m upgrading from the old viewer to the new CMV version. Is there a better way for handling a content pane in the sidebar under the new format? In the previous version I did it thru the controller, ...
0
votes
1answer
68 views

ESRI ArcGIS JavaScript API - get client ip address

I have a need to direct to url a if the client is inside the local area network or url b if the client is outside the lan. Is it possible to determine a client ip address using plain old html and ...
1
vote
0answers
26 views

Generating a Placemark (Google Earth) via information link

I'm using the ArcGIS JavaScript API. I'd like to have an infowindow pop up that has a link to a downloadable KML placemark. Is this possible without pre-generating thousands of individual KML files? ...
1
vote
2answers
214 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 ...
0
votes
0answers
17 views

Problem with displaying a route in EU, method works in USA

could anyone help me with my code to create a route between two directions in Germany? According to instructions I am creating a route task and setup parameters: map.addLayer(new ...
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 ...
3
votes
1answer
84 views

Esri basemap render speed abnormally slow in Chrome

Summary of Issue: In my project, using the oceans basemap from Esri is very slow to render when zoomed in very close (for Chrome only). Topo is also slow at high zoom levels, but it is bearable in ...
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 ...
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 ...
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 ...
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
113 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, ...
2
votes
1answer
160 views

using REST “delete features” in arcgis api for javascript

I am developping a web application that uses a feature service, what i want to do is save the data in the feature server, and then delete all the features at the start of the application. I am able to ...
8
votes
3answers
2k views

How to query all records (>1000) and export to csv?

I posted in arcgis forum but never got any answer. Can anyone tell me how to solve this? Assume you have a vehicle tracking records from Oct.1 to Dec. 31 with wind speed information. All data is ...
1
vote
2answers
412 views

ESRI JS API - How to get event object from Draw Toolbar onDrawEnd

I am using the Draw Toolbar in the Esri Javascript API v3.4 and connecting to the onDrawEnd event using aspect.after(drawingToolbar, "onDrawEnd", drawEndHandleFunction, true); I am using the Draw ...
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
3answers
146 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
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
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 ...
2
votes
1answer
131 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, ...
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). ...
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 ...
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 ...
1
vote
1answer
54 views

Sending e-mail on feature update in ArcGIS JavaScript application?

We have an ArcGIS feature service that users can edit to change a "project status" attribute. An example would be a change from "pending" to "in-progress". Certain groups need to be notified when ...
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
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 ...
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 ...
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
1answer
563 views

Loading group layer in ArcGIS Map Service?

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 ...
1
vote
0answers
86 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 ...
4
votes
2answers
2k views

Auto resize map to 100% after content pane is removed in ArcGIS JSAPI

Been at this for hours and I can't seem to figure it out. I'm using AG-JSAPI 3.6 I have a map layout with a bordercontainer and two contentpanes, One is the map div and the other is the left div ...
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
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, ...
6
votes
2answers
281 views

Web_Map_as_JSON from latest esri jsapi?

I'm trying to do a print export using arcgis 10.1 and latest esri jsapi. Is there any out of the box way that I can extract out Web_Map_as_JSON from a given webmap? esri.tasks.PrintTask generates a ...