POST
|
Sounds like it might be the security settings in Chrome. Have you tried with IE? You can bypass Chrome security with the following command - start chrome.exe --disable-web-security
... View more
12-22-2019
09:13 PM
|
0
|
0
|
603
|
POST
|
Jose, You should not recreate the map object unless you plan to display multiple map views. To change a basemap you use the existing map object and use the function setBasemap map.setBasemap("name_of_the_basemap"); alternatively, you can use the toggle widget that has this functionality built-in - Basemap Toggle | ArcGIS API for JavaScript 3.31 or the basemap gallery widget, which is similar - Basemap gallery | ArcGIS API for JavaScript 3.31 Shay.
... View more
12-22-2019
09:08 PM
|
2
|
6
|
3993
|
POST
|
Apparantely ESRI provides a friendly article that explains how to achieve this - How To: Enable drag function on an infoWindow pop-up in Web AppBuilder for ArcGIS Saved me probably days of long work!
... View more
12-02-2019
05:37 PM
|
0
|
0
|
528
|
POST
|
I would highly recommend looking into examples inside other widgets on how to control and manipulate widget's behaviors properly, rather than hacking them in the cost of fixing side-effects like the one you describe. Controlling visibility and behaviors can be done easily through the WidgetManager and PanelManager objects rather than touching configuration files. They have functions to close, open and configure widgets in the application.
... View more
10-30-2019
04:57 PM
|
0
|
1
|
600
|
POST
|
Hi Jacob, If you download the API library to be hosted locally, you can actually browse the folders (jimu, dijit, dojo, etc..) and see all the available components. Also you can just browse through the DOJO documentation online, but it doesn't sounds like it going to help you simply your code if that's what you're after. Also, you might find this next example relevant to your case - Edit fiddle - JSFiddle Shay.
... View more
10-30-2019
04:37 PM
|
0
|
8
|
2031
|
POST
|
Not sure I understand why but you cannot override the map's behavior as far as I know. You can override this by adding an invisible div over the map to prevent the clicks and remove the div when required.
... View more
10-28-2019
05:46 PM
|
0
|
2
|
672
|
POST
|
URL parameters is supported with AGOL as well. Also, you do not need ArcGIS Server to host an app' locally, you can just download an app from AGOL and host it over an IIS/Apache server without using WAB. Loading custom widgets, as you said, requires on-premis Portal
... View more
10-28-2019
05:34 PM
|
0
|
0
|
913
|
POST
|
As Robert said, they should be removed. It's not best practice to leave those lines around in your code but generally speaking, the users will not experience them as they respond only when the devtools tab is opened. You can also wrap them with an "if" condition.. there are many ways to approach this but they should be definitely cleaned once you're done testing. I use them for small blocks and usually when I'm not sure what I'm looking for. They act like (hardcoded) breakpoints and I think its a good way to start with web development.
... View more
10-28-2019
05:30 PM
|
1
|
0
|
802
|
POST
|
CSV format is very primitive, as it should be. I'm still not sure what you're trying to achieve but from the sound of it, your problem is with Excel showing you the wrong data type. The exported data itself however should be fine.
... View more
10-27-2019
04:17 PM
|
0
|
0
|
290
|
POST
|
Not sure if this answers your need but you can also launch the app with a query in the url parameters - Use URL parameters—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
... View more
10-27-2019
04:05 PM
|
0
|
2
|
913
|
POST
|
put a "debugger;" statement at the top of your custom code and make sure the browser's devtools are open. you'll hit the breakpoint and take it from there with the debugging tools.
... View more
10-27-2019
04:01 PM
|
1
|
3
|
802
|
DOC
|
Hello, I made a few (simple) adjustments to the full-screen widget that now allows the user to have a complete full-screen and map-focused experience, by hiding all* widgets. The screen will be cleaned of all buttons, which includes the search bar, widgets icons, scale-bar, coordinates, etc.. until the user exits from full-screen mode. The widget hides open widgets as given in a list - currently configured through the code itself (widget.js), as a parameter named "supportedWidgets". It's an array that holds the keywords of the widget name to be closed. I'll consider extracting this setting to a configuration screen with enough demand. Open widgets that are not configured in the list will remain on-screen. The header of the map will not be hidden. The full-screen widget icon will remain on-screen with lower opacity, located at the top left corner, to allow the user to exit full-screen mode. Once the user exists full-screen, the icon will return to its original location with full opacity. Before - After - Deployment: 1. Add the default full-screen widget to your Web AppBuilder application and save. 2. Overwrite the fullscreen folder with the custom code provided. Bonus feature - Attaching the widget to the F11 key: Open MapManager.js under the jimu.js folder on the application. Add the following code inside the "_publishMapEvent" function - on(
window,
'keydown',
(e) => {
if (e.key === "F11") {
var fs = WidgetManager.getInstance().getWidgetsByName('FullScreen');
if (fs.length > 0) {
fs = fs[0];
fs._onFullScreenClick();
}
}
}
); Happy to receive feedbacks. Quite simple, but hopefully some people will find it usefull. Cheers, Shay.
... View more
10-21-2019
07:09 PM
|
1
|
1
|
1406
|
POST
|
Hello, I'm trying to customize the behaviour of the default popup window inside a WAB application. I've found a really impressive work by Nick (link below) that customize the behaviour perfectly, but I spent a very long time trying to make it work with a webmap / map service rather than single layers with no success.. (https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fnickcam%2FPopupExtended ) The first and most important customization I'm trying to achieve is to make the popup window remain opened until the user manually close it (multiple popup windows). Has anyone ever done this before with a map service rather than a map layer object? it seems to behave very differently and the selected features are not saved globally. Shay.
... View more
10-15-2019
11:23 PM
|
0
|
1
|
621
|
POST
|
I couldn't find a way to configure infographics from a different widget so I just created a graph of my own with a minimal set of configurations.. I reckon that would be easier than dynamically configure the settings of an existing widget.. even if you do manage to inject settings to the config json, I believe you need to reload the app as you said..
... View more
10-14-2019
06:22 PM
|
0
|
0
|
819
|
Title | Kudos | Posted |
---|---|---|
1 | 08-17-2023 06:13 AM | |
1 | 11-29-2021 06:30 PM | |
1 | 11-29-2021 10:52 PM | |
1 | 12-01-2021 03:17 PM | |
1 | 11-29-2021 06:15 PM |