All Questions
122 questions
7
votes
1
answer
5k
views
Can you dynamically set print options using ArcGIS JS API?
I'd like to create an option in my web application where a user can click on a print button and a list of options appears:
Page template (already available via esri.dijit.print)
Map Title
Notes or ...
7
votes
2
answers
3k
views
Styling a Chart within a Popup
I have a dojox bar chart on my app, that is populated from a QueryTask everytime the extent changes.
I am making use of the Tufte theme (the only one that has a transparent background), and ...
7
votes
1
answer
1k
views
Duplicate items in the legend
I have recently created a web map that uses the legend snippet from the ESRI JavaScript API website.
https://developers.arcgis.com/en/jav...et_legend.html
It works great for the most part, but has ...
6
votes
3
answers
8k
views
How to Hide InfoWindow/Popup when "no information available" or when buffering?
I have an app that does some buffering, only problem is when I click on the map to put in the point/line/polygon vertices to do the buffer, I get popups at every mouseclick. It doesn't interrupt the ...
6
votes
2
answers
2k
views
Does the ArcGIS JavaScript API let me build / package my application using Dojo?
I'm currently getting to grips with the new (3.1) ArcGIS JavaScript API and how it bundles Dojo and relies on Dojo's Asynchronous Module Definition (AMD) approach.
I'm familiar with AMD and recently ...
6
votes
2
answers
7k
views
Error: Tried to register widget with id==legendDiv but that id is already registered
Getting the following error when running my app:
Error: Tried to register widget with id==legendDiv but that id is already registered
Not sure how to get rid of it. My javascript for the legend is:
...
6
votes
1
answer
3k
views
Using toggle button with ArcGIS API for JavaScript?
I am trying to use two toggle buttons which have been added to a map to toggle layers on and off in my simple web application. I am having problems getting the toggle button to respond when clicked or ...
6
votes
2
answers
8k
views
Auto resize map to 100% after content pane is removed in ArcGIS JavaScript API
I'm using ArcGIS JavaScript API 3.6.
I have a map layout with a bordercontainer and two contentpanes, One is the map div and the other is the left div (which holds the legend, and basemaps and such as ...
5
votes
3
answers
2k
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 ...
5
votes
2
answers
1k
views
Loading custom dojo and Esri
We have to develop an application which will have lot of rich ui along with a map. For the map, I am using the arcgis javascript api which includes dojo. For UI components other than the map, I want ...
4
votes
2
answers
573
views
Why is the Button code on the ArcGIS.com sample viewers so complicated?
I'm trying to modify one of the ArcGIS.com sample maps to add my own buttons, and I'm surprised at how complicated the HTML page is.
Here is the code for the simple "Details" button at the top left ...
4
votes
1
answer
611
views
ArcGIS Javascript API AMD require syntax and Dojo ContentPane compatibility
I am trying to recreate the ArcGIS Javascript API/Dojo ContentPane layout template shown here for my own custom application. I would like to switch from using dojo.require() legacy syntax to using AMD ...
4
votes
1
answer
145
views
Takes Two Clicks to Select New Feature
I'm writing a web app using ESRI's Javascript API and a map I created in ArcMap 10.1 hosted on ArcGIS online (Feature Service, not WebMap).
I have written the code necessary to print attributes in a ...
4
votes
0
answers
262
views
How to move a point on a touch screen using esri map, dojo and javascript
I am new to map development. For touch screen devices, I need to add a point on an ESRI map and then move this point to other location on the map and get its coordinates.
4
votes
1
answer
349
views
What would prevent ESRI JSAPI AMD modules from being cached?
I am using AMD style in the ESRI Javascript API (along with the esri application boilerplate: https://github.com/Esri/application-boilerplate-js).
For some reason, the AMD modules from the js.arcgis....
4
votes
2
answers
253
views
Style Print dijit menu in esri JavaScript API
Trying to add styles to a dijit is difficult enough, as I have to track down the classes it uses after it loads. I've managed to do that, but I'm struggling to find the appropriate classes to alter ...
3
votes
1
answer
3k
views
How to synchronously execute a queryTask
How can a queryTask be executed synchronously? I'd like a feature set to be returned instead of deferred object.
3
votes
1
answer
794
views
Customizing ArcGIS API for JavaScript widget?
The default ESRI search dijit doesn't have all the functionality I need. Is it possible to get the default search dijit code and extend it and if so are there any guides on doing this? I couldn't find ...
3
votes
2
answers
1k
views
Getting event object from Draw Toolbar onDrawEnd using ArcGIS API for JavaScript?
I am using the Draw Toolbar in the Esri Javascript API v3.4 and connecting to the onDrawEnd event using aspect.after(drawingToolbar, "onDrawEnd", drawEndHandleFunction, true);
I am using the Draw ...
3
votes
1
answer
1k
views
onLayerAdd function why dojo.connect?
I am building a map application, calling layers from an arcgis-server using the javascript api.
Maybe I am being stubborn, but I am trying to minimize my use of dojo throughout this process. Much ...
3
votes
1
answer
531
views
Any Open Source Extensions to ESRI JSAPI?
I'm looking for some functionality beyond what ESRI already provides in the JSAPI. For example, the ability to display the LOD in a tooltip on the zoom control. It seems like there should be a dojo+...
3
votes
1
answer
3k
views
change font size of elements in dropdown menu store
I am creating of list of building names from a query, which then populates a dojo.ItemFIleReadStore. This store then populates a dropdown menu (using dijit.Form.ComboBox), where the user makes a ...
3
votes
1
answer
240
views
Synching Two ArcMap JavaScript webmaps to respond to panning
I am looking for some advice on how to approach a problem I am having. I am looking to build an ArcGIS webmap using JavaScript and HTML 5 that reacts to a user panning on two separate, synchronous ...
3
votes
1
answer
220
views
Making Geoprocessing Service results table sortable using ArcGIS API for JavaScript?
Im aware a sort() function exists, just not sure where it should be placed in my code. I have a function that draws routes on the map and i'm getting my results that are in my table from those routes. ...
3
votes
1
answer
1k
views
Basemap Gallery Error - ESRI JS API
I'm getting an error when trying to switch basemaps in my application(right now only works in IE9).
TypeError: Unable to get value of the property '_basemapGalleryLayerType': object is null or ...
3
votes
1
answer
488
views
Inconsistent Identify Task- Explain this bug?
Through some console.log debugging I've located the exact line of code that is failing me but I'm not quite sure how to fix the problem.
Basically, I have an identify function that queries the ...
3
votes
1
answer
998
views
TitlePane not rendering - working with basemapGallery sample code
I am attempting to implement the basemapGallery code found in the API samples here.
There seems to be an issue with the TitlePane into which my basemapGallery is nested. It simply does not render. ...
3
votes
1
answer
2k
views
ArcGIS Javascript: upgrade ComboBox to FIlteringSelect using ItemFileReadStore
I would like to upgrade a web app I am working on from v2.1 to v3.1 of the Javascript API (I have tried 3.2 but I am getting some very odd rending problems, so I'm settling with 3.1 for now...)
One ...
3
votes
1
answer
294
views
How to flash a JSAPI map graphic only when contained in map extent [closed]
Using ESRI JSAPI 3.7 I'm flashing a graphic that works fine when the graphic is located within the bounds of the map extent (is visible). However, when you move the map so the graphic is located out ...
3
votes
0
answers
4k
views
Simple Dojo Pop Up Window
I'm working on my first web application using the JS API and am looking to add a simple tabbed pop-up window that can be called on the load of the page that can display map instructions and a general ...
3
votes
0
answers
1k
views
How to create a custom Attribute Inspector for mobile app using the ESRI JS API
I am making a mobile version of a JS web application I developed. I'm noticing though that the AttributeInspector widget by default uses standard dojo/form controls. This means that the form within ...
2
votes
2
answers
561
views
Using legend with dijit/form/DropDownButton in ArcGIS API for JavaScript?
I am very new to the ArcGIS API for Javascript and am by no means a programmer. Nonetheless, I have been fairly successful at finding existing code and modifying it to my needs. That is, until now.
I ...
2
votes
1
answer
1k
views
Programmatically accessing declarative ToggleButton? [closed]
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 ...
2
votes
1
answer
212
views
ArcGIS JS API: Basic map not loading inside dojo BorderContainer
I am facing this issue while loading the simple basic arcgis map inside dojo BorderContainer. Following is the code that I am trying,
this.mapContainer = new BorderContainer({
region: 'center',
...
2
votes
2
answers
229
views
ESRI JS API - Unable to register Basemap Gallery (ID is already registered)
I am attempting to add a BasemapGallery to my web application. I prefer to create my layout dynamically using constructors such as:
layout.cpRight = new ContentPane({
region:"right",
...
...
2
votes
1
answer
412
views
Tell Dojo to look for minified classes with ArcGIS JavaScript API
I've got an application build using the ArcGIS JavaScript API. I have several classes built with Dojo define. Each class is in a separate file, and everything is working fine.
However, I've minified ...
2
votes
2
answers
1k
views
Feature Layer Web Mercator Service is too slow in IE and zooming does not work in FF
I am facing issue of Feature Layer being too slow and hangs browser , we changed the projection system to WebMercator performance increased in FF but in IE it sill hangs.when i zoom in FF it hangs ...
2
votes
2
answers
1k
views
Insert a loading message into DataGrid
I'd like to show a loading message (Loading...) that shows while the datagrid is being populated.
It would show when the search button is clicked and disappear when the grid results have populated.
...
2
votes
1
answer
602
views
Loading a custom module from different file with ESRI API4 and Dojo
I am trying to create a demo app to better understand how to minimize my code by creating more files.
I am using the base starter app sample on one js file and trying to add a widget on another. The ...
2
votes
1
answer
1k
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 ...
2
votes
1
answer
3k
views
Plotting the centroid of a polygon feature layer
I'm working with arcGIS javascript api 3.12.
My current call for displaying the feature layer is as follows:
var recLayer = new FeatureLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/...
2
votes
1
answer
823
views
Use Dojo to load modularized widget config files
I've taken a basic webmap 'ESRI HomeButton' and I'm trying to create a modularized webmap setup from it. I want to break down this simple webmap to have it utilizing a module system with config files ...
2
votes
3
answers
577
views
Dojo Slider to control tiled map services?
am creating a web map to show Sea Level Rise in my County. I want to use a Slider for a user select the increment of Sea Level Change that wish to see.
I have been able to create Programatically ...
2
votes
1
answer
704
views
Legend Problem with arcGIS javascript API
I am new to arcGIS javascript API.I tried to display a simple dynamic map service with legend but its not displaying legend. I am not able to find error in my code. Please help me in resolving the ...
2
votes
1
answer
3k
views
Get data to display on the map legend?
I am trying to use the Legend widget from this link below to build a legend that displays our layers in the map:
https://developers.arcgis.com/en/javascript/home.html
I have added the legend widget ...
2
votes
1
answer
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
1
answer
141
views
How to build only custom AMD modules with dojo build system?
Over the last few years, my team has developed a web app with web maps using ArcGIS JS version 3. We opted to use the CDN (script src https://js.arcgis.com/3.36/) instead of hosting the entire SDK ...
2
votes
1
answer
105
views
Dojo private modules use them?
I need help with ArcGIS API for JavaScript, I need to use private modules in code for my tools, but I can't figure out how use them in my app like on click launch this module.
I'm lost in DoJo...
...
2
votes
1
answer
1k
views
How to change cursor of navigation tools in ArcGIS javascript api?
I want to change the cursor symbol for navigation toolbar(zoom in- zoom out- pan ...).
i search and found the question about change cursor symbol but i could not use the code. I dopn't know why its ...
2
votes
1
answer
146
views
Load dojo from local and ESRI packages separately
Is there by any chance a way to load dojo packages from my local and then load ESRI javascript api packages which i need?