Questions tagged [arcgis-maps-sdk-javascript]

The ArcGIS Maps SDK for JavaScript was formerly known as the ArcGIS API for JavaScript

This tag and its synonym came out of the GIS Meta Q&A at Do we need to rename the ArcGIS JavaScript API tag?

2286 questions
16
votes
1 answer

Is the ArcGIS Server JavaScript API free to use?

The 2008 blog post announcing the ArcGIS Server JS API says: Everyone can use the ArcGIS JavaScript API. There is no fee for using the ArcGIS JavaScript API or deploying an application built with it. But Esri's Web Mapping Pricing page says…
Stephen Lead
  • 21,119
  • 17
  • 113
  • 240
8
votes
2 answers

Restricting base map on specific extent in ArcGIS API for JavaScript 3?

Currently I am using ArcGIS JS API ver 3.3/3.5 in my application. I want to restrict the basemap for US only .For example one can use default navigation features like zoom in, zoom out for the US Country only. Trying following things: I have set…
Sunil
  • 4,763
  • 7
  • 43
  • 87
8
votes
4 answers

Merging Popups with Relationship Queries using ArcGIS API for JavaScript?

I am trying to merge two ArcGIS JS API examples: Feature Layer with Popup and Query Related Records. The idea I have in mind is clicking on a country feature, retrieve all related records from a service (already prepared for relationship queries)…
Irene
  • 1,220
  • 1
  • 14
  • 25
8
votes
2 answers

JSAPI - how to add a graphic on top of another graphic in the same layer?

I have a graphics layer and I'd like to add a graphic behind the existing graphics. I've come up with this: graphicsLayer.add(overlay.graphic); graphicsLayer.graphics.unshift(graphicsLayer.graphics.pop()); But I have to pan the markers off the…
ca0v
  • 2,941
  • 3
  • 29
  • 47
8
votes
4 answers

Hide zoom buttons in ArcGIS

Is there a way to hide the zoom-in/zoom-out buttons in ArcGIS javascript API? I have external zoom buttons elsewhere on the page, so these are no longer needed.
Dr. Greenthumb
  • 277
  • 4
  • 8
7
votes
1 answer

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 browsers in each API version's "What's New". I have…
tomfumb
  • 3,678
  • 1
  • 31
  • 59
6
votes
1 answer

Drawing geometrical shapes with dimensions using ArcGIS API for JavaScript?

I have to draw the geometrical shapes with their dimensions and show it with that shape. As in below images, I want to show the length and width of the rectangle, the radius of the circle and the area of the shape at centre. If the user selects…
Kishor
  • 536
  • 1
  • 6
  • 23
6
votes
3 answers

How to display the map.InfoWindow outside of the map container?

I need to show an infoWindow outside the map (i.e. have it owned by the body of the HTML document, not the map div). If i subclass InfoWindowBase I can do this myself but I really don't want to do that. Is there any way of doing this? I have tried…
Phil Penn
  • 260
  • 3
  • 8
6
votes
1 answer

Organizing JavaScript when using ArcGIS JS API?

The ArcGIS JS API (version 4.1) uses Dojo's implementation of the AMD module loader. I think it's simplest to use AMD modules in custom code too for compatibility. I'd love to be wrong but my understanding is that there's no escaping Dojo and AMD…
Bruce
  • 257
  • 2
  • 4
6
votes
5 answers

Zoom to selection

I am trying to create an application, where in I want to zoom to selected features. Basically, I want to zoom to the extent of a selected point or polygon.
shipi
  • 147
  • 1
  • 2
  • 6
5
votes
1 answer

Redraw info window after centering map on click (ESRI Javascript API)

When I click on one of the features on my map the map gets re-centered using the following event handler: var pointClick = projects.on("click", function(e){ // Center map on selected feature map.centerAt(e.mapPoint); // A bunch of other…
Roy
  • 3,958
  • 4
  • 30
  • 54
5
votes
1 answer

Can we insert arbitrary HTML layers the ESRI ArcGIS JavaScript API?

We would like to implement a completely custom visualization to be included in a map, whose other layers we'd like the JavaScript API to control. This custom visualization would be updated by hand in response to map events, and will be constructed…
Sebastian Good
  • 498
  • 5
  • 9
5
votes
1 answer

Changing Layer Definitions / Refresh Not Behaving in ArcGIS API for JavaScript?

In ArcGIS Javascript API 3.3, I have an ArcGISDynamicMapService layer in my application that points to a fairly simple (6 layers) map service. In the application, there is a GUI/widget that allows the user to pick various options - which then…
user890
  • 5,733
  • 1
  • 42
  • 71
5
votes
1 answer

ArcGIS JS API: Convert ESRI Date Type into String

I am following this ESRI tutorial to display information from a related table for the selected features. The example in itself for my project works fine, however, my data include two Date fields and when I display them on the right side grid, I see…
Irene
  • 1,220
  • 1
  • 14
  • 25
5
votes
2 answers

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 slightly off without the rotation. I've searched…
Tanner
  • 7,375
  • 14
  • 62
  • 109
1
2 3
31 32