Questions tagged [esri-javascript-api]

30 questions
0
votes
1 answer

How can I add radius line with miles text to a dynamic circle in ArcGIS API for JavaScript

I have created a circle on the fly, but I failed to create a radius line with text showing the radius in miles. I have created a circle dynamically using the following code: var circle = new Circle({ center: [31.0928, -17.9318], …
Naren
  • 288
  • 1
  • 3
  • 17
0
votes
1 answer

How to get an area of interest image given latitude and longitude arcGIS?

I would like to know if it's possible to give a latitude and longitude (or bounding box)for a certain location return back an area of interest image, including a target property and a list of nearby schools in arcGIS? Me and my manager went through…
Rafael Paz
  • 497
  • 7
  • 22
0
votes
1 answer

ESRI JS API 4.9+ and Koop: services fail to load due to reduntant url params

JS API affected: 4.9, 4.10 JS API ok: < 4.8 after upgrading our application to 4.9, feature layers that are served from Koop server are not being loaded. I've tracked it down to the request that is querying for the feature count. Let's consider the…
belzebu
  • 810
  • 7
  • 25
0
votes
1 answer

How to pass data to DataContext?

I have a list of zip codes to loop over to get the lat/lng. How do I pass the object zip to the "success" method so I can assign the lat/lng to the right zip object? Right now by the time I get the results back, I assign them to the wrong zip :-( I…
Johnny
  • 71
  • 1
  • 8
0
votes
2 answers

Scoping issue - calling an internal dojo function from external function

I have a function that is outside of the require portion of the dojo functions. This function needs to call a function that resides within the dojo require block. How do i call a function that is within the require code block from a function that…
pithhelmet
  • 2,222
  • 6
  • 35
  • 60
0
votes
1 answer

Multiple XHR request fired using esri/request returning a deferred when handled using dojo/promise/all

I am having difficulty while handling multiple XHR request fired using esri/request. I am firing multiple request using code below var def1 = esriRequest({ url: url1, content: { f: "json" }, handleAs: "json", callbackParamName:…
Amit Dube
  • 947
  • 4
  • 10
  • 23
0
votes
1 answer

Display tooltip on map on mouse hover

I want to show a tooltip with an attribute when the user hovers over an area of the map for more than a few seconds. In this example I am trying to show the state name when a user hovers over that state. I have implemented the tooltip but the state…
Sarah
  • 357
  • 4
  • 14
0
votes
0 answers

Filter values in drop down of AttributeInspector (ESRI JS API 3.24)

I am using AttributeInpector for displaying attributes associated with a Polygon in Feature Layer in ArcGIS ESRI. I want to filter values in drop down for an attribute which can have one value out of the multiple possible values, displayed in…
Amit Dube
  • 947
  • 4
  • 10
  • 23
0
votes
1 answer

Why does ESRI-Dojo Application build includes dgrid and dgrid1 packages

I am working on creating an Web Application using ESRI JavaScript API v 3.23 and Dojo v 1.13. For setting up the application build, I am referring the below link https://developers.arcgis.com/javascript/3/jshelp/inside_bower_custom_builds.html After…
Amit Dube
  • 947
  • 4
  • 10
  • 23
0
votes
0 answers

Uploading file using esriRequest Arcgis : failed

I am trying to upload file using Esri request javascript api. esriRequest({ url: "http://localhost:20659/service/Service.svc/Upload/", form : this.datafile, handleAs: "json", callbackParamName: "callback" },{usePost:…
0
votes
1 answer

Basemap gallery does not work when navigation bar is added in esri javascript api

I am new to ArcGIS JavaScript API programming and I am trying to implement navigation toolbar along with basemap gallery but I am getting the following error: Uncaught Error: Tried to register widget with id==map but that id is already registered I…
0
votes
1 answer

Add scale to graphic (esri js)

Somebody know how can i add to graphic a scale (a single graphic)? I have graphics layer and i need for each graphic in it to have a different scale I have now all the graphic shown in the same scale I did it by using map.graphics.add() I used also…
Itay Golan
  • 33
  • 8
0
votes
1 answer

How to zoom to feature selection when map and Layer wkid are different?

I have a mapservice using the Esri ArcGis Js Api v3.11. On that map, the user can query every FeatureLayer and does get a simple grid returned. The row click event has the following handler attached: _grid.on('dgrid-select', function(event) { …
Marco
  • 22,856
  • 9
  • 75
  • 124
0
votes
2 answers

converting a json string to one that fits a esri.geometry.Multipoint

I have a webApi that returns a Json…
Easty
  • 387
  • 1
  • 6
  • 17
-3
votes
1 answer

Draw map dynamically by .shp file

I am working on a c# project where i have to draw a map on the basis of shape(.shp) file. Is there any kind of library in c# by which i can dynamically create maps with the provided shapefile?
1
2