Questions tagged [dojo]

Dojo Toolkit is an open source modular JavaScript library (or more specifically JavaScript toolkit) designed to ease the rapid development of cross-platform, JavaScript/Ajax-based applications and web sites.

Filter by
Sorted by
Tagged with
2 votes
1 answer
54 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 ...
user avatar
  • 133
2 votes
1 answer
185 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 ...
user avatar
  • 117
0 votes
2 answers
416 views

lang.hitch use in ArcGIS API for JavaScript [closed]

Can someone explain lang.hitch() function use in ArcGIS API for JavaScript?
user avatar
1 vote
0 answers
18 views

Out of stack - Internet Explorer - WebAppBuilder

I'm developing a viewer with ESRI WebAppBuilder. I have a widget that use a table programatically created with component dojox.grid.DataGrid. When Internet Explorer (version 11) renders datagrid with ...
user avatar
1 vote
1 answer
285 views

applyEdits to FeatureLayer does not add geometry

I'm trying to add the feature into the layer with a geometry type polygon. When I call applyEdits it adds the feature attributes into the layer but not its geometry. Here is my dummy data object which ...
user avatar
2 votes
0 answers
68 views

Using a callback or promise for asynchronous functions

I have 2 dropdowns that are created onOpen using Dojo/Dijit Select in my custom Web AppBuilder widget. The first dropdown contains parent projects and the second dropdown contains a list of ...
user avatar
  • 1,651
0 votes
1 answer
220 views

init.js:36 GET https://js.arcgis.com/3.28/esri/WebMap.js net::ERR_ABORTED 404

I got above error in my browser developer tools window. This happened when I added esri/WebMap to my widget.js file of custom widget I was building.
user avatar
  • 1
0 votes
1 answer
307 views

How to replace http for https before DOM Construct on load KMZ file with ArcGIS API JS

I have an application and it is loaded with https, this application loads a map with a KMZ file, and the content of that file has external reference to a PNG image that is loaded with http. This ...
user avatar
  • 123
1 vote
0 answers
254 views

Creating left split for MapView Container with ArcGIS API for JavaScript

I want my webmap to look something like this: https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layout_MapContainerSplitLeft However, rather than the map being on the right of ...
user avatar
0 votes
1 answer
62 views

Attaching dojo events in ArcGIS Javascript API 3.29

I am trying to do same job for two different events on map using dojo on() function. map.on('extent-change', function (event) { //code goes here } and map.on('zoom-end', function () { //same code ...
user avatar
2 votes
0 answers
103 views

Issues with ArcGIS Web AppBuilder creating custom widget by inheriting existing widget

I am trying to extend the inbuilt Select widget in the ArcGIS Web AppBuilder for Desktop using dojo. According to the documentation by ESRI we always inherit the 'dijit/_WidgetBase' module to create ...
user avatar
0 votes
1 answer
27 views

Building a dynamic querytask 4.11

Learning the js api i tried to make a querytask that will query a layer and update graphics on change. I think the problem is in my success("succ") function. I made this codepen: https://codepen.io/...
user avatar
  • 117
-1 votes
1 answer
40 views

How to know feature table's clear selection event in older version of ArcGIS? [closed]

I am using ArcGIS's feature table for showing data. I know that in new version clear-selection event fires when I click Clear Selection menu item from options. Is there any other way to know about ...
user avatar
  • 17
0 votes
0 answers
50 views

Configurable map viewer cannot display non-cached basemap?

I download the sample from github. Then I tried to add a custom basemap at the mapOption section. I have followed the instruction given in here. Also, I followed this post as well. But none worked, no ...
user avatar
  • 27
0 votes
1 answer
551 views

Configurable Map Viewer css.JS problem on Chrome

I have a problem in displaying my map. It runs fine on IE, but it cant even load on Chrome (blank white page as if nothing is executed). I find the problem in some css files : load-css.js and css.js. ...
user avatar
  • 27
1 vote
1 answer
151 views

Configurable Map Viewer custom basemap in viewer.js

I have a problem in configuring basemap in viewer.js. I want to use a completely offline basemap for my app. I have read the instruction here but can't make it work. Here is what i have tried : ...
user avatar
  • 27
1 vote
1 answer
212 views

Constrain Moveable DND Dojo Popup Window to Map Element

I have a ArcGIS Enterprise (Portal) Web AppBuilder template that I've customized to allow for my pop-up windows to be dragged around the screen, largely using the example located here. The issue I'm ...
user avatar
0 votes
1 answer
295 views

Can't get Dijit layout to work in Javascript API (BorderContainer/ContentPane)

EDIT: Well this is probably a big part of the issue, it appears my parser is not working. How do I fix that? I'm using the Javascript API 3.23. For whatever reason, when I create a BorderContainer ...
user avatar
  • 487
0 votes
1 answer
409 views

asynchronous execution javascript dojo (return a variable result of a query)

I would like to know if it's possible to return a variable in a function after finding the result in a queryTask. Apparently this is an asynchronous execution but, to be honest, I really need to ...
user avatar
0 votes
1 answer
282 views

Placing a widget inside a DIV

I have a div. <div class="left_panel box animate fadeInLeft three" id="layers" style="display:none;"> <div class="sidebar-head"> <h2>layers</h2> ...
user avatar
1 vote
2 answers
542 views

Need dojo array.map to wait for feature layer query to complete

I am executing an IdentifyTask and then using dojo array.map to create an array of Features to pass to an InfoWindow. The stripped down version of my code follows. var deferred = ...
user avatar
  • 111
0 votes
0 answers
131 views

how focus a widget on screen?

I'm open a lot of widgets programmatically. So I need focus a widget when it's opened. The first time that widget it's open, automatically set focus, but the second time it doesn't. updated Code to ...
user avatar
  • 295
0 votes
1 answer
503 views

How folded a widget on screen in Web App Builder?

I want make that a window like this Has the foldable behaviour, like this foldable window: I need a window foldable, moveable and resizable, any idea?
user avatar
  • 295
1 vote
2 answers
2k views

How open Web AppBuilder widget programmatically?

I'm trying open a widget from other widget: _open: function () { var config = WidgetManager.getInstance().appConfig.getConfigElementById("widgets_IdentifierRed_Widget"); WidgetManager....
user avatar
  • 295
0 votes
1 answer
78 views

Configuring custom network in the Directions dijit?

I'm making a CMV app and trying to make the directions widget work with my own network dataset. I replaced ESRI's street route network service with my own service, so viewer.js looks something like ...
user avatar
0 votes
1 answer
142 views

ArcGIS API Dojo problem to activate a button for a function

I'm trying to connect (re-connect) a function to a panel button the dom by id is ok, if I use a function like : on(selectPoly, "click", function(){ html.set(dom.byId("drawToolTips"),"Autre message ...
user avatar
  • 71
0 votes
2 answers
6k views

how to handle keyboard and click event

I am using ArcGIS JavaScript API and I want to show a message in console's log when I hold down "e" and click on a graphic drawn by a user. this.map.graphics.on ("click", lang.hitch(this, function(...
user avatar
2 votes
1 answer
79 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... ...
user avatar
  • 71
1 vote
1 answer
23 views

How to activate a FeatureLayer operation from a button using dojo/on function?

this is the setup of the FeatureLayer: on(MallaFeatureLayer.getFeatureLayer(), "before-apply-edits", lang.hitch(this, this.asignarUnidadLecturaMalla)); how could I link it to a button?
user avatar
1 vote
0 answers
457 views

Cascade filtering with ArcGIS API for JavaScript?

I want to populate my dropdown with attributes of shapefile for example in one dropdown on loading name of states given then after selecting the specific state next drop down loads its counties and ...
user avatar
0 votes
1 answer
291 views

Floating pane CMV?

I have a menubar (Search, Find, Draw, Measure) in my layout. By clicking on the respective buttons I would like to display the widgets.I am using the CMV widgets in my app.Based on the widgets ...
user avatar
  • 41
4 votes
0 answers
180 views

Access SharePoint data via ArcGIS Web AppBuilder Custom Widget

I need to read and write data from/to SharePoint site via ArcGIS Web AppBuilder Custom Widget. Does anybody any experiences how to do it? I tried SharePoint REST API and putting a code from this ...
user avatar
  • 51
1 vote
1 answer
192 views

'geometryService' argument is missing

I am using 'queryTask.execute' to get features from a layer. And have change the geometry-paths of the features(polyline), trying to save the changes using 'applyEdits'. This is throwing error 'esri....
user avatar
1 vote
0 answers
428 views

Zooming to selected record in enhanced data grid using DOJO?

I developed a webgis find tool using ArcGIS javascript api 3.17. users search a keyword and find points on map. the find tool result show in an enhanced datagrid and works correctly. What i want to do ...
user avatar
  • 5,777
1 vote
0 answers
1k views

Refreshing values of data grid of Dojo?

I developed a webgis tool to find some features on map using Find task of ArcGIS javascript api and show the attribute in a grid using enhanced grid dojo. Everything work fine at the first time and ...
user avatar
  • 5,777
1 vote
1 answer
1k views

Display Legend on my legend div

I am trying to display legends of all layers of map service in my legend div, for that I have written and tried some code. But not displaying, please suggest someone where is problem in my code. <!...
user avatar
  • 193
3 votes
1 answer
731 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 ...
user avatar
  • 2,284
2 votes
1 answer
159 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', ...
user avatar
  • 579
0 votes
1 answer
143 views

Modifying a map object parameter for ArcGIS JavaScript API printTask?

I want to change the extent and operational layers of a map for several printTasks. The goal is to take a group of polygons, and create a map of each one separately, changing the basemap and some ...
user avatar
  • 536
2 votes
0 answers
121 views

ESRI ARCGIS Flex - Javascript migration

We have a current architecture of FlexViewer and part ArcGIS Flex API based custom tool that's sitting on a IIS server to draw zones. ESRI is migrating to ESRI Javascript API and we have two options ...
user avatar
2 votes
0 answers
234 views

How to create a dojox.grid.DataGrid

I am fairly new in creating a web app builder, and I am trying to find a way to create a DataGrid using dojo. In one of the in panel customized widgets, I have a combobox that has a list of ...
user avatar
  • 21
2 votes
2 answers
708 views

Using Multiple Versions of ArcGIS API for JS in Same Application

We've a large web based GIS application running which uses an older version of ArcGIS API (v3.7) for JS. The ArcGIS JSAPI v3.7 is lacking some functionality which are available in v3.15. Now I also ...
user avatar
1 vote
0 answers
389 views

Creating in panel TOC widget using Web AppBuilder for ArcGIS developer edition?

I'm trying to create a custom widget, in web AppBuilder for developers, for my web application that will be a TOC. Does anyone have a code already produced for this or know how to adapt code to do ...
user avatar
0 votes
1 answer
60 views

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

I want 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. ...
user avatar
0 votes
2 answers
231 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 ...
user avatar
  • 339
4 votes
0 answers
215 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.
user avatar
1 vote
2 answers
9k views

Uncaught TypeError: Cannot read property 'on' of undefined

I have added a drawpolygon tool in navigation toolbar,but when clicking on this tool event is not firing. Please suggest me how to solve this error : Cannot read property 'on' of undefined. ...
user avatar
  • 193
-2 votes
1 answer
264 views

TypeError: dojo.promise is undefined [closed]

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 ...
user avatar
2 votes
2 answers
210 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", ... ...
user avatar
  • 339
0 votes
1 answer
164 views

Arcgis Javascript Api Identity Manager with proxy

I'm trying to setup an authentication architecture with a web app using arcgis Javascript api with a configured .NET proxy and a web adaptor. When i load my app the identity manager shows up for ...
user avatar