Questions tagged [arcgis-javascript-api]

For questions about ArcGIS API for JavaScript 2.x and 3.x. For 4.x use arcgis-javascript-api-4 instead

Filter by
Sorted by
Tagged with
2
votes
1answer
909 views

How customize GeoRSS icon in ArcGis JS API?

I have this little piece of script to customize the icon of some GeoRSS points, but I have no display and no error in the console. var map; require(["esri/map", "esri/layers/...
2
votes
0answers
506 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 (...
2
votes
1answer
3k views

Setting up ArcGIS Print service for ArcGIS Online account?

Can anyone tell me is it possible to setup an ArcGIS Print service with ArcGIS Online account? I could not find where to create one. What I would like is to implement this feature: https://developers....
2
votes
1answer
2k 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 ...
2
votes
1answer
5k views

Feature Layer with ONDEMAND mode

I can't understand how to display all features from the feature layer. In the code bellow I specified 2 features in the layer and set in feature layer's mode to esri.layers.FeatureLayer.MODE_SNAPSHOT. ...
2
votes
2answers
1k 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 ...
2
votes
2answers
2k views

Layer vs. Color Transparency with ArcGIS Javascript API

When creating services with ArcGIS Server, I have paid attention to the warning that Layer Transparency will make response time slower and that I should change to color transparency instead so I have ...
2
votes
1answer
3k views

Popup from multiple services

I am trying to have one infowindow/popup show from multiple services. I have successfully added the second service to my code, however, only 1 result will display. Ex. if I am at full scale, only ...
2
votes
1answer
1k views

Moving multiple polygon features simultaneously in arcgis js

Is there a way of moving two or more polygons simultaneously? The following code enables the movement of a singular graphic: moveToolbar.activate(esri.toolbars.Edit.MOVE, tempMoveLayer....
2
votes
1answer
1k views

ArcGIS JavaScript Extension for the Google Maps API, serverapi.arcgisonline.com/jsapi/gmaps/

My code using as the following: Google Maps API in V3: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=geometry&v3&key=...
2
votes
3answers
3k views

Load One Layer from ArcGIS Server MapServer

I am pretty new to ArcGIS Server and am building a map applications using the Javascript API. I can easily load the map layer below by adding it as a ArcGISDynamicMapServiceLayer http://www....
1
vote
1answer
2k views

JS API Toggle Pop-Up On & Off

I am attempting to allow for the pop-up to be toggled on and off by pressing a checkbox. Here are some snippets of the code: var clickHandler function popupOn(evt){ var query = new esri.tasks.Query()...
1
vote
2answers
6k views

Converting from British National Grid (27700) to WGS84 (4326) to Web Mercator (102100)

I'm developing a web application that uses ArcGIS to display a map using JavaScript. We are holding all our data in MS SQL Server 2008 as Easting/Northing against the British National Grid. ...
1
vote
1answer
263 views

Zoom out grayed out in ArcGIS API for JavaScript?

I'm using ArcGIS API for JavaScript 3.13 The zoom out slide button is grayed out, however it works when clicked. Does anybody know how to make it not grayed out? My map initialization code looks ...
1
vote
3answers
1k views

How can I retrieve the features in a layer without adding it to a map?

I am using the ArcGIS API for JavaScript. My layer of Point features is exposed through a REST service. I want to retrieve all of these features when the application starts up, then show different ...
1
vote
1answer
354 views

Esri js api 4.6 fires animation event on fast drag

We are having a problem with fast drag event on the new esri js 4.6 api. When a user drags the map too fast, the map extent's changes rapidly. I've detected that on a fast drag, there's an animation ...
1
vote
1answer
3k views

Overlaping graphics not visible in featureLayer?

I have constructed a featureCollection from JSON and the feature collection has 44 features. I have given this feature collection as input to the Featurelayer which is showing only 32 graphics ...
1
vote
1answer
109 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 ...
1
vote
2answers
715 views

ESRI JavaScript FeatureLayer constructor makes graphic geometry null in featurecollection object

I'm pulling point data by lat long from my SQLServer database via webservice and creating a JSON FeatureCollection object as the webservic response. When I attempt to create a FeatureLayer from this ...
1
vote
1answer
2k views

Polyline not showing on esri maps

I have list of points. I am pushing these points to an array. Now when i draw polyline through esri map graphics.add then its not shwoing anything. My code for drawing polyline on esri map is as ...
0
votes
1answer
36 views

view.map.loadAll is not a function (Arcgis API for JavaScript)

I wrote this code (below) to use the Editor widget of Arcgis API for JavaScript, knowing that before this code I defined my featurelayers (links to shapfiles uploaded on Arcgis server online Arcgis ...
0
votes
2answers
754 views

Scrolling down a page with a map

I'm using version 4.0 of the ArcGIS API for my maps. I have this problem with maps whenever the page has to be scrolled down to view the map. My map is somewhere in the middle of the page so the user ...
0
votes
1answer
785 views

Limiting the search widget results to a country in ArcGIS JS API 4.9

I'm using the Search widget in the 4.9 version of the javascript API. Can I limit the results to a given country when using the default geocoding service?
0
votes
3answers
801 views

Zooming into a particular polygon

I am getting the polygon id by doing identifyParams.geometry = evt.mapPoint; identifyParams.mapExtent = map.extent; identifyTask.execute(identifyParams, function(result) { var i; var ...
0
votes
2answers
9k views

Feature Layer from JSON file

I would like to project my shapefile information on the maps. I converted my shapefile into a JSON file. How can use the Json file to create a featurecollection object in the ARCGIS Javascript API. ...
0
votes
1answer
228 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([ 'dojo/_base/...
0
votes
1answer
539 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 ...
0
votes
1answer
1k views

Uncaught TypeError: webMercatorUtils.webMercatorToGeographic is not a function

I have write the following code for displaying coordinates of a map.But coordinates are not displayed and getting error i.e "Uncaught TypeError: webMercatorUtils.webMercatorToGeographic is not a ...
0
votes
3answers
2k views

How to load spatial data into ArcGIS Javascript API application from SQL Server 2008?

I have geometry data in SQL Server 2008 R2. How do I load that spatial data using the ArcGIS Javascript API?
0
votes
2answers
415 views

uncaught type error:dom is undefined

when trying to find radiobutton id using dom.byId("id") getting the error dom is undefined. require([ "esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/layers/ImageParameters",...
0
votes
1answer
2k views

Is it possible to copy and paste features in an online Edit function?

Using the ESRI JS API, is it possible to select a feature and then create buttons to copy and paste that feature? This would be done using the Editor Widget. If its possible to do this, but only ...

1 2
3