4
votes
Accepted
Customizing ArcGIS API for JavaScript widget?
it is possible
read this document
for example :
firstly set dojo config
dojoConfig = {
parseOnLoad: false,
packages: [{
"name": "customWidget",
"...
3
votes
Accepted
lang.hitch use in ArcGIS API for JavaScript
require(["dojo/_base/lang"], function(lang){
var myObj = { //A simple object with the property of foo
foo: "bar"
};
var func = lang.hitch(myObj, function(){...
3
votes
Accepted
ArcGIS JS API: Basic map not loading inside dojo BorderContainer
It looks like you may be missing the esri.css file.
Make sure you have included the following in your HTML file.
<link rel="stylesheet" href="//js.arcgis.com/3.17/esri/css/esri.css">
2
votes
Accepted
How open Web AppBuilder widget programmatically?
This function works for me:
_openPanelWidget: function (aWidgetId) {
var def = new Deferred();
var wm = WidgetManager.getInstance();
var myWidget = wm.getWidgetById(aWidgetId);
if (...
2
votes
Need dojo array.map to wait for feature layer query to complete
Your issue is that the featureLayer.selectFeatures() method returns a promise. So you have to wait till the promise is resolved to set the Info Template. It is nothing related with dojo.map. The same ...
2
votes
Accepted
asynchronous execution javascript dojo (return a variable result of a query)
You have to use promises to wait for the results, and do whatever you want with them. You can check the related dojo Deferred documentation for better understanding:
require([
...
"dojo/Deferred",
...
2
votes
Accepted
Constrain Moveable DND Dojo Popup Window to Map Element
I don't specifically know how to resolve this problem, but I came across your post and figured I would try to help in any way I could.
This likely is a bug between dojo (suggesting a one size fits ...
2
votes
How to know feature table's clear selection event in older version of ArcGIS?
I am not sure I understood your question, I will explain about ArcGIS 9.3 because you tagged ArcGIS 10.0. Thus, I am not sure are you talking about version 10 or need older than 10 like 9.3.
You can ...
2
votes
Accepted
Loading a custom module from different file with ESRI API4 and Dojo
you can define dojo packages in main.js, so index.html looks like this :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" ...
2
votes
Synching Two ArcMap JavaScript webmaps to respond to panning
You could try something like this:
esriConfig.defaults.map.panDuration = 0;
dojo.connect(map1, "onPan", onPan);
function onPan(extent, delta) {
map2.setExtent(extent);
}
This will add an event ...
2
votes
lang.hitch use in ArcGIS API for JavaScript
Robert Scheitlin answered a similar question on https://community.esri.com/t5/arcgis-web-appbuilder-questions/lang-hitch-what-does-it-do/m-p/436487
lang.hitch enables you to keep a code block in ...
1
vote
How to build only custom AMD modules with dojo build system?
The Dojo build tools don't really allow to remove unused files. You get the built layers, and optimized files along with any files that may be needed. If you wanted to, you could watch the network ...
1
vote
Accepted
How to replace http for https before DOM Construct on load KMZ file with ArcGIS API JS
How about letting the browser do the work by adding this in the :
<meta http-equiv="Content-Security-Policy"
content="upgrade-insecure-requests">
See https://developer.mozilla.org/en-US/...
1
vote
Configurable Map Viewer custom basemap in viewer.js
The X and Y coordinates of your center point look odd for the wkid 32750 that you used. Perhaps you used LAT/LNG instead of X/Y coordinates.
You can use the Esri Sample code here to test your ...
1
vote
Accepted
Can't get Dijit layout to work in Javascript API (BorderContainer/ContentPane)
I had to reorganize my require statement and put dijit/layout/... at the end after the parser and such. I also had to make sure in my CSS that the #content id was set to the same as html and body, ...
1
vote
Placing a widget inside a DIV
When you use this:
srcNodeRef: 'layerTOC',
with a domNode widget, you need an HTML element with that target ID (layerTOC). So your HTML should look something like this:
<div class="left_panel ...
1
vote
How folded a widget on screen in Web App Builder?
The behavior you're talking about is inherited when it is an "In-panel" widget (so it shows up in the header with the collapse option). If you are creating a custom widget, you can set the inPanel ...
1
vote
Accepted
Modifying a map object parameter for ArcGIS JavaScript API printTask?
This worked for my needs:
var printMapDiv = domConstruct.create('div', {id: 'printMapDiv', style: 'display: none'});
var printMap = new Map(printMapDiv, {
//map params
...
1
vote
Using Multiple Versions of ArcGIS API for JS in Same Application
Whilst not recommended at all Rene Rubalcava did a good walkthrough of how to do this
http://odoe.net/blog/void-your-arcgis-api-for-javascript-warranty/
1
vote
ArcGIS API Dojo problem to activate a button for a function
I found my problem: It was because I gave a param to the function,
Here is the right code to call the function :
on( dom.byId("selectPoly"), "click", function() {
startSelect("Polygon");...
1
vote
how to handle keyboard and click event
The click doesn't know about any letter key pressed. It only knows if Ctrl/Shift/Meta keys where pressed while you clicked.
For your use case, I think you would have to first listen for key-down and ...
1
vote
Dojo private modules use them?
I fix my problems by hours on the dojo docs i try this solution before but without thinking of variable order in function here is the corrected code fort the module
define(["dojo/_base/declare",
...
1
vote
How to activate a FeatureLayer operation from a button using dojo/on function?
To link an action with a button your need to add your button to your html page
<button id="select" data-dojo-type="dijit/form/Button">Sélectionner une zone</button>
After go to your map....
1
vote
Floating pane CMV?
Maybe this project will work for you as is or possibly offers a starting point for you to adapt: https://github.com/tmcgee/cmv-calcite-maps
If you do create a menubar using this calcite maps template ...
1
vote
Accepted
'geometryService' argument is missing
the error is asking you to specify a valid geometry service in your application in order to manipulate/correct the polyline prior to saving the edit.
Geometry services ship out of the box with ArcGIS ...
1
vote
Display Legend on my legend div
It's normal that the legend doesn't appear because your map listen to the layers-add-result which is fired when calling : map.addLayers([layer]) (with s multiple at once ) not map.addLayer(layer)
so :...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
dojo × 167arcgis-maps-sdk-javascript × 142
arcgis-server × 27
javascript × 26
configurable-map-viewer × 12
arcgis-web-appbuilder × 11
openlayers-2 × 8
html × 8
arcgis-10.0 × 7
popup × 6
legend × 5
widget × 5
feature-layer × 4
jquery × 4
select × 3
printing × 3
events × 3
arcgis-online-basemaps × 3
arcgis-10.1 × 2
point × 2
buffer × 2
web-mapping × 2
error × 2
geoext × 2
arcgis-flex-api × 2