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

learn more… | top users | synonyms

0
votes
1answer
17 views

Is it possible to show multiple infowindow?

I just started working with API Arcgis. I can not find a way to leave open the popup that I add with: mymap.infoWindow.setContent(); I wish that every click of a POI then opened his infoWindow. Is ...
0
votes
2answers
11 views

Change output spatial reference for ArcGISTiledMapService

I'm using the New Zealand Topo50 maps for my basemaps from an ArcGIS map server at http://services.arcgisonline.co.nz/ArcGIS/rest/services/LINZ/geotiffs/MapServer. However, this service has a spatial ...
3
votes
0answers
17 views

Mousewheel event being locked by map

I've got a tabbed UI on my web page, the last tab is an arcgis javascript map built with their API. The problem I'm having is that just adding the map and all of the esri / dojo libraries to the page ...
0
votes
2answers
192 views

Identify task: Input polygon into IdentifyParameters

I wish to find all the features within a polygon/circle drawn by my user. May I know if I should use IdentifyTask https://developers.arcgis.com/en/javascript/jsapi/identifytask.html Or is there a ...
1
vote
0answers
72 views

ArcGIS JavaScript manually render a layer with supplied JSON

Given the following JSON which is retrieved outside the ArcGIS/dojo framework, how would I go about rendering this layer? Thanks in advance! { "currentVersion": 10.01, ...
2
votes
4answers
387 views

ArcGIS JSAPI draw toolbar tooltips not displayed in IE10

I am experiencing an issue where the draw toolbar tooltips are not displayed in Internet Explorer 10 when using the ArcGIS Javascript API. Try the following example in Internet Explorer 10 and ...
3
votes
2answers
44 views

Getting an error using ESRI's Javascript API

I am trying to display the query results of a button click on a map. I am getting the following error at this line: queryTask.execute(cntryq); of my script: TypeError {stack: "TypeError: ...
0
votes
2answers
24 views

How to set CSS for Samsung Note 3 in ArcGIS API for JavaScript?

I have an application that I would like to be rendered across multiple mobile devices, what is the correct CSS and HTML settings for this? Ideally, I would like it to render on iPhone 4-6S and ...
0
votes
1answer
240 views

Update multiple features attributes in loop - JavaScript

I am trying to update multiple features in a feature layer through a loop. I have a feature layer that I would like to select and then assign someone to the features (through an attribute update. I ...
1
vote
1answer
27 views

How do I get the legend from a ArcGISDynamicMapServiceLayer using esri javascript api?

So I've been using the ESRI Javascript API, so far what I've been able to do is create a map, fetch a layer from another source and combine them, but I'm stuck on grabbing the legend from the other ...
1
vote
1answer
23 views

Legend item resolution issues in ArcGIS Javascript app

When I create a pdf map using my JavaScript API app, the legend items have messed up resolutions when there are more than a few swatches in the legend layers: On the left: image of print with poor ...
0
votes
0answers
12 views

working with image service and mosaic rule lock raster method, how can the lock IDs be set by the user

I have an image service with many overlapping rasters that I have loaded into a map. I would like for the user to be able to choose which rasters they would like to view. I know I can use the mosaic ...
0
votes
1answer
47 views

No legend showing at all in ArcGIS Server print task (MapExport)

I am using some stock print templates like the 2 in this sample. The problem is that the legend doesn't show up at all. I found a few forum questions showing problems with the legend but none of them ...
0
votes
2answers
27 views

arcgis javascript api, cmv, incorporating custom search widget

I would like to add a custom search/geocoder widget to a cmv page, in addition to the geocoding widget that is already included with the source code. I have thought about modifying the existing ...
2
votes
1answer
128 views

Editing many-to-many relationship classes with ArcGIS API for JavaScript?

I am seeking some guidance on working with many-to-many relationship classes thru the ArcGIS Server Javascript API. I am designing a traffic count data management application. Count data locations are ...
0
votes
0answers
6 views

esri JavaScript Spatial Analysis Services: Select appropriate helper services url from Portal for requested operation

About 6 months ago I built a prototype JavaScript app which uses the spatial analysis service; FindNearest. Find Nearest. I've posted this on GeoNet but haven't had much joy there. The app ran fine ...
1
vote
1answer
37 views

How to find whether a Point lies inside a Polygon using ArcGIS JavaScript API?

We want to find whether a Point lies inside a Polygon. var point = new esri.geometry.Point(-85.91,25.68,this.parent.esriMap.spatialReference); var polygon = new ...
0
votes
2answers
54 views

Configurable Map Viewer (CMV) - Print Widget - Proxy Issue

I'm not sure this is necessarily an issue with the CMV as much as it is with how I may have the proxy configured. I'm not sure exactly what to ask so I'll start with describing the symptom. When I ...
0
votes
1answer
18 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
23 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.
0
votes
3answers
159 views

How to toggle ArcGIS webmap layers using ArcGIS Javascript API

I've created a webmap using ArcGIS Online that I want to render in a web app using the ArcGIS for Javascript API. In ArcGIS Online, I've saved the webmap with all of the layers off (visibility: ...
1
vote
0answers
8 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
votes
0answers
13 views

Using upload with ArcGIS JSAPI (with proxy) [closed]

Has anyone successfully used the file upload of ArcGIS's REST API using their JS API though a proxy?
3
votes
1answer
97 views

ArcGIS JavaScript API: onAnimate Error

I am trying to zoom to a point in ArcGIS JavaScript API (3.9). I am doing this one of two ways, I am either grabbing a point feature from ArcGIS Server (10.1), or I am grabbing the center of a polygon ...
0
votes
1answer
202 views

Add Point Symbol and Zoom to Address using Geocoder Widget

I'm following the tutorial here and it's not working: https://developers.arcgis.com/javascript/jstutorials/tutorial_geocoder.html Issue: I just want to add a point symbol and zoom in for the address ...
1
vote
1answer
22 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
91 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
51 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 ...
0
votes
1answer
261 views

How to add Map Legend, Scale Bar and Select tool to an ArcGIS Server Service?

I have published a service from ArcMap to my Server Account but I can't figure out how to add the legend, scale bar and select tool to the service. According to the published service it was built ...
1
vote
1answer
288 views

Fixed Zoom Extend For Overview Map on ArcGIS Server JavaScript API 3.8

Can some one please let me know if it is possible to have the Map Overview with Fixed extend and none zoom in or out functions? I know this was not possible on v.3 but how about v3.8? Thanks
0
votes
1answer
395 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
254 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
176 views

Flash a graphic using JSAPI AMD style

This should be simple, but not sure why I'm not getting it. Does anyone have a stub for showing how to flash a graphic? I want to be able to call it from a button in the JSAPI UI. I am using the AMD, ...
0
votes
1answer
86 views

ArcGIS Javascript How to filter TOC

I am very new to ArcGIS Javascript and have been reading some samples from the API. So pardon my ignorance and I hope I am asking the right question. I am using ArcGIS JavaScript 3.5 API and ...
0
votes
1answer
32 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
29 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
20 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
26 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
49 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 ...
0
votes
3answers
58 views

Measure Widget Issue - ArcGIS Javascript API 3.11

I am having an issue with the Measure Widget in my application after updating to 3.11. The widget does not appear after the application loads. I have checked my code and do not see an issue, also ...
0
votes
1answer
190 views

Error executing tool.: Layer “layer1” Unable to connect to map server

I am using the Configurable Javascript Viewer, and have only changed a couple of the configuration settings. One change I made was to use my own Export Web Map Task. In viewer.js, I changed: ...
1
vote
0answers
17 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
143 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
16 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
1answer
64 views

ArcGIS Web AppBuilder widget config?

I downloaded a webapp builder template (javascript) that I've placed on my own web server and is running fine. However, I am not able to modify the widgets in the config.json file to the settings ...
0
votes
1answer
55 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
47 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
414 views

ArcGIS Online Map using URL does not work with PhoneGap

I wanted to show my public accessible ArcGIS Online map with URL on a simple Hello World PhoneGap project with Eclipse. Eclipse threw out the following error in LogCat. Web Console:RequestError: ...
3
votes
1answer
64 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 ...