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.

learn more… | top users | synonyms

1
vote
1answer
7 views

How to customize 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 language ...
1
vote
1answer
23 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 ...
2
votes
1answer
25 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 ...
1
vote
1answer
21 views

set definition expression based on slider values

Using the Esri JavaScript API I want to control the set.DefinitionExpression values based on a user controlled range slider. The data is loaded from REST as ondemand using: var POP_Total = new ...
1
vote
1answer
49 views

Programmatically access a declarative ToggleButton

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 widget ...
1
vote
1answer
25 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 ...
3
votes
2answers
125 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 ...
0
votes
0answers
45 views

ArcGIS Javascript API 3.12 Error

I updated my app to 3.12 and am getting the following error: Uncaught TypeError: Cannot read property 'toString' of undefined It is being triggered by the following line: coordMenu.addChild(new ...
1
vote
1answer
33 views

CMV Widget Toggle

In Configurable Map Viewer project, I'd like to be able to set the initial display of a widget to hidden and show it with a press of a button, for example, by clicking on a button in a toolbar. Take ...
1
vote
1answer
42 views

Tabs in ESRI Popup

I am trying to get popup's working in my esri JS map and I have the tab's mostly working but I am missing a resize function to have the tab container sized properly on load. When I click a polygon and ...
1
vote
1answer
34 views

Configurable Map Viewer (CMV) - add tabs to widget

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
0answers
18 views

Individual Feature Class that jumps TO individual Feature in Webmap

I am using the WAB(3) (Web App Builder, Beta 3) doing development of ESRI-based maps using FeatureClasses stored in our own City Government REST Services. We currently have a program called ...
0
votes
1answer
96 views

How to re-implement a Dojo application using Leaflet?

I apologize in advance if this is not the correct forum to ask my question. I have an web map application developed using the Dojo framework. However I would like to create the same web map ...
1
vote
1answer
67 views

Proxy error with ArcGIS PrintTask - AMD

I am trying to add a simple layer of security to my ArcGIS JS app. I do not want to prompt my users for a login to retrieve a token. So instead I pass the username/password inside this PHP proxy: ...
2
votes
2answers
118 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 ...
1
vote
1answer
39 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 ...
3
votes
1answer
69 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
1answer
87 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 ...
0
votes
0answers
92 views

Add Stacked Column Chart in InfoWindow

I want to add a a dojo stacked column chart to my InfoWindow (not pop up) that displays when a user clicks on a county in my map. The chart is based on land use information in each county layer from 3 ...
0
votes
0answers
36 views

dojo.connect(map, “onClick”,

iam using Onclick to draw pin icon on the map after click event its working fine on IE but its didt work on firfox and chroum , by the way iam using 3.2 js api library my code like this : ...
0
votes
0answers
90 views

Dojo Stacked Columns Chart for JavaScript ArcGIS Web Map Pop

Anyone know how to use the the StackedColumns chart in dojo for ArcGIS JavaScript API? I need to add one to my popup window. I can only find the documentation below: ...
1
vote
2answers
67 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 ...
0
votes
0answers
299 views

adding a column containing buttons in dojo grid arcgis jsapi

I am using ArcGIS jsapi to develop a web application where I use a synchronous geoprocessing service that return a shapefile. I used the shapefile table to populate 2 dojo grids depending on the value ...
1
vote
0answers
79 views

Google Maps API to DOJO/ESRI Web App

I have a GIS webpage in HTML5/JavaScript using the Google Maps API. I found out we can no longer use the Google Maps imagery provided, and I need to switch to ESRI Imagery (free). Can someone help me ...
1
vote
0answers
82 views

How to combine three data extraction functions into one button?

I am looking to simplify my code. As of right now I have some code that allows users to extract GIS data in three different ways: Extract by drawn extent Extract by extent of the a county Extract by ...
2
votes
2answers
92 views

Make InfoTemplate moveable but still highlight attributes

I’m using the esri/InfoTemplate in the Javascript API to identify features. However, it gets anchored to the mouse click and cannot be moved around. Based on this answer I used dojo/dnd/Moveable to ...
2
votes
1answer
513 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. Thanks,
-1
votes
1answer
351 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: ...
0
votes
1answer
185 views

return when asynchronous task has completed

I'd need a function to wait until the asynchronous task has completed and then return. In my example, I'm getting undefined returned from the "execute" method: var result = myClass.execute(obj); ...
0
votes
0answers
73 views

Add Print Dijit to the map context menu

I'd need to implement print map functionality from the map context menu (right click on the map). Here, I create a printer: // ------------------------------------------ //add printer // ...
0
votes
1answer
132 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 ...
0
votes
1answer
59 views

filtering GeoRSSLayer contents in arcgis javascript API?

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 ...
0
votes
0answers
78 views

Combo Box selection to definition expression

Using ESRI JavaScript API I would like the pass the selection in a combo box to the setDefinitionExpression. I think this should be possible, but I am not sure of exactly what to do. The code that ...
2
votes
3answers
144 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
0answers
148 views

How to set Content for ArcGIS Server Identity Manager signin dialog in JSAPI

I am trying to change the content for the signin dialog of Identity Manager and something seems to be off. I used dialog.set("content",newContent); Similar title method worked for title-but not for ...
1
vote
0answers
69 views

Query Huge data passing in POST method [closed]

i have a feature layer in arcGIS, which contains huge number of features, from the Java desktop application i need to make a call to open a web browser and pass the id's of the features, which has to ...
1
vote
1answer
309 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 ...
0
votes
1answer
918 views

replacing dijit.ComboBox with dijit.Select results in error (ArcGIS Javascript API)

I am currently populating a Dojo ItemFileReadStore with the results of an ArcGIS query (Javascript 3.4 API), which is then passed to a Dijit COmboBox. I am now having problems with the ComboBox in iOS ...
3
votes
1answer
938 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 ...
2
votes
1answer
1k views

How do I 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
1answer
132 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 ...
1
vote
0answers
40 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
1answer
51 views

How do I change my title of app?

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 ...
1
vote
1answer
80 views

ArcGIS JSAPI Toggle Identify (AMD style)

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
1answer
73 views

TabContainer ArcGIS API for JavaScript

I am a novice programmer, but I know enough to be dangerous. Here's my issue and hopefully someone knows the answer. I am developing an application with 4 tabs on the left and a map from ArcGIS ...
2
votes
1answer
92 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 ...
1
vote
2answers
1k views

How to create working Hyperlinks in OnDemandGrid Cells

I'm creating a simple ArcGIS application that shows a table of data from a feature layer, one of which is a URL string. I'd like to make that string be a clickable hyperlink. Is this possible and if ...
0
votes
2answers
483 views

Moving ArcGIS JSAPI Basemap Gallery Widget down 10px when opened

How can I move the Basemap gallery 10px down from its original position when it's opened. The basemap gallery sample, I am referring can be found here: ...
4
votes
1answer
250 views

Why should I use the AMD style deceleration in ArcGIS JS API?

It seems to me like this: var point; require(['esri/geometry/Point'], function(Point) { point = new Point(); } does the same thing as: var point = new esri.geometry.Point(); Is there any ...
1
vote
0answers
145 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 ...