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
1
vote
0answers
11 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 ...
0
votes
1answer
20 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 ...
2
votes
0answers
15 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 ...
0
votes
1answer
30 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.
0
votes
1answer
80 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 ...
1
vote
0answers
91 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 ...
0
votes
1answer
38 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 ...
2
votes
0answers
61 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 ...
0
votes
1answer
21 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/...
-1
votes
1answer
35 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 ...
0
votes
0answers
46 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 ...
0
votes
1answer
271 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. ...
1
vote
1answer
107 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 : ...
1
vote
1answer
155 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 ...
0
votes
1answer
192 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 ...
0
votes
1answer
247 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 ...
0
votes
1answer
212 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> ...
1
vote
2answers
496 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 = ...
0
votes
0answers
97 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 ...
0
votes
1answer
403 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?
1
vote
2answers
1k 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....
0
votes
1answer
68 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 ...
0
votes
1answer
113 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 ...
0
votes
2answers
2k 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(...
2
votes
1answer
66 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... ...
1
vote
1answer
17 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?
1
vote
0answers
406 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 ...
0
votes
1answer
275 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 ...
3
votes
0answers
127 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 ...
1
vote
1answer
155 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....
3
votes
0answers
92 views

Unresponsive Script ArcGIS Online [closed]

I'm receiving the following 'unresponsive script' error within all major browsers when viewing a particular map hosted on ArcGIS Online: Text: https://cdn.arcgis.com/cdn/10175/js/jsapi/dojo/dojo.js:...
1
vote
0answers
387 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 ...
1
vote
0answers
826 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 ...
1
vote
1answer
728 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. <!...
3
votes
1answer
569 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 ...
2
votes
1answer
133 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', ...
0
votes
1answer
109 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 ...
2
votes
0answers
109 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 ...
2
votes
0answers
199 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 ...
2
votes
2answers
545 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 ...
1
vote
0answers
350 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 ...
0
votes
1answer
53 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. ...
0
votes
2answers
179 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 ...
5
votes
0answers
190 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.
1
vote
2answers
8k 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. ...
-2
votes
1answer
218 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 ...
2
votes
2answers
183 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", ... ...
0
votes
1answer
140 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 ...
0
votes
1answer
418 views

Getting vertices of segment of polyline using ArcGIS API for JavaScript? [closed]

I have a poly line with 3 co-ordinate, say (x1,y1), (x2,y2), (x3,y3). Can I get the vertices (x1,y1), (x2,y2) if clicked on line-segment drawn by (x1,y1), (x2,y2)? I have a poly line on map that with ...
2
votes
0answers
276 views

Highlighted graphics resets on zoom in ArcGIS API for JavaScript? [closed]

I am highlighting graphic using graphic.setSymbol(pictureSymbol). It is working fine. But, when map is zoomed the symbol graphic is reset to default. If anyone has come over the issue, please help! ...