Tagged Questions

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

learn more… | top users | synonyms

0
votes
1answer
12 views

limiting circles to a specific radius

I am new to ArcGIS javascript api and I have created a map which allows users to draw circle geometries. I just want to limit the functionality so that the radius is specified at 10000km. This is ...
0
votes
0answers
4 views

Run TOC widjt in rtl language

I'm trying to make the TOC widjet to run from right to left, is it possible to achieve? and how?
0
votes
0answers
10 views

Esri API Web-Map and horizontal footer Scroller on Mousewheel

I am designing a webpage whereby the footer section of the page is to scroll horizontally, using the mouse wheel. There seems to be a conflict between the Esri library and the JQuery script I found ...
0
votes
1answer
9 views

Table Of Content widjet in arcgis javascript api

I'm using TOC widjet in my application using arcgis javascript api, it is working, but the problem is that the plus and minus images which collapse or expand the tree is not appearing. I noticed ...
0
votes
1answer
32 views

Configurable Map Viewer (CMV) - Configure dynamic layer to not display all sub-layers?

Using the example below, from the CMV, what would be the best way to not show the Fire Stations layer in the Louisville Public Safety map service assuming I wanted to see everything else and I wanted ...
0
votes
2answers
30 views

Basemap tiles are disjointed - bad projection?

Hi all, I'm working within a corporate environment that is using ArcGIS Server (v10.2.2). I am a newbie trying to work with ArcGIS API for Javascript (v3.9) to create custom map applications. I ...
3
votes
1answer
32 views

Can the Identify popup be made relocatable by the end-user?

I've noticed that the Identify widget's popup always tends to go right over the feature that is being identified and cannot be moved. Is there a way to enable functionality to move the Identify ...
0
votes
1answer
19 views

How to get spatial reference in ArcGIS Server identify response

I'm using the ArcGIS API for JavaScript to query features in a web map. After sending an identify request to my ArcGIS Server 10.2.2 Map Service (added as ArcGISDynamicMapServiceLayer, the response is ...
0
votes
0answers
33 views

Print map in arcgis javascript api

I'm developing an application, and I'm using arcgis javascript api, I'm trying to print the map using Print() object, but when pressing on the print button, it syas printing, and after amount of time, ...
0
votes
1answer
26 views

Set custom spatial reference to base map in arcgis javascript api

How can I set my spatial reference to the base map in arcgis api. I want to change the default spatial reference.
1
vote
0answers
30 views

Creating a buffer round a polyline

At the moment the code I use creates a buffer extending 1000km from each geometry creating square buffer zones over polygons, lines and points. How can I amend the code so that it creates a 'sausage' ...
0
votes
1answer
43 views

Error code 500, error performing execute operation from Print task of ArcGIS API for JavaScript?

I'm trying to use print task to generate a PNG or PDF file of my web map but i always get an Error code 500, error performing execute operation. Any Ideas? I'm using ArcGIS API for JavaScript ...
1
vote
1answer
14 views

Disabling a map in Javascript API

Here is my code for my map: omap = new Map("overviewMap", { extent: initExtent, logo: false, slider: false }); tmoverview = new ArcGISDynamicMapServiceLayer(mylayer, { "opacity": 1.0, "visible": ...
1
vote
1answer
28 views

Remove selected feature symbol

Background: I am dynamically populating a feature layer. On this feature layer I have set the symbol (as you can see) to a nice little .png image. Everything seems to work fine around the layer except ...
0
votes
1answer
20 views

Adding geometry.type circle

I have to amend the following code so that on the map it's possible to draw a second circle graphic as well as a line, polygon and point. I've tried to add an else if statement much like the polygon ...
1
vote
1answer
39 views

Center And Zoom function arcgis javascript api

I'm trying to insert x, and y coordinates manually through input text, and center the map and zoom it to that point. I have this code: var x = $("#x").val(); var y = $("#y").val(); var point=new ...
2
votes
0answers
23 views

feature layers don't appear in the print result

salam, I have a problem when I print my map, when I display the result I find only one feauture of twenty. the result does't contain all features. I used esri/dijit/PrintTask verifier: function(){ ...
0
votes
1answer
34 views

How to set scale range for a Graphic Layer in ArcGIS API

I am trying to set a Scale Range for a graphic layer using ArcGIS API in HTML5, so that the graphic layer is not visible on zooming beyond that particular ScaleRange. For the same I have googled and ...
0
votes
0answers
15 views

Multiple ArcGIS custom popup template

I'm trying to view Measurement widjet in popup using arcgis javascript api, how to achieve this goal? I did a popup info for layers, but I'm not sure how to do this when pressing on measurement tools ...
-1
votes
0answers
30 views

How to create if else statement for associated values in ArcGIS JS Application

I have an application where I would like to create a workflow where users must select a request type and in order to submit a request, at least one of the affiliated request type subcategories must be ...
0
votes
0answers
12 views

Adding an extra tooltip for addLine

I'm using the following code to include tooltips for drawing a point. I want to include a tootip for drawing a line - how can this be done? Can I just add an extra line for addLine at the end? ...
-1
votes
1answer
29 views

How to create if else statement for two combo boxes?

I have an ArcGIS JS API application where I have an "origin" combo box that must be populated for request type, in the following series of combo boxes I would like for a value to be chosen based on ...
1
vote
1answer
30 views

Proxy error with ArcGIS PrintTask - AMD

I am trying to add a simple layer of security to my ArcGIS JS app. I do not want to prompt my users for a login to retrieve a token. So instead I pass the username/password inside this PHP proxy: ...
1
vote
1answer
36 views

Arcgis API for Javascript: how to change color of simple point marker using colorpicker

as title states im having a hard time changing the color of my simplemarkersymbol using javascript. I have read that the format of color needs to be [r, g, b, a] which I have a color picker giving me ...
2
votes
1answer
36 views

Show an ArcGIS InfoWindow on Map Init

I have created a map with a simple marker at a specified location but I cannot figure out how to have an infowindow attached to the position open automatically on page load. This is my init function: ...
-1
votes
0answers
17 views

Toggle Map Service in Java script api --Jitender

<link rel="stylesheet" href="http://js.arcgis.com/3.11/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.11/esri/css/esri.css"> ...
0
votes
1answer
48 views

Create a tree view of layer groups and sub layers using ArcGIS JavaScript API

I'm trying to create a tree view of layer groups and sub layers, I searched Google, and I found something called the Table Of Contents widget. I couldn't use it, or in other words, I don't know how to ...
0
votes
1answer
42 views

Upgrade JSAPI version from 3.5 to 3.11

I am a novice getting started to work on a proof of concept to develop a web app powered by JS API. I have a prototype that was put together back in July 2013 with JS API version 3.5. See below for ...
0
votes
1answer
25 views

Get Group Layer children

I'm new to arcgis javscript api, and trying to get layers from a group layer. I'm not sure how to get this done. any help?
1
vote
0answers
16 views

Mobile Safari and ArcGIS JavaScript API Errors

So in creating an application that uses the LaywerSwipe widget the application displays fine on iOS but I am unable to move the scope or slider. I get the following errors from init.js : It keeps ...
1
vote
0answers
52 views

ESRI Javascript - Print Task GP Service - Symbology Issue

I am using the ESRI js API, and using a python GP service to run a print task to PDF with custom layouts. This works great, except when i have any map service enabled in the map. The layer in the ...
1
vote
1answer
40 views

Viewing Domain values as dropdown list in data grid in arcgis javascript api

I'm trying to view layer data in a data grid, everything is fine, but when the data contains domain values, its place stays empty, and does not view any data? any one can help how to view it? Or am I ...
0
votes
1answer
82 views

multiple graphics added to ArcGIS javascript API map are not printing (using MapExport) reliably

I combined samples for Printing with graphics https://developers.arcgis.com/javascript/jssamples/widget_print.html and labeling ...
3
votes
2answers
42 views

Geocode an address and then buffer

I have a script which geocode an address and buffer that address by 1, 5 and 10 mile radius. The problem I am having is that the address on the map shows 4 different points not sure what's causing it. ...
1
vote
2answers
54 views

ESRI JavaScript API FeatureLayer Click Event

I am using FeatureLayers in the API to load in a layer. I have an info template set for the layer for identifying individual features. I am trying to disconnect the click event from the layer while ...
1
vote
1answer
64 views

How to append result to Geocoder text box using ArcGIS JavaScript API?

I want to append result of a custom search in a Geocoder text box in ArcGIS JavaScript API by overriding the default result. I have written the below code for this, but I am not getting a ...
1
vote
1answer
84 views

Getting value coded of domain from map layer with arcgis javascript api

I'm trying to read domain values on a map, how to achieve this objective in arcgis javascript api? any help?
0
votes
0answers
12 views

Include Search option in table of contents

I am building an interactive map using ArcGIS javascript API and I want to provide the function to search by the layers in the table of contents. What's the best way to do this?
0
votes
1answer
34 views

Print Selected Area in Map in Arcgis javascript API

I'm working on arcgis javascript api, and I'm trying to implement a selection print tool, I'm new to this api, and don't know how to select area of the map, and after that, print the selected drawn ...
0
votes
1answer
28 views

Configurable Map Viewer (CMV) - Open Help on page load

I'm wondering, as opposed to opening the help dialog when the help link is clicked: var help = domConstruct.place(this.html, this.domTarget); on(help, 'click', lang.hitch(this.parentWidget, ...
0
votes
3answers
80 views

ArcGIS dynamic layers performance with many features to display

So we have data with over 10,000 features in a very small area of less than 50 acres or so and we are getting pretty slow performance of several seconds when the extent is changed via panning and zoom ...
1
vote
1answer
31 views

IdentifyTask for “hollow” polygon (using ArcGIS API for JavaScript)

I have a web map application set up that's currently testing on a variety of Dynamic Map Service layer types, including points, lines, and polygons. This application includes a tool that makes use of ...
1
vote
1answer
23 views

How to join the shape to an external data

I'm developing an application that uses Shapes only to draw the map. I would like to "Inject" the data at the time of viewing, since my data is dynamically changing. Anyone know of any way of doing ...
0
votes
0answers
80 views

Navbar on ArcGIS JS API causing locator to behave buggy

I have added a nav bar with combo boxes to extend an ArcGIS JS API application further. When a location is selected on the map the point does not appear and I receive this error. Failed to get text ...
0
votes
0answers
17 views

Bug with Editor Widget (disappearing custom fields)

I may have found a bug with the Editor Widget in the JS API v3.11; I've tested this in IE9 and IE11, and it doesn't occur in the latest versions of Firefox and Chrome. The customFields disappear when ...
0
votes
1answer
23 views

ArcGIS js API create map layer from shapefile?

I have a couple of shapefiles that i'd like to display in a map that i've created with the ArcGIS js API. I tried creating a service from ArcGIS server but ran into "ArcGIS cannot access the data ...
0
votes
1answer
32 views

Is it possible to make a stackable label with the ESRI Labellayer

I'd like to add a line break, but the textstring is always taken literally. For example: labels.addFeatureLayer(states, statesLabelRenderer, "Line 1 \r\n Line 2"); is displayed on the map as: "Line ...
1
vote
1answer
49 views

ArcGIS Javascript API: Adding a shapefile with more than 1000 points

I am able to add shapefiles with less than 1000 points by using the ArcGIS Portal REST API as shown in this example: https://developers.arcgis.com/javascript/jssamples/portal_addshapefile.html ...
2
votes
0answers
52 views

Unable to print feature layer from my ArcGIS Server

I am trying to print a map that I made with ArcGIS Server 10.2 and ArcGIS javascript API. If I remove the layers from ArcGIS Server it works (with ESRI basemap) The problem is that I keep getting an ...
5
votes
0answers
60 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 ...