Use this tag when ArcGIS API for JavaScript is the web mapping API that you are using from the ArcGIS platform.

learn more… | top users | synonyms

2
votes
3answers
69 views

Configuring ArcGIS Online Map Template

I'm creating a configured template to host to ArcGIS Online. I started from the Finder app, and configured simple things like the color scheme. My only problem is that the Share button isn't ...
2
votes
2answers
64 views

Basemap layer disappear on print. Only happens with max zoom

I am fairly new to arcgis, please bear with me here. ISSUE: I uses standard esri.dijit.Print for map printing. The base map displays normally in my map pane at all zoom levels. The printing ...
2
votes
1answer
162 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 ...
0
votes
1answer
40 views

Receiving dojo.io.script error Error: Invalid URL?

I am trying to get a buffer circle on my map,when I click on map. I tried with the following code, but I got error: dojo.io.script error Error: Invalid URL How can I avoid this error? ...
12
votes
3answers
5k views

How to Identify layers from multiple ArcGIS Server instances

This applies to ArcGIS Server 9.3 with the JavaScript API 2.4. My goal is to click on the map and have the Identify task run on all visible Dynamic layers. IdentifyTask requires a URL to the REST ...
1
vote
1answer
47 views

Renaming print task URL of ArcGIS API for JavaScript?

I have simple print task using ESRI javscript API PrintParameters, PrintTemplate and printTask. Its working fine. Its return URL like this: ...
0
votes
1answer
198 views

Plotting GeoJSON data on map using ArcGIS API for JavaScript?

We are developing the portal in which we are using Arcgis javascript APIs.The requirement in our project is one of the weather provider is going to publish the webservice which will return the weather ...
4
votes
1answer
173 views

Why does a cache service need to load first when a dynamic service is involved?

I notice if you have 2 services 1 cached and 1 dynamic you have to load the cache first for it to display. Does anyone know why?
0
votes
1answer
28 views

Selected Feature not highlighted in map of CMV (Configurable Map viewer)

I have copied the whole code of Find widget and added it into another widget. First widget is working fine and highlighting the feature(creating feature from geometry), second widget is also working ...
2
votes
1answer
190 views

10.3 js callback appended to query call not working

I have two 10.3 ags servers that i thought were the same. But on one i can send this request to the rest api endpoint and it does not work: ...
3
votes
3answers
2k views

ESRI proxy page not working properly + CORS + cross domain scripting

I have set up a proxy page. I am using jsp version of proxy page. I have set up a server URL which will point to my Java. When I load the my page which the proxy URL has set in its html it will work ...
7
votes
1answer
296 views

Duplicate items in the legend

I have recently created a web map that uses the legend snippet from the ESRI JavaScript API website. https://developers.arcgis.com/en/jav...et_legend.html It works great for the most part, but has ...
4
votes
1answer
31 views

How to handle two onclick events that not both are fired?

I make a web application with ArcGIS API for Javascript (version 3.15) to access a geoprocessing service. The service is executed on an onclick event by the user, because the clicked position is used ...
1
vote
1answer
49 views

ArcGIS API - Creating Popups for Geoprocessing Result

With the ArcGIS API for Javascript I created a web application that accesses my before published geoprocessing service. The result of the service are a set of points and are displayed on the map. Here ...
4
votes
2answers
2k views

ARCGIS Javascript API Feature Layer retrieval

I would want to develop an application where we could query the layer based on a result set of certain attributes of the features and highlight features. Approach Currently I tried using the feature ...
2
votes
2answers
167 views

How to prevent ArcGIS JS map from failing when using a Bootstrap “hidden” class?

I'm trying to put an ArcGIS Server JS API map within a div with a hidden-sm class in Bootstrap 3, so that the map is not shown on small devices. <div class="row"> <div class="col-md-4 ...
2
votes
2answers
60 views

Using legend with dijit/form/DropDownButton in ArcGIS API for JavaScript?

I am very new to the ArcGIS API for Javascript and am by no means a programmer. Nonetheless, I have been fairly successful at finding existing code and modifying it to my needs. That is, until now. I ...
0
votes
1answer
856 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 ...
0
votes
3answers
179 views

What are the low cost options for converting FLEX API based web mapping applications to any other platform? [closed]

As flex is reaching the end of its life, I have one project to convert Flex based web mapping application to any other possible solution with minimum development effort and secure way. I believe Dojo ...
1
vote
1answer
34 views

Histogram Time Slider in Legacy Style ESRI JavaScript API

I tried to modify the sample code Histogram Time Slider ArcGIS API for JavaScript from AMD to Legacy style. However, I found the histogram was not shown in the bottom in the application (link listed ...
0
votes
1answer
37 views

Get JSON WebMap from ArcGIS JavaScript API Map object [duplicate]

I'm trying to get a WebMap object (as JSON) from a JavaScript Map object in the ArcGIS JavaScript API. Is there any way to do this within the API, without using ArcGIS.com? Ideally something like: ...
1
vote
1answer
34 views

How to make the map auto fit the available div area in full view. Is auto-repeat possible to fill white gaps

I need to show the entire world, but my map is very small at the zoom level 0 and 1. As a result it leaves white gaps and looks ugly. Is there any way to tell the map to auto-fill the white area with ...
2
votes
2answers
4k views

How to zoom to the extent of a query result

Does anyone know how to change the extent on the map in function of a query? in legende I have no problem using the function showResults (featureSet) {... but, can not get any display in AMD. Here ...
2
votes
0answers
86 views

dojo/request a png image array buffer using NodeJS, and return the image to the client

I am attempting to request a png image using NodeJS and dojo/request from an ArcGIS Server REST feed, and return the image to the client. I need nodeJS to add a token to the request as a query ...
0
votes
2answers
6k views

How to convert AutoCAD file to Shapefile for map from ArcGIS API 3.2 for JavaScript?

I have an AutoCAD file that I want to convert to Shapfile to appear in a map by API for JavaScript in .net. What do I do?
3
votes
2answers
54 views

Retrieving geoprocessing results in ArcGIS JavaScript API

I'm executing a geoprocessing script in an ArcGIS JavaScript API map viewer, and it works until I attempt to read the job's output parameter. My script: function extractModel(results) { var ...
0
votes
1answer
39 views

Different colors in the same layer

I have an app that is consuming ArcGIS REST Services through the ArcGIS JavaScript API (10.2 or 10.3). One of the available layers contains several Polylines. These lines belong to different groups, ...
1
vote
1answer
56 views

Add a canvas on the map that can pan and zoom along with it

I want to know if it's possible to add a canvas on a ArcGIS map that can pan and zoom along with it. The reason I ask that it's because we have different workflows where we have a lot of entities ...
4
votes
4answers
720 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 ...
5
votes
1answer
2k views

Setting map rotation in ArcGIS API for Javascript?

I've created a web map using the ArcGIS Javascript API, but I need my map to have a fixed rotation of 1.76. The street grid of the map doesn't totally align with the cardinal directions, so it looks ...
1
vote
0answers
53 views

ArcGIS API for JavaScript census info popup and parks popup one map?

I have two operational ArcGIS API for JavaScript maps that I want to combine to have two different popups. I am trying to figure out a way to add the number of parks to the census popup that would ...
0
votes
1answer
36 views

Retrieving User Input using ArcGIS API for JavaScript?

I am using the ArcGIS API for JavaScript to build a web application. Within the web app a geoprocessing service is executed which requires an input that is user dependent. I thought of a text box ...
10
votes
5answers
3k views

CORS issue ArcGIS 10.1 IIS (Cross Origin Resource Sharing)

I have ArcGIS 10.1 installed with the web adapter for IIS. I've added a config file to the root of IIS7 to enable Cross Origin Resource Sharing (CORS) as per this page. I've pushed the cors enabled ...
1
vote
1answer
22 views

getSymbol of FeatureLayer

I'm working with the arcgis javascript API on a webmap. I have a feature layer on some server which I'm consuming in my webmap and now I want to get the different symbols/icons of that layer one by ...
0
votes
0answers
5 views

CartographicLineSymbol with caption

I can draw CartographicLineSymbol (lines) over the map. Now I have so many lines there, so I would like to add captions to the lines using. Is it possible? How?
2
votes
2answers
197 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
0answers
67 views

Plotting points with ArcGIS API for JavaScript

I have set some latitude & longitude values that I would like to show on my heated map using "Esri/geometry/Multipoint". I have specified some json data in a variable called mpJson that I would ...
1
vote
0answers
19 views

ArcGIS Javascript Legend widget does not show full color ramp

Has anyone used the legend widget with raster map services? I have created a GP service that returns raster maps, but the legend is incomplete. The ArcGIS layer properties are shown here, and below ...
0
votes
1answer
17 views

selectFeatures Javascript Removes Feature

Hi I've been messing around with linking up a dgrid to select a feature layer and then fire an info template. When it fires, it removes the selected point feature. Right now I have it set to when ...
1
vote
0answers
21 views

Getting Z component from point in ArcGIS API for JavaScript?

I am trying to get the z value from PointZ geometry from an ArcGIS map service, using the identify task. Setting returnGeometry=true only returns XY even though the Z value is there. I can see the z ...
0
votes
1answer
30 views

Cannot read property 'on' of undefined

while clicking on the button on.click event is not fired and getting error "Cannot read property 'on' of undefined",how to solve this issue. Simple Map html, body, ...
0
votes
0answers
22 views

toggle the same layer with a query, Layer Control widget swipe option

I want to alternate the same layer with a query to the geodatabase , if there is one line over another, to see the differences separating them with the swipe option, but I have no idea how to start , ...
0
votes
0answers
272 views

Mouse hovering on KML layer in ArcGIS API for JavaScript?

I am using ArcGIS API for JavaScript for map. i want show an popup info window when mouse hover on kml layer. I am trying this code for and using mouse-over event , But this is not working on kml ...
2
votes
1answer
59 views

Should ArcGIS change the path of a gdb to the server data store when publishing a GP service?

I've published a GP service to ArcGIS server and it fails when I try to run it. The workspace is a file GDB on the local network, and the script contains a UNC path to it. There is a copy of the data ...
7
votes
2answers
800 views

ESRI JS API, how to disable panning with the numeric keypad?

We have a web-based mapping application that uses the ESRI JS API. We would like to disable panning with the numeric keypad. There is a method in the API, esri.Map.disableKeyboardNavigation(), that ...
0
votes
1answer
26 views

CMV Geocoder widget - adding a location symbol

Is there a geocoderOption to have a symbol dropped on the map for a location searched for with the CMV Geocoder widget?
28
votes
3answers
2k views

Is there a “Select by Attributes” plugin/widget for ArcGIS Server JS API?

I'm hoping to find some existing code which emulates the "Select by Attributes" dialog in ArcMap, within the ArcGIS Server JavaScript API. Writing a hard-coded QueryTask is easy - I'm looking for ...
0
votes
0answers
16 views

Creating Bar Chart in standalone div in arcgis Javascript app?

I want create an application in arcgis javascript in which a bar chart in a standalone div is placed on the map. I saw lot of examples its only showing chart in an info window.
3
votes
2answers
61 views

Why does local ArcGIS API for JavaScript over https trigger info request over http?

I got the esri js api 3.14 deployed on a server and an application that is reachable over https. Now I got a proxy script that delivers the map requests. When you look at the requests of the page ...
3
votes
1answer
466 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 ...