DOC
|
Sorry, Nick. I’m at a conference and may not get back to you on this until Thursday or Friday. Larry
... View more
05-12-2015
06:40 PM
|
0
|
0
|
7466
|
DOC
|
Nicholas, I have not tested this with the Local Layer Widget, but I don't see any potential conflict unless the Local Layer Widget also uses the Navigation toolbar. Are you using WAB Developer Edition or just copying it into an app made with WAB Developer Edition? I wrote it and tested it from the Developer Edition apps/xxx folder. Larry
... View more
05-11-2015
01:19 PM
|
0
|
0
|
7466
|
POST
|
Here is a link to the widget you are looking for: Zoom Prev Next Widget Version 1.1.0 May 10, 2015 Larry
... View more
05-10-2015
04:02 PM
|
2
|
0
|
1905
|
DOC
|
2/18/2017 - updated download link This is a completely new and very small widget. It uses the Zoom Previous and Zoom Next functionality of the Esri Navigation toolbar. Live Preview Site Changes in Version 1.1.1 Added documentation for putting this widget into the WAB so it can be configured into an app. Added a setting folder (that explains there is no configuration). Added an icon in the setting folder. Download: ZoomPrevNext-1.1.1-2015-5-13.zip https://community.esri.com/docs/DOC-9627-zoomprevnext-111-2015-5-13zip Larrys Custom WAB Widgets and More
... View more
05-10-2015
03:56 PM
|
5
|
25
|
16159
|
POST
|
David, Another approach is to add a reference to a JavaScript file from index.html right after the simpleLoader.js: <script type="text/javascript" src="validateCredentials.js"></script> validateCredentials.js would look something like this: (function waitForAPI() {
if (typeof require === 'undefined') {
if (window.console) {
console.log('Waiting for API to be loaded.');
}
setTimeout(waitForAPI, 100);
return;
} else {
validateCredentials();
}
function validateCredentials() {
require([
'dojo/aspect',
'dojo/Deferred',
'jimu/utils'],
function (aspect, Deferred, jimuUtils) {
aspect.around(jimuUtils, 'createWebMap', function(originalMethod) {
return function(portalUrl, itemId, mapDiv, options) {
var mapDeferred = new Deferred();
var success = checkCredentials();
if (success) {
originalMethod.call(jimuUtils, portalUrl, itemId, mapDiv, options).then(function(deferred) {
mapDeferred.resolve(deferred);
return;
});
} else {
map.remove();
mapDeferred.reject();
window.location.assign("http://www.arcgis.com/home/");
confirm('Credentials not Valid');
}
function checkCredentials() {
// Put your code here. Return true if credentials are valid, false otherwise.
return false;
}
return mapDeferred;
};
});
});
}
})();
Larry
... View more
05-08-2015
09:26 PM
|
2
|
5
|
1049
|
DOC
|
Stan McShinsky wrote: Larry, I did notice that a few more things. 1. This widget does not print any graphics that are drawn on the map with the draw tool. 2. If a layer is not turned on when a print job is submitted then you get a gray map until a layer is turned on and then it sent it to the print queue. In this case a user can not just print just the basemap. -Stan 1. I have fooled around with this and here is what I have run into. I removed all graphics layers from the printDef, and that took care of the overrides in the legend. I tried leaving the graphics layer from the Draw Widget in the printDef, but I wasn't able to change the label from "override". The legend for the Draw Widget graphics wasn't very useful, so I tried leaving this layer off the legend but still include it in the map. Still no luck. I'll revisit this from time to time. Sometimes the stars have to align for me to figure out the tricky stuff. 2. I fixed this. The problem was asynchronous in nature. I was listening for the map's 'update-end' event. There is no map update if only a cached basemap is turned on. Tricky, but It should work now.
... View more
05-07-2015
01:11 PM
|
0
|
0
|
12873
|
DOC
|
Stan, The settings file is on my to do list, but pretty far down. Your fix is wonderful. I'll use it on all my widgets that don't have settings files until I get to them. Thanks, Larry
... View more
05-07-2015
01:03 PM
|
0
|
0
|
12872
|
POST
|
Stan, I fought this battle with Flex and lost, The only way is to change the name of the file or change the path. I'm guessing there is a way to organize this into a reasonable workflow, but I haven't taken the trouble to set one up. Larry
... View more
05-06-2015
07:43 PM
|
0
|
0
|
4330
|
DOC
|
Stan, I think it should work for you now. I also cleaned up the checkbox problem when putting the widget in the widget pool, and made a few other cosmetic changes. Here is the entire widget for you to test. PrintPlusWIdget.zip Larry
... View more
05-06-2015
07:37 PM
|
0
|
0
|
12872
|
DOC
|
Stan, Try this version. If it addresses your issues, then I'll post the update. PrintPlus.zip I really do appreciate your help in testing this. No way I could test all of the spatial reference and configuration options. Larry
... View more
05-06-2015
11:55 AM
|
0
|
0
|
12872
|
DOC
|
The instruction text is in the PrintPlus/nls/strings.js file. Can you confirm that is working for you?
... View more
05-05-2015
04:55 PM
|
0
|
0
|
12873
|
DOC
|
Stan, Good catch. I hate sloppy programming. I've fixed them all in my code, but I'm curious about what OS & browser you are seeing this in. I've never seen the problem. Larry
... View more
05-05-2015
04:50 PM
|
0
|
0
|
12873
|
DOC
|
Stan, I've been able to reproduce the problem with my WebMap after I removed the two smallest scales. Now I can fix it. Sorry for the false alarms. On a different topic, I noticed a couple of console errors on your test app. The nls files for the Mixin Classes in the PrintPlus Widget seem to be missing. Larry
... View more
05-04-2015
08:22 PM
|
0
|
0
|
12873
|
DOC
|
I posted a new version of the Print Plus Widget (1.1.3) yesterday. I'm not sure if I fixed anything that will help you because I'm still trying to get a handle on your problem, but you might try the new version. Also, make sure the serviceURL in the config file is pointed to Esri's server: "http://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" Also, you should be able to copy the serviceURL into your browser and see the Export Web Map Task in the Rest Services Directory. Larry
... View more
05-04-2015
02:35 PM
|
0
|
0
|
12873
|
POST
|
I have all new code to detect mouse and touch. This time, I've tested on iOS, and Chrome, FireFox, IE, and Safari on Windows 7 without touch and on Windows 8.1 with touch (Surface Tablet). The code has gotten bigger, and I am nearing the edge of sanity. This is pretty simple. The hasMouse and hasTouch above the Scalebar Widget will show undefined until a mouse or touch is detected. The order shouldn't matter. I appreciate all who will help with this test. TestApp Thanks, Larry
... View more
05-04-2015
02:25 PM
|
0
|
2
|
3945
|
Title | Kudos | Posted |
---|---|---|
1 | 08-03-2015 07:45 AM | |
1 | 08-06-2015 05:32 PM | |
1 | 08-11-2015 06:08 PM | |
1 | 06-09-2015 06:58 PM | |
1 | 01-22-2015 03:06 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|