Skip to main content

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
1 answer
805 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 ...
0 votes
1 answer
504 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.
1 vote
0 answers
387 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
1 answer
668 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. ...
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 ...
0 votes
1 answer
103 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
1 answer
100 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 ...
1 vote
1 answer
142 views

ArcGIS JSAPI Toggle Identify (AMD style) [closed]

I am trying to convert the Toggle Identify example to AMD style. However, I am stuck with an empty map. Debugging in Firebug doesn't help too much. Could anyone help me to find where I am wrong? The ...
0 votes
1 answer
60 views

Changing title of app [closed]

We have a map with streets as basemap. We have been trying unsuccessfully, for the last two days to change the basemap to tiled layer with no success at all. I am posting a snippet because script is ...
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 ...
2 votes
1 answer
136 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 ...
1 vote
2 answers
424 views

Placement of Save Button in ArcGIS Javascript AttributeInspector dijit

I am having a problem with an AttributeInspector that I noticed also exists in an online sample here: http://developers.arcgis.com/javascript/samples/ed_attribute_inspector/ If you click on a polygon ...
2 votes
1 answer
565 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 ...
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.
0 votes
2 answers
937 views

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

Can someone explain lang.hitch() function use in ArcGIS API for JavaScript?
1 vote
0 answers
25 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 ...
2 votes
0 answers
125 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 ...
1 vote
1 answer
175 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 : ...
3 votes
1 answer
239 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 ...
0 votes
1 answer
544 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 ...
0 votes
1 answer
181 views

Filtering GeoRSSLayer contents in ArcGIS API for JavaScript

I would like to make use of a public geoRSS feed with content from 10years (200+ items), however since it is too much information, i would like to show only a subset of this content in my map. 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
0 answers
218 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
1 answer
30 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 vote
1 answer
280 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
1 answer
2k views

Esri API JS, popup not displaying after first click

Demographics data shows upon first click but not after, park information does work. I've changed around almost everything with non real solution. I feel like for whatever reason my feature server data ...
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....
4 votes
1 answer
610 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 ...
-1 votes
1 answer
61 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 ...
2 votes
3 answers
576 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 ...
0 votes
0 answers
60 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
1 answer
405 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> ...
0 votes
1 answer
162 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
1 answer
638 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 ...
-1 votes
1 answer
826 views

TitlePane not rendering - working with basemapGallery sample code 2

I'm having the exact same issue as this question: TitlePane not rendering - working with basemapGallery sample code but the solution doesn't work for me. my javascript: ...
1 vote
1 answer
131 views

Customizing Configurable Map Viewer (CMV) to be available on two languages choosing with button click?

I want to make this application available on two languages (MK and EN) depending on whether the user choose (click) [MK] or [EN] button. If I set variable loc = "MK", default application ...
3 votes
1 answer
487 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 ...
0 votes
2 answers
7k 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(...
1 vote
1 answer
570 views

Create event handler for "x" button on type: 'floating' widget?

How do you create event handler for "x" button on type: 'floating' widget? "OnClose" fires every time: this.parentWidget.hide(); is called. I want to intercept the event when the "x" button in the ...
1 vote
1 answer
238 views

Configurable Map Viewer (CMV) - add tabs to widget [closed]

I m trying to add a tab panel with three tabs in a widget, but I get the following message in the debugger: nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc. Put ...
0 votes
1 answer
437 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 ...
8 votes
3 answers
3k views

Moveable ArcGIS Identify Popup Window (Dojo)

I'm trying to get a popup window that identifies a location to be moveable. My code is similar to the API example: var popupOptions = { fillSymbol: new esri.symbol.SimpleFillSymbol(esri.symbol....
1 vote
0 answers
510 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
1 answer
463 views

Showing Dojo charts On OpenLayers Map

I am trying to show dojo GFXLayer of dojox.geo.openklayers on my map layers , the problem is that my map is not showing townLayer but map is showing default OSM Layer and GFX layer.What I am Doing ...
1 vote
1 answer
970 views

Accessing Draw toolbar of ArcGIS JavaScript API without dojo?

I am building an application using Angular JS, and have been accessing ESRI classes thus far in the following way: var graphicsLayer = new esri.layers.GraphicsLayer(); I have access to the 'esri' ...
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 ...
1 vote
0 answers
345 views

How to add Legend Panel to Dojo / OpenLayers?

I have OpenLayers app on Dojo framework. I've been serving WMS layers with GeoServer and wanted to use GetLegendGraphic to build legend for all layers. I've seen there are some ready widgets (like ...
4 votes
1 answer
338 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....
3 votes
3 answers
3k views

ESRI JavaScript API FeatureLayer Click Event

I am using FeatureLayers in the API to load in a layer. I have an info template set for the layer for identifying individual features. I am trying to disconnect the click event from the layer while ...
0 votes
1 answer
539 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 ...