All Questions
122 questions
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 ...
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.
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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
61
views
Changing title of app [closed]
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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?
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 ...
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 ...
0
votes
1
answer
185
views
Filtering GeoRSSLayer contents in ArcGIS API for JavaScript
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
-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:
...
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 ...
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(...
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 ...
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 ...
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 ...
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' ...
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 ...
4
votes
1
answer
349
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 js.arcgis....
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 ...
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 = ...
0
votes
0
answers
172
views
how focus a widget on screen?
I'm open a lot of widgets programmatically. So I need focus a widget when it's opened. The first time that widget it's open, automatically set focus, but the second time it doesn't.
updated
Code to ...
0
votes
0
answers
92
views
Enabling navigation tools when 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 ...
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();
...
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.
...
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.
<!...
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.
...
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",
...
...
2
votes
1
answer
1k
views
How to add an identify button with ArcGIS JS API?
GIS StackExchange is the first website that I've come across that has come near to answering my question, but somehow I can't work the answer out in my head/or the answers here have confused things ...
2
votes
1
answer
105
views
Dojo private modules use them?
I need help with ArcGIS API for JavaScript, I need to use private modules in code for my tools, but I can't figure out how use them in my app like on click launch this module.
I'm lost in DoJo...
...
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 ...
0
votes
1
answer
62
views
How to set LocateMe Widget static or predefined location(or x & y)
I want 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. ...
1
vote
1
answer
44
views
How to activate a FeatureLayer operation from a button using dojo/on function?
this is the setup of the FeatureLayer:
on(MallaFeatureLayer.getFeatureLayer(), "before-apply-edits", lang.hitch(this, this.asignarUnidadLecturaMalla));
how could I link it to a button?
1
vote
0
answers
660
views
Uncaught TypeError: Cannot read property 'toString' of undefined from ArcGIS JavaScript API? [closed]
I updated my application 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(...
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 ...
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 ...
1
vote
0
answers
244
views
Combining three data extraction functions into one button? [closed]
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 ...