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

3
votes
3answers
127 views

How can I change number format and alias in javascript API legend?

I want to change the alias and the length of a field that already exists in my GDB from the Javascript API. Is this possible? I see that alias is a property of the Field class. Can I do something ...
7
votes
1answer
1k views

Browser support for ArcGIS API for JavaScript?

Can anyone give me information or a good pointer on browser version support in the ESRI ArcGIS JavaScript API v2.4? I can't find much in their documentation beyond changes in support for specific ...
0
votes
1answer
17 views

How to set LocateMe Widget static or predefined location(or x & y)

I whant to have locateMe button with static predefined x and y coordinates. I have found this: myWidget = new locateButton({ theme: "locateButton", // (optional). class name for the widget container. ...
0
votes
1answer
37 views

CSVLayer as a source for Search widget in ArcGIS Javascript

I am trying to add my CSVLayer as a source for the Search widget, however, I've been unsuccessful. My Search widget searches addresses and I was able to add one of the sources from this example (...
1
vote
0answers
31 views

jquerymobile-TypeError: Object doesn't support this action on windows phone

Obtaining TypeError: Object doesn't support this action in windows phone 8.1, IE v11. The application is plotting route and drawing circles in Android & iOS devices. Is there any ...
2
votes
1answer
962 views

A random “Could not load cross-domain” message when loading Esri map

My application displays an Esri map, by accessing the Esri public sampleserver. I use Esri dojo API for this purpose. The Esri dojo I use is of version 1.6 and is locally installed (as a war) on my ...
0
votes
2answers
25 views

Esri JSAPI Legend Not Appearing

I am stumped on an Web App that I have been working on. I am using Esri JSAPI and can not figure out where I have gone wrong with the Legend. The app runs, but no legend appears anywhere. I have ...
0
votes
2answers
101 views

Esri JavaScript API ApplyEdits update not working

When I attempt to applyEdits as an update to my application I receive the following errors: I uploaded my most recent revision on Github at: https://github.com/csergent45/streetSigns/tree/...
3
votes
2answers
4k views

ESRI Maps - Refresh the map

First time, map loads and the locations are plotted properly. Second time, when the new set of locations are pulled from the app, map reloads and gets the new set of data. But it is not refreshed. ...
8
votes
1answer
2k views

Incorrect date displayed with Esri JavaScript API v.2.6

I am working on a site that is using version 2.6 of the Esri Javascript API. I have an info window that displays some date information, and the date is one day behind the date in the database. For ...
0
votes
1answer
12 views

Is it possible to show preview extent box for PrintTask in ArcGIS 3.16 JavaScript API?

I have set up a map application using ArcGIS JavaScript API v3.16 and included functionality for exporting a map to PDF using the PrintTask. Is there a way that I can use a button/checkbox to turn on ...
1
vote
0answers
47 views

Get Styles for Feature Layer in Feature Collection, Customize Layer List

so I'm using the JavaScript API to customize an ArcGIS web app and I need to take feature layers and group them in the layer list widget. Here's the code I have that does that (in the widget.js file ...
0
votes
1answer
32 views

Legend Not Refreshing When Renderer Changes

I have the following code to grab a value from a drop down menu and use it to change the renderer of the featureLayer. However, it does not update the legend. The legend just stays on the initial, ...
-1
votes
1answer
25 views

TypeError: dojo.promise is undefined

I am trying to convert my web mapping application from legacy to AMD style. However, the error message tells the "TypeError: dojo.promise is undefined". I have tried to see if the error could come ...
3
votes
1answer
59 views

Editor widget in CMV is not working

I'm new to GIS. I'm using the CMV template for my applications, but I can't get the Editor widget to work. The problem is that all the functionalities form the Editor Toolbar are not working. The only ...
0
votes
0answers
21 views

Use multiple dojo datagrids or generic?

I'm using ESRI ArcGIS javascript api v 3.16 I need to display results from 4 separate layers and queries in a datagrid (at different times). Rather than specifying 4 separate tables with field's ...
0
votes
0answers
18 views

How to get color from a marker symbol using esri and javascript

I use Esri map and javascript, and I set the variable: var pointSymbol = new esri.symbol.SimpleMarkerSymbol( esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 15, new esri.symbol....
1
vote
0answers
11 views

How to share business logic among multiple applications using different apis with arcgis?

I've been working with ArcGIS and Esri WPF API for a year, but now me and my job colleagues felt the need to build a new application using the Esri Javascript API. Our application using WPF API has a ...
2
votes
1answer
246 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
0answers
65 views

ArcGIS operation dashboard widgets interacting with each other

I am working with custom widgets for ArcGIS operations dashboard. I created two widgets (A and B) and now i need to make them interact somehow (selecting value from one should be handled in another). ...
0
votes
2answers
63 views

Event not firing for map.graphic.add objects added

Using ESRI ArcGIS javascript api v 3.16 I programmatically add a graphic to my map, which works fine, for example: var pnt = map.graphics.add(new Graphic(evt.mapPoint, stopSymbol)); I need to fire ...
0
votes
0answers
34 views

ArcGis 2 JavaScript Api Conflict 3.11 and 3.16

Have problem with arcgis javascript api.My template(Tour Map- Customized) is old and use 3.11. <script src="//js.arcgis.com/3.11/init.js"></script> And i want to use "esri/dijit/Search"...
1
vote
1answer
83 views

How to add group layers/TOC to ArcGIS web map/web application?

I am new to arcgis online and am trying to create a web map that has some kind of grouped layers. I have tried adding multiple shape files that are all zipped together but because together the files ...
1
vote
1answer
82 views

ESRI JavaScript HeatmapRenderer class and Print widget

I’m working on an application using ESRI’s HeatMapRenderer class from the JavaScript API. The issue that I am running into is that the Print widget fails if the heat map renderer layer is on the map. ...
3
votes
1answer
681 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 esri.geometry.Polygon(this.parent....
1
vote
0answers
13 views

Display Legends on esri map using javascript [duplicate]

I have different module like distance calculator,radius search and more. Each pages I need to show Legends div so that user can identify places by images on map(or identify the layers).
3
votes
2answers
2k views

Populating a Dojo widget with country names based on an ESRI hosted layer

Wow, Javascript is not that easy - can someone help me make a simple breakthrough just to understand some basic concepts. Does anyone know how to populate a filteringSelect Dojo dijit with the names ...
0
votes
1answer
206 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(...); map.addLayer(...
0
votes
1answer
2k views

Toggling layers with arcgis javascript api 3.5

I am using the two reference samples in the api, toggle and dynamic toggle. I tried to use the method in the basic toggle but the setvisbiblelayers doesn't seem to like my kml layers and I get a ...
1
vote
2answers
234 views

ArcGIS Javascript Spatial Query with Lat Lng or X Y?

I am using Google Maps on the front end as all I need on this view is to show the points. When user clicks on the map in the view, it selects a point hence giving out lat and lng. I am trying to use ...
0
votes
0answers
34 views

How to use Esri ArcGIS JSAPI InfoTemplate and SimpleMarkerSymbol in conjunction with Query

I have a JavaScript API map where I would like to execute the following workflow : User enters address in locator Location candidate spatially intersects with any polygon feature that it falls ...
0
votes
1answer
77 views

ArcGISDynamicMapServiceLayer Zoom + LocateButton

Have few questions about DynamicMap options. 1.Can i implement LocateButton? 2.Can i set the starting Zoom on the map? This is my Code that is use only with LocateButton but wont work with him, if ...
0
votes
1answer
52 views

Querying/getting EID ( Edge id's of network ) in ArcGIS API for JavaScript?

I did a server-side(c#) network analysis and the output is the EID's(NetEid's) which needs a INETelements to query for features and Object Id's. It takes long time especially when you found many ...
0
votes
0answers
139 views

Esri Javascript Point Clustering Map Size

I am using Esri Javascript API to display points on a map that are pulled from a json object. Everything is working great, although i seem to be having issues trying to figure out how to get the map ...
6
votes
2answers
560 views

about token based authentication security

I am reading the authenticated services with token. I understand that a user have to get a token to using arcgis services. Example: https://domain.com/arcgis/rest/services/myMap/MapServer is my ...
2
votes
1answer
295 views

Can't close custom Web AppBuilder widget programmatically

I am creating a custom widget in ArcGIS Web AppBuilder. This page shows how you can use the WidgetManager to close a widget programmatically, saving the user from having to click the X button ...
0
votes
2answers
53 views

Adding NOAA Radar to JavaScript Application

I am atempting to add NOAA's Dopler Radar to my web. For whatever reason the later will not display on the map. No errors are being reported and I have used console.log() to confirm the data is being ...
0
votes
0answers
35 views

Making Search Widget with custom map

I whant to make Search Widget with autocomplete. I have seen Search Widget Sample : and its making the job that i need from search field. Now my Question is how to implement my map!? This is my ...
1
vote
1answer
46 views

Can I simplify geometry on the fly in a ArcGIS JavaScript map viewer?

We've got a polygon feature class of parcels around a lake boundary that is incredibly accurate. The editor did a really thorough job of following all the inlets and meanders along the edge. From just ...
0
votes
0answers
47 views

ZoomTo, Search, Find implementig in existing ESRI world project

I'm working on Map Tour project and I'm kind of new (1st Project) to ESRI world especially Dojo (working with Dojo less than 4 weaks) world. I need to add some widget to search that will find the ...
2
votes
1answer
41 views

How do I create a layer with popups that has hundreds of unique markers/symbols?

I am creating a layer in ArcGIS JavaScript API. I am looking for the best way to have a feature layer with popups and unique markers. This layer has hundreds of markers at a time. The markers are ...
1
vote
1answer
432 views

Creating time-aware layer (ArcGIS API for JavaScript + ruby rails) using data from server?

I have a data set of points. Each point has latitude, longitude, date and description sent from the server I already have a graphic layer which is used for represening the points in a static way with ...
1
vote
0answers
75 views

ESRI Cluster layer dynamic label colors

I am using extras/clusterlayer to render clusters for a uniquevalue renderer.. all that works well and good except that the label colors are all white/black/whatever you set them to.. I though I'd ...
1
vote
1answer
61 views

M-N relationship class in geodatabase with existing linking table?

I have a parcel database with an M-N relationship (Parcels to Deeds). I have already created and populated a linking table. We have also set up two relationship classes in the geodatabase for the two ...
1
vote
4answers
2k views

Explode clusters of overlapping points in ArcGIS Javascript API

In my map application built on ESRI's javascript API there are a number of points that share a lat/long. I need a way to allow the user to see all of the points at a specific location by exploding ...
0
votes
0answers
49 views

ArcGIS API Browser Issues

I am having trouble with my maps displaying in different browsers. Chrome and Firefox seem to have no issues whereas Safari works sometimes and other times it does not. http://142.103.209.56/newmaps/...
1
vote
2answers
79 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 ...
0
votes
0answers
43 views

Which version of Chrome supports ArcGIS JavaScript API (version 1.6)?

I need to use google chrome to open a html file. The html file contains arcgis javascript api (version 1.6). Since the ArcGIS js api version is too old, some functions not supported by the latest ...
2
votes
2answers
368 views

How to project US States in Transverse Mercator [duplicate]

Possible Duplicate: Layers having the same coordinate system should overlap, but they don’t. What’s wrong? I created two different MXDs, one for City of Tucson and another for US States. If ...
0
votes
1answer
45 views

Adding features dynamically to an ArcGIS Javascript FeatureLayer with applyEdits()

When attempting to add features to a featureLayer with applyEdits, the features do not get added to the layer. var featureCollection = JSON.parse(mapdata); var features = JSON.parse(mapdata)....