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
881 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 ...
6
votes
1answer
188 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 ...
5
votes
1answer
2k 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 ...
5
votes
2answers
989 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 ...
5
votes
2answers
419 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 ...
4
votes
1answer
244 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
1k 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
361 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
2answers
2k 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 ...
3
votes
1answer
446 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
128 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
625 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
1k 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
503 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
1answer
57 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 ...
3
votes
0answers
448 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
140 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
454 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
1answer
123 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 ...
2
votes
2answers
571 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
139 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
2answers
2k 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
538 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
2answers
81 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 ...
2
votes
3answers
135 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
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
2k 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
534 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
866 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
73 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
581 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
1k 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
831 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
1answer
69 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
89 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
2k 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
127 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
158 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
531 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
773 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
801 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
834 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
272 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 ...
1
vote
1answer
87 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
1k 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
162 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
468 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
24 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 ...