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

learn more… | top users | synonyms

0
votes
1answer
42 views

How to hide labels in ArcGISDynamicMapServiceLayer

Hi guys does anyone know how i would go about hiding labels in a ArcGISDynamicMapServiceLayer? This is part of my code so far: var routeLayer = ArcGISDynamicMapServiceLayer(...); ...
1
vote
1answer
140 views

Map Spatial Reference

I was having some trouble when trying to zoom to certain point in ESRI base map. So basically I got an ESRI base map and added a map overlay on top of it: function setMap() { function init() { ...
2
votes
2answers
97 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
105 views

Javascript API: How can I change renderer on the fly with feature layer hosted on ArcGIS Online?

I am new to Javascript and somewhat new to GIS (especially web applications of GIS). I'm trying to understand how I can have a drop down menu or html buttons to change which data is rendered in my ...
0
votes
1answer
74 views

Configurable Map Viewer (CMV) - average the values of the points

I have been able to select points and find the sum of the points. What I really need is to average the points. Here is my (acquired from someone else) code for finding the sum. define([ ...
0
votes
1answer
55 views

How to avoid Cross Origin problem when trying to use ArcGIS Online Geocode server?

I'm trying to use a javascript locator object with a geocode server of ArcGIS Online: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_EU/GeocodeServer When I call the ...
0
votes
0answers
37 views

Legend label failed to send to the print service using ArcGIS javascript

I am try to print my map with legend to PDF format; however, the legend label in the PDF is saying Override 1 instead of the label I specified in class breaks. There are other maps I can print ...
1
vote
1answer
41 views

Polyline graphics not displaying in Javascript API?

I am getting features (graphics) back from an IdentifyTask, setting a symbol and adding to a graphics layer. Polygons and points show up just fine, but not lines. Has anyone else encountered this? ...
1
vote
1answer
92 views

Configurable Map Viewer (CMV) - select by drawing polygon around points, then average the values of the points

I have seen this question and have tried the code suggested: Adapting ESRI ArcGIS API for JavaScript Feature Layer With Selection sample for use in Configurable Map Viewer (CMV) But I have been ...
3
votes
2answers
150 views

Automate testing of web app based on ArcGIS JS API

So, there are multiple products that can let you automate testing interaction with web pages. I have used Selenium IDE for some time now and it works great for creating unit tests for HTML elements on ...
2
votes
0answers
53 views

ArcGIS Server Map Service - Best Way To Visualize Coincident (Identical) Point Features

I have an ESRI Map Service serving out several point layers with 10k+ point features. Because of these high feature counts, I use a dynamic map service where a symbolized image is generated on the ...
1
vote
1answer
55 views

Filter Geocoder by Country

I'm trying to filter esri's geocoder for a specific country. I've had some success, but nothing works extremely well. I would have thought simply adding sourceCountry = "xxx" to the parameters of ...
1
vote
1answer
160 views

ArcGIS javascript API setDefinitionExpression returns wrong result set

New to GIS and ArcGIS. I am trying to use the javascript API setDefinitionExpression to limit the output of a FeatureLayer on the map; however, the result set returned by the function is incorrect. ...
0
votes
1answer
45 views

Trying to add graphic to query result

I'm pretty new to javascript and have some code that zooms to a query results extent, but I also want to highlight the query result. Console.log shows I'm returning an object but i cant seem to add ...
1
vote
1answer
111 views

Programmatically access a declarative ToggleButton

I've just started with Dojo/Javascript and even though I kind of understand all the AMD way of coding, I keep getting stuck on these (probably) easy things: how can I programmatically access a widget ...
1
vote
1answer
41 views

Create event handler for “x” button on type: 'floating' widget?

How do you create event handler for "x" button on type: 'floating' widget? "OnClose" fires every time: this.parentWidget.hide(); is called. I want to intercept the event when the "x" button in the ...
0
votes
1answer
57 views

How to set the map extent so as to show conccurently all the features included in different map layers

I want to load may diffent layers on my map using the ArcGis JS API. I want to set my map's extent so as to show all the features of all the layers concurrently. In other words I am looking for the ...
4
votes
1answer
189 views

How to reference the ArcGIS Server JS API using RequireJS

When using RequireJS to load a JavaScript library from a CDN, an example syntax is shown at https://github.com/requirejs/example-jquery-cdn: requirejs.config({ "paths": { "jquery": ...
1
vote
0answers
54 views

Popup with related tables

I'm finding difficulties displaying values of a related table in a popup window. Esri said that at version 3.10 and above, popup templates can include fields from related tables using the syntax ...
0
votes
0answers
31 views

Representing a line feature layer with Markersymbols in ArcGIS JS API

I am setting a scale dependant renderer for a Featurelayer (geometry type =line) so that in smaller scale it can represented as a marker symbols and in higher scale with a Line symbols. When I tried ...
3
votes
2answers
200 views

ArcGIS Javascript API on Wordpress 4.1

SOLUTION: For everyone interested: turned out the solution was moving all files that use DoJo beneath the jQuery UI files, so that jQuery UI is fully loaded before any DoJo stuff loads. Moved them all ...
0
votes
0answers
73 views

ArcGIS Javascript API 3.12 Error

I updated my app to 3.12 and am getting the following error: Uncaught TypeError: Cannot read property 'toString' of undefined It is being triggered by the following line: coordMenu.addChild(new ...
0
votes
0answers
42 views

Configurable Map Viewer (CMV) toogle parent nodes on child node click

I was wondering how to check parent groups and mapservices with click of the child node. In the "demo.cmv.io/viewer/"; viewer, I would like to turn on Group layer and the map service on the click of ...
1
vote
1answer
59 views

CMV Widget Toggle

In Configurable Map Viewer project, I'd like to be able to set the initial display of a widget to hidden and show it with a press of a button, for example, by clicking on a button in a toolbar. Take ...
1
vote
0answers
46 views

Attachment access using ESRI's dynamic services

I need to be able to display photo attachments in a tabbed popup window that ideally only contains a dynamic map service. I have a working demo running that uses a dynamic map to display the data and ...
3
votes
1answer
47 views

Creating WMS, which can be previewed via ArcGIS JavaScript Viewer, based on buffer model tool?

I am really new to arcgis, so i think you will find this to be an easy question. Arcgis docs are abundant, but however, after too much browsing, i cannot find a concrete answer. these are the ...
1
vote
1answer
63 views

Tabs in ESRI Popup

I am trying to get popup's working in my esri JS map and I have the tab's mostly working but I am missing a resize function to have the tab container sized properly on load. When I click a polygon and ...
0
votes
1answer
40 views

Web Map loading feature layer

I have requirement where i have to use web map . I have have lots of feature layers which will loaded conditionally hence in my json i have provided visibility as false for all layers then i have ...
1
vote
0answers
35 views

Run a locator task

I'm working with ArcGIS javascript api and I have a search function that finds a persons address by name and sorts it into a table inside a modal popup. It returns multiple people with the same name. ...
0
votes
2answers
75 views

add featureset in graphics layer without iterating

I have a geoprocessing service that returns a large amount of features (featureSet). I want to attach them in a graphics layer, but I dont wont to iterate over all them. I tried using the ...
0
votes
1answer
113 views

Creating a buffer - ArcGis Javascript API

How can I create a buffer that is based on the shape of the geometry that has been drawn. My map application creates a default square buffer extent and I want to create a buffer round a circle based ...
1
vote
0answers
129 views

Error on domReady callback: TypeError: b is null arcgis

I'm getting this error "Error on domReady callback: TypeError: b is null" when including arcgis javascript api to my project. <head runat="server"> <title></title> <script ...
0
votes
2answers
46 views

US Geological Survey Standard Projection?

Is there a standard or default projection on maps created by the US Geological Survey (USGS)?
3
votes
2answers
131 views

How to use infoWindow.setFixedAnchor

In the older versions of the ArcGIS JavaScript API, you could specify the position of the infoWindow using map.infoWindow.setFixedAnchor(esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT); In version 3.11 this ...
3
votes
2answers
152 views

Adding video to ArcGIS API for JavaScript popup template?

I was wondering how do I add a video to be played in the popup template? I've looked at the documentation here: https://developers.arcgis.com/javascript/jssamples/widget_extendInfowindow.html and ...
0
votes
0answers
32 views

Feature layer is not shown if it contains esriGeometryMultipoint Features

I have published a map service which contains Multipoints. As I can see, in my browser console, the features are brought in the front (js Api). The problem is that despite the fact that I get all the ...
0
votes
0answers
20 views

Individual Feature Class that jumps TO individual Feature in Webmap

I am using the WAB(3) (Web App Builder, Beta 3) doing development of ESRI-based maps using FeatureClasses stored in our own City Government REST Services. We currently have a program called ...
2
votes
1answer
63 views

Create Chart from Query Task

I need to create a chart from the result of a query task using Esri JS API. Note, the chart does not have to be created with Esri API, but the query runs in that. The result is written to the DOM ...
0
votes
0answers
16 views

line chart similar to Esri Histogram Time Slider [duplicate]

I am looking for a solution similar to the one provided by the Esri DIGIT class "HistogramTimeSlider" but instead of a histogram, I would like to use a line chart. Anybody seen a suitable reference?
0
votes
0answers
18 views

Geoprocessing service error [duplicate]

I'm working on a project and I faced an issue regarding publish a geoprocessing service and use it in a javascript API. I created a simple model that includes a near geoprocessing tool with a point ...
1
vote
1answer
78 views

Near Geoprocessing service

I created a simple model that includes a near geoprocessing tool with a point feature layer as an input and a line feature layer as a near feature and it works perfectly in desktop. Now I would like ...
3
votes
1answer
197 views

How to get/pass token with ajax call to secured ArcGIS REST Service

I have a web map application that was written in HTML & JavaScript (using the ArcGIS JavaScript API). It desplays a few services that reside on an ArcGIS Server (10.2). It also has a custom legend ...
1
vote
0answers
197 views

How to use ArcGIS API for Javascript print task to create a legend for dynamically rendered layer

I am using v 3.11 of the ArcGIS API for Javascript and executing the PrintTask to generate a printable pdf of a web map. The map has a couple of Dynamic Map Service Layers that are dynamically ...
0
votes
1answer
67 views

Appending Token to ArcGIS API for JavaScript Geocoder Widget

I am building a web map application using the ArcGIS API for JavaScript. The application is using the GeoCoder widget from ESRI, but I need to link it to an outside, secured resource. I am able to ...
2
votes
1answer
76 views

Custom Print Button

I have implemented the Print feature in my application but the print button is the default dojo 'Print' text and dropdown icon. What I want to do is remove the text and border and add an icon instead ...
1
vote
1answer
69 views

Can't Get my legend on a swipe layer map

I'm having trouble getting a legend on my swipe layer map. I'm new to Javascript and took most of the code from the API reference but can't get the legend to show up for either layers. I'm Hoping ...
1
vote
1answer
54 views

How to create a infotemplate that displays automatically

I have created a postcode search that that highlights a polygon and zooms in. but I would like it to display a infoTemplate box with having to click in it. I want it to show when the function runs. ...
1
vote
1answer
141 views

Can I plot points on a map using JSON data from a Node.js API?

I am new to the arcGIS JavaScript API. I have a Node API that is providing geographical information in JSON. I have google'd for examples and searched for solutions on this web site. Can anyone ...
0
votes
0answers
24 views

This._geometryService is null in mesurement wedjit arcgis javascript api

I'm working on arcgis javascript api, and I'm usint the measurement wedjit, it was working correctly, suddenly, after adding another features to the map, I discovered that the measurement tool is not ...
1
vote
0answers
30 views

ArcGIS API for JavaScript Bookmark in separate Div

Using the ArcGIS API for JavaScript I need to create a number of different bookmarks and access them through the HTML in separate div tags. I created this JS Fiddle in attempt. I thought that if I ...