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

7
votes
3answers
2k 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 ...
3
votes
1answer
192 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 ...
2
votes
1answer
33 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 ...
0
votes
1answer
223 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' ...
1
vote
0answers
239 views

WMS layer as basemap in Configurable Map Viewer (CMV)

My goal is to use both wms layers and arcgis tiled layers as basemaps. I have accomplished this before in a separate application by simply adding it to the map as a layer and reordering the selected ...
1
vote
0answers
20 views

How can I create an in panel TOC widget using the 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
14 views

How to set LocateMe Widget static or predefined location(or x & y)

I whant 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. ...
2
votes
1answer
953 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 ...
-1
votes
1answer
20 views

TypeError: dojo.promise is undefined

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

How to get color from a marker symbol using esri and javascript

I use Esri map and javascript, and I set the variable: var pointSymbol = new esri.symbol.SimpleMarkerSymbol( esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 15, new ...
0
votes
0answers
22 views

ArcGis 2 JavaScript Api Conflict 3.11 and 3.16

Have problem with arcgis javascript api.My template(Tour Map- Customized) is old and use 3.11. <script src="//js.arcgis.com/3.11/init.js"></script> And i want to use ...
2
votes
1answer
242 views

Can't close custom Web AppBuilder widget programmatically

I am creating a custom widget in ArcGIS Web AppBuilder. This page shows how you can use the WidgetManager to close a widget programmatically, saving the user from having to click the X button ...
0
votes
2answers
49 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 ...
3
votes
0answers
29 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
98 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. ...
1
vote
1answer
414 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
46 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
28 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 ...
2
votes
0answers
100 views

Populate list from arcgis server service in JQUERY javascript aplication instead of DOJO?

I would like to populate a list on a select combobox using jquery with data from an arcserver service.I'm wondering if this is possible and if so how i would implement it. I'm using the esri ...
1
vote
1answer
45 views

Is there a way to get the vertices of segment of polyline?

I have a polyline 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 polyline on map that with ...
1
vote
0answers
30 views

Highlighted graphics resets on zoom in ArcGIS API for JavaScript?

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! ...
0
votes
1answer
140 views

Esri API JS, popup not displaying after first click [duplicate]

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

Adding more than 5000 paths string in ElevationProfile using ArcGIS API for JavaScript?

I'm creating a simple ElevationProfile using the ArcGIS API for JavaScript. In the URL it's described as MaximumRecords: 5000 Its allows only 5000 polyline array paths but I have more than 5000 ...
5
votes
1answer
2k 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 ...
1
vote
1answer
268 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 ...
1
vote
4answers
3k 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
1answer
108 views

Receiving dojo.io.script error Error: Invalid URL?

I am trying to get a buffer circle on my map,when I click on map. I tried with the following code, but I got error: dojo.io.script error Error: Invalid URL How can I avoid this error? ...
7
votes
1answer
312 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 ...
2
votes
2answers
90 views

Using legend with dijit/form/DropDownButton in ArcGIS API for JavaScript?

I am very new to the ArcGIS API for Javascript and am by no means a programmer. Nonetheless, I have been fairly successful at finding existing code and modifying it to my needs. That is, until now. I ...
2
votes
0answers
78 views

ArcGIS API for JavaScript census info popup and parks popup one map?

I have two operational ArcGIS API for JavaScript maps that I want to combine to have two different popups. I am trying to figure out a way to add the number of parks to the census popup that would ...
0
votes
2answers
64 views

uncaught type error:dom is undefined

when trying to find radiobutton id using dom.byId("id") getting the error dom is undefined. require([ "esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", ...
0
votes
2answers
55 views

Dijit Horizontal slide bar issue

I'm trying to implement a Horizontal Slider using 'dijit/form/HorizontalSlider'. I successfully got the Slider working but the slider comes with a red color. How can i change the color to white or any ...
1
vote
0answers
60 views

window.open and adding multiple maps to DOM of new window

I have created an HTML template to open from my existing arcgis JavaScript application. The HTML template is to be populated with several maps and text based on a user selection of the main app. My ...
0
votes
0answers
29 views

ArcGIS Edit Tool is not working in IE10

I need to move the feature using the Edit tool from esri javascript api 3.13 editLayer : function(layer) { alert("Use 'shift+Mouse Click' to Select the Feature"); this.layer = ...
1
vote
1answer
48 views

g.renderer is null. And sometimes is not

I have an TypeError: g.renderer is null while I'm loading my map application. The worst is that problem sometimes happens, sometimes not. require([ 'dojo/parser', 'dijit/layout/ContentPane', ...
1
vote
1answer
324 views

How to change cursor of navigation tools in ArcGIS javascript api?

I want to change the cursor symbol for navigation toolbar(zoom in- zoom out- pan ...). i search and found the question about change cursor symbol but i could not use the code. I dopn't know why its ...
0
votes
0answers
33 views

How to enable navigation tools when the dialog is appeared on map?

I created a simple webgis with Navigation tools.The navigation tools is located in a dialog. the problem is when the dialog appeared on map, i couldn't interact with map and the background of dialog ...
0
votes
1answer
43 views

Buttons wont work when I copy the Content of the TOC dynamically into dojo FloatingPane and back

We work with a combination of dojo Vers 1.10 and ArgGis Javascript APi 3.11. We were asked if it ist possible to copy the TOC Layerlist into a seperate dojo FloatingPane by rightclicking into the ...
0
votes
1answer
160 views

How activate href link in ArcGIS API?

I have some problems with opening a link in ArcGIS API. I have my popup window where LAT, LONG and LINK are shown. function addPoint(evt) { var latitude = evt.mapPoint.getLatitude(); ...
0
votes
0answers
27 views

How do I remove HorizontalSlider dynamically?

I am using ArcGIS API for JavaScript and am creating Horizontal Sliders for opacity of maps dynamically. However, when I select a different map and create a new slider, it doesn't get rid of the old ...
2
votes
1answer
2k 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 ...
2
votes
3answers
269 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
558 views

ArcGIS JavaScript API JSONP request

I am trying to add featues to esri.layers.FeatureLayer from response of JSONP request with esri.request. Interestingly I have right response and all features are perfectly shown on the map,BUT I get ...
1
vote
1answer
203 views

Passing Arguments Between Widgets with Mixedin Templates - CMV Builder

I am attempting to manipulate a custom widget (Table) I built. I first initialize the widget in the viewer.js class and attach it to the 'sidebarBottom' pane in the viewer. Since the 'Find' widget is ...
1
vote
2answers
112 views

FeatureLayer fullExtent is being constricted by Dojo ContentPane side panel

I have an ArcGIS JavaScript application which displays one single FeatureLayer on a map which is in a Dojo BorderContainer/ContentPane template similar to the one shown here. I am trying to ...
4
votes
3answers
471 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 ...
1
vote
0answers
138 views

enhanced grid dojo [closed]

I have a widget which consists of two panels.I need to place a dojo enhancedGrid in both the panels . However,the enhancedGrid appears only in one of the two panels despite the fact that I have ...
0
votes
1answer
103 views

What would cause Dojo in later versions of ArcGIS Javascript (v3.12) from working in Internet Explorer?

On my testing machine I experience no problems with using http://developers.arcgis.com/javascript/samples/featuretable/ but if I run the same example on my client's machine I get "'require' is ...
3
votes
1answer
71 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 ...
3
votes
1answer
351 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 ...