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

13
votes
4answers
3k views

Which framework is best to implement an application robustly, using ArcGIS Server JS API?

Over on the Esri forum, user Matt Moyles suggested that the approach used in the Esri JS samples isn't suitable for robust development of a web mapping application using HTML, JavaScript and CSS: ...
6
votes
2answers
677 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 ...
5
votes
2answers
277 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 ...
5
votes
2answers
778 views

Moveable ESRI / 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 ...
4
votes
1answer
211 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 ...
4
votes
2answers
887 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 ...
4
votes
2answers
320 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
2answers
2k 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: ...
4
votes
1answer
1k 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 ...
4
votes
2answers
843 views

Auto resize map to 100% after content pane is removed in ArcGIS JSAPI

Been at this for hours and I can't seem to figure it out. I'm using AG-JSAPI 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 ...
4
votes
0answers
135 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 ...
3
votes
1answer
427 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 ...
3
votes
1answer
109 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
1answer
519 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
1answer
824 views

How do I use a toggle button with the ESRI javascript api

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 ...
3
votes
2answers
414 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
0answers
358 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 ...
3
votes
2answers
125 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 ...
2
votes
1answer
125 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,
2
votes
2answers
445 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
1answer
112 views

Add button to map

I know this is a a stupid and direct question. How do I add a button to a normal map? Example: http://developers.arcgis.com/en/javascript/samples/map_simple/ I'm finding a way to make a button ...
2
votes
1answer
430 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 ...
2
votes
3answers
76 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
1answer
621 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
1k 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 ...
2
votes
1answer
1k 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
2answers
416 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
1answer
67 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?
2
votes
2answers
332 views

How do I hide a feature layer service

I'm only just getting into dojo, so I have what most would probably consider a very basic question. I've built my own legend in a div and added divs for the legend items. This is all quite manual, ...
2
votes
1answer
908 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 ...
2
votes
1answer
790 views

A random “Could not load cross-domain” message when loading Esri map

My application displays an Esri map, by accessing the Esri public sampleserver. I use Esri dojo API for this purpose. The Esri dojo I use is of version 1.6 and is locally installed (as a war) on my ...
2
votes
0answers
43 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 ...
2
votes
1answer
64 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 ...
2
votes
0answers
1k views

How to dynamically add all feature layers using ArcGIS JavaScript API?

I have a mapserver http:// mymapserver/services/rest/xxx/mapserver/ which contains 7 layers with /mapserver /1 /through mapserver/7 If a define an ArcGISDynamicMapServiceLayer and 7 ...
2
votes
0answers
107 views

Projection declaration in dojox.geo.openlayers possible?

I am trying to integrate some maps of my own into the dojox charting demo and I had success in exporting a shapefile (externally, i.e. with my own parser) to the dojo JSON map format. The map is in ...
2
votes
0answers
148 views

dojox.geo.openlayers roadmap?

I'm curious as to the future of dojox.geo.openlayers. Presently is seems only to be a solution for positioning widgets on the map but I can imagine developing a suite of map specific dijits such as ...
2
votes
0answers
499 views

ArcGIS Javascript API - IE9 Quirks Mode

I'm having difficulty understanding why ArcGIS Javascript API isn't rendering SVG when running in IE9 quirks mode. When I visit the ESRI sample site at ...
2
votes
1answer
693 views

How to add an identify button with Arcgis JS API?

GIS stackexhange is the first website that i've come across that has come near to answering my question, but some how i can't work the answer out in my head/or the answers here have confused things ...
1
vote
1answer
704 views

create buffer around locator-derived point

I am trying to create a buffer around a point derived from a locator search, using this example: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm ..but I am getting no ...
1
vote
1answer
79 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
1answer
73 views

Using ESRI Dojo version for building web application

If I am using ESRI's JavaScript API for my application, then I cannot load a different version of Dojo other than the one shipped with ESRI. I have to rely on ESRI for Dojo. The map appears in only 3 ...
1
vote
1answer
984 views

sorted ItemFileReadStore list not pushed to dropdown menu // Dojo, ArcGIS

this may be more a Dojo question than ArcGIS, but I am not sure if the Javascript API is related to this issue. I am trying to alphabetically sort a Dojo store and show these items in a dropdown ...
1
vote
1answer
149 views

How can I web map service published by Dojo in Flex app

We want to include a base map layer in hosted Flex app. We requested web map service from the vendor and I got a file (.htm) from client with some dojo code. I can understand the code but I am not ...
1
vote
1answer
415 views

open current selection's tab in tabbed infoWindow container: ArcGIS Javascript API

I am updating a webApp using ArcGIS Javscript API 2.1 I have an infoWindow with tabs which shows all of the features in my map. I built it based on this example: ...
1
vote
1answer
668 views

JS API Toggle Pop-Up On & Off

I am attempting to allow for the pop-up to be toggled on and off by pressing a checkbox. Here are some snippets of the code: var clickHandler function popupOn(evt){ var query = new ...
1
vote
1answer
26 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 ...
1
vote
1answer
326 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 ...
1
vote
1answer
64 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 ...
1
vote
1answer
529 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 ...
1
vote
1answer
162 views

How can I use the ArcGIS JavaScript API along with a separate version of Dojo?

I am using the ArcGIS API for JavaScript in my application which is being developed using IBM WebSphere Portal. When I integrate ESRI with my HTML code it works fine but when I load the ArcGIS ...