Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
879 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 ...
Ayush Saxena's user avatar
0 votes
1 answer
509 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.
dkm007's user avatar
  • 1
1 vote
0 answers
391 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 ...
yigezach's user avatar
0 votes
2 answers
971 views

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

Can someone explain lang.hitch() function use in ArcGIS API for JavaScript?
TARUN PUNETHA's user avatar
2 votes
1 answer
602 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 ...
segev's user avatar
  • 117
2 votes
1 answer
141 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 ...
dave823's user avatar
  • 153
0 votes
1 answer
554 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 ...
krekto's user avatar
  • 123
0 votes
1 answer
104 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 ...
user147504's user avatar
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 ...
Ruchira Welikala's user avatar
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 ...
Dennis Hunink's user avatar
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.
Matej's user avatar
  • 1,758
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....
Pilgrim's user avatar
  • 295
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(...
Maria Gomez's user avatar
1 vote
2 answers
9k 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. ...
msurya's user avatar
  • 193
6 votes
3 answers
8k 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 ...
Craig's user avatar
  • 4,580
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 ...
Staley's user avatar
  • 279
2 votes
0 answers
220 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 ...
Gurminder Bharani's user avatar
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 ...
mic's user avatar
  • 345
0 votes
1 answer
441 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 ...
MKF's user avatar
  • 669
1 vote
2 answers
599 views

Need dojo array.map to wait for feature layer query to complete

I am executing an IdentifyTask and then using dojo array.map to create an array of Features to pass to an InfoWindow. The stripped down version of my code follows. var deferred = ...
ponder275's user avatar
  • 111
1 vote
2 answers
427 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 ...
George's user avatar
  • 339
4 votes
1 answer
611 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 ...
George's user avatar
  • 339
3 votes
1 answer
794 views

Customizing ArcGIS API for JavaScript widget?

The default ESRI search dijit doesn't have all the functionality I need. Is it possible to get the default search dijit code and extend it and if so are there any guides on doing this? I couldn't find ...
Dowlers's user avatar
  • 2,354
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 ...
Kenny's user avatar
  • 127
1 vote
1 answer
1k views

Display Legend on my legend div

I am trying to display legends of all layers of map service in my legend div, for that I have written and tried some code. But not displaying, please suggest someone where is problem in my code. <!...
msurya's user avatar
  • 193
1 vote
0 answers
515 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 ...
Sarah Salar's user avatar
1 vote
1 answer
145 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 ...
Ann's user avatar
  • 157
1 vote
0 answers
1k views

Refreshing values of data grid of Dojo?

I developed a webgis tool to find some features on map using Find task of ArcGIS javascript api and show the attribute in a grid using enhanced grid dojo. Everything work fine at the first time and ...
BBG_GIS's user avatar
  • 5,835
0 votes
1 answer
552 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 ...
anurodh sahu's user avatar
1 vote
1 answer
973 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' ...
CaptainKirk128's user avatar
0 votes
1 answer
2k 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? <!...
msurya's user avatar
  • 193
2 votes
3 answers
577 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 ...
BretW's user avatar
  • 479
6 votes
1 answer
3k views

Using toggle button with ArcGIS API for JavaScript?

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 ...
Andy Rae's user avatar
1 vote
1 answer
790 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(); ...
wossa's user avatar
  • 23
0 votes
1 answer
163 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 ...
Flo's user avatar
  • 71
0 votes
2 answers
483 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", "esri/layers/ImageParameters",...
msurya's user avatar
  • 193
3 votes
2 answers
1k views

Getting event object from Draw Toolbar onDrawEnd using ArcGIS API for JavaScript?

I am using the Draw Toolbar in the Esri Javascript API v3.4 and connecting to the onDrawEnd event using aspect.after(drawingToolbar, "onDrawEnd", drawEndHandleFunction, true); I am using the Draw ...
Brian's user avatar
  • 4,229
2 votes
2 answers
561 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 ...
Todd Fagin's user avatar
-1 votes
1 answer
827 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: ...
noobieDev's user avatar
  • 101
0 votes
1 answer
313 views

Floating pane CMV?

I have a menubar (Search, Find, Draw, Measure) in my layout. By clicking on the respective buttons I would like to display the widgets.I am using the CMV widgets in my app.Based on the widgets ...
Mayur's user avatar
  • 41
1 vote
1 answer
573 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 ...
Jerry's user avatar
  • 11
2 votes
1 answer
1k 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 ...
George's user avatar
  • 339
2 votes
0 answers
5k 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 ...
Marco's user avatar
  • 147
3 votes
1 answer
240 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 ...
MDHald's user avatar
  • 1,869
6 votes
2 answers
7k 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: ...
Craig's user avatar
  • 4,580
2 votes
1 answer
3k 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 FeatureLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/...
Josh Ferrell's user avatar
2 votes
2 answers
229 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", ... ...
LCaraway's user avatar
  • 339
2 votes
2 answers
1k 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. ...
Craig's user avatar
  • 4,580
0 votes
2 answers
461 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 ...
Ravi's user avatar
  • 131
3 votes
1 answer
488 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 ...
Andy's user avatar
  • 31