All Questions
122 questions
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 ...
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 ...
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?
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.
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 ...
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 ...
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 ...
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
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
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 ...
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....
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 ...
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(...
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...
...
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
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 ...
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
1
answer
256
views
'geometryService' argument is missing
I am using 'queryTask.execute' to get features from a layer. And have change the geometry-paths of the features(polyline), trying to save the changes using 'applyEdits'. This is throwing error 'esri....
1
vote
0
answers
492
views
Zooming to selected record in enhanced data grid using DOJO?
I developed a webgis find tool using ArcGIS javascript api 3.17. users search a keyword and find points on map. the find tool result show in an enhanced datagrid and works correctly. What i want to do ...
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 ...
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.
<!...
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 ...
2
votes
1
answer
212
views
ArcGIS JS API: Basic map not loading inside dojo BorderContainer
I am facing this issue while loading the simple basic arcgis map inside dojo BorderContainer. Following is the code that I am trying,
this.mapContainer = new BorderContainer({
region: 'center',
...
0
votes
1
answer
206
views
Modifying a map object parameter for ArcGIS JavaScript API printTask?
I want to change the extent and operational layers of a map for several printTasks. The goal is to take a group of polygons, and create a map of each one separately, changing the basemap and some ...
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. ...
0
votes
2
answers
286
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 ...
4
votes
0
answers
262
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
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
1
answer
326
views
TypeError: dojo.promise is undefined [closed]
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 ...
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",
...
...
0
votes
1
answer
211
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 ...
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 ...
2
votes
0
answers
350
views
Highlighted graphics resets on zoom in ArcGIS API for JavaScript? [closed]
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!
...
2
votes
0
answers
52
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 ...
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?
<!...
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 ...
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",...
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 ...
1
vote
0
answers
415
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 ...
1
vote
0
answers
1k
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 '...
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 ...
1
vote
1
answer
191
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',
...
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 ...
2
votes
1
answer
1k
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 ...
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
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 ...
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' ...
1
vote
2
answers
211
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 ...