|
DOC
|
Robert and Rebecca, I've made a mixin that has the functionality of Robert's Version Info. I call it _WidgetMetadataMixin. I have tested it with 5 of my widgets and 9 Esri Widgets. Pretty simple to add to a widget. Four lines of code. _WidgetMetadataMixin Larry
... View more
04-10-2015
09:38 PM
|
0
|
0
|
6171
|
|
DOC
|
This Mixin Class works with most in-panel and on-screen (with icon) Web AppBuilder widgets. Live Preview Site Changes in Version 1.1.3 Changed all instances of _widgetMetadataMixin* to _WidgetMetadataMixin*. Changes in Version 1.1.2 Modified the Mixin Class to destroy itself when the host widget is destroyed. Bug Fixes in Version 1.1.1 Fixed the Mixin so it would work with FireFox and IE as well as Chrome. Updated the Live Preview Site. Features: The mixin displays a Message dialog with the Widget version, the Web AppBuilder version, and the Widget description. For an in-panel widget, displays the dialog when the user holds down the Alt button while clicking on the widget panel heading. For an on-screen widget (with an icon), displays the dialog when the user holds down the Alt button while clicking on the icon. This mixin does not work with touch screen devices, but it does no harm. Download: _WidgetMetadataMixin-1.1.3-2015-5-5.zip Larrys Custom WAB Widgets and More
... View more
04-10-2015
09:24 PM
|
2
|
4
|
6084
|
|
DOC
|
This Mixin Class works with most in-panel Web AppBuilder widgets. Live Preview Site Changes in Version 1.1.3 Changed all instances of _widgetOpacityMixin* to _WidgetOpacityMixin*. Changes in Version 1.1.2 Modified the Mixin Class to destroy itself when the host widget is destroyed. Bug Fixes in Version 1.1.1 Fixed the Mixin so it would work with FireFox and IE as well as Chrome. Updated the Live Preview Site. Features: Puts a new icon on the widget header. Clicking the icon opens a tooltip dialog with a slider that controls the opacity of the widget. The dialog can be closed by clicking on the close button. If your device has a mouse or a touch pad, the dialog will close shortly after the mouse leaves it. The widget will be opaque when the cursor is over it and will have the selected opacity when the cursor is over the map. For touch screen devices, the widget opacity is always as selected. Download: _WidgetOpacityMixin-1.1.3-2015-5-5.zip Larrys Custom WAB Widgets and More
... View more
04-10-2015
08:44 PM
|
3
|
0
|
5195
|
|
POST
|
It wasn't me. I'm frustrated by it too. I had used.1.1 for all of my original folders, then when 1.1 came out (as 1.2), I had to change a lot of folder names, Very strange.
... View more
04-09-2015
09:23 AM
|
0
|
0
|
818
|
|
POST
|
Rebecca, thanks for taking on this task that never ends! Larry
... View more
04-06-2015
02:19 PM
|
0
|
1
|
7484
|
|
POST
|
All, Here is a list on my currently available Web AppBuilder widgets for Web AppBuilder 1.x. Anvil Page Anvil Map Tips Page Anvil Bookmarks Page Print Plus Widget Page Swipe Plus Widget Page Zoom Prev Next Page Here is a list of my mixin classes for the Web AppBuilder 1.x widgets. _WidgetOpacityMixin Page _WidgetMetadataMixin Page Here is my entire application, which includes my Acme Widget. The Acme Widget is invisible, but adds key functionality to the basic Web AppBuilder viewer and modifies the appearance and/or behavior of several Esri Widgets (without editing the Widgets themselves). Changes and Bug Fixes, May 5, 2015 Print Plus Widget fixes Changed all instances of _widgetOpacityMixin* to _WidgetOpacityMixin*. Changed all instances of _widgetMetadataMixin* to _WidgetMetadataMixin*. Changes and Bug Fixes, May 3, 2015 Changed config property from "public" to "isPublic" ("public" is a reserved word). Changed the Scale to display above the Scalebar Widget. Added configurable link to the HeaderController Widget icon and title. Fixed a bug that caused a console error when a Feature Layer Custom Popup doesn't have tabs. Fixed a bug that caused an error on startup on occasion. Fixed a bug in the Draw Widget modifications that caused the Bold, Italic, and Underline buttons to not be honored when dragging text to place it. Web AppBuilder Application 2015-05-05.zip All documentation is now included in the Doc folder in the zip file. This is a live preview site for all of the above (except Anvil): Live Preview My To Do List: Get documentation and examples together for the Acme Widget and post it along with several widgets that depend on it: Reset Layers Widget Share Widget User Preferences Widget WelWhatDisHelpAbout Widget (Welcome, What's New, What's Missing, Disclaimer Help, About, Notice tabs) Several other widgets need to be enhanced (in my opinion): Write some new widgets: Pictometry Widget ???
... View more
04-06-2015
02:06 PM
|
11
|
29
|
37033
|
|
DOC
|
2/18/2017 - updated download links This widget is an enhancement of the Esri Print Widget, which was originally written by David Spriggs. Live Preview Site Bug Fixes and Enhancements in Version 1.1.6 Fixed a bug (Esri's) that caused the legend in the print file to be incomplete. Bug Fixes and Enhancements in Version 1.1.5 Added a check for LODs in the main config.json so they can be restored after printing. Added a setting folder that tells the user the config file must be edited in a text editor. Adjusted the margins and labels on the widget to keep the checkboxes from wrapping. Added a red line on the scale slider to show the largest basemap scale. Fixed a bug in that caused feature layers to not print. Updated the widget layout. Added an error icon to print results when there was an error. Fixed the legend on the print layout to eliminate entries for graphics layers. Bug Fixes in Version 1.1.4 Fixed a bug that caused a zoom to the wrong scale when printing when the main config.json included map LODs.. Changed all instances of _widgetOpacityMixin* to _WidgetOpacityMixin*. Changed all instances of _widgetMetadataMixin* to _WidgetMetadataMixin*. Bug Fixes in Version 1.1.3 Fixed the legend on the print layout to eliminate the "overide" entries. Tested with geographic coordinate system and fixed associated bugs. Modified the Mixin Class to destroy itself when the host widget is destroyed. Made the layout close button bigger and fixed a bug showing the layout at largest scale. Bug Fixes in Version 1.1.2 Fixed the _WidgetMetadataMixin so it would work with FireFox and IE as well as Chrome. Fixed the _WidgetOpacityMixin so it would work with FireFox and IE as well as Chrome. Updated the Live Preview Site. Enhancements and Changes in Version 1.1.1 Fixed a bug in the widget referencing _WidgetOpacityMixin in the wrong location. Made the Close button on the Widget Opacity Slider larger (smart phones needed this). Added the _WidgetMetadataMixin to the widget. Allows you to Alt-Click the widget header and see the version information. Features: The map layout is shown on the screen, so you don't have to guess what will be written to the print file. There is a scale dropdown and a scale slider. Either can be used to adjust the scale of the output. The map can be panned relative to the layout by panning inside the layout. If you choose to make companion layout templates with no title block, these can be invoked by unchecking the Title Block checkbox. You have to put these companion templates on your server. There is a set of companion templates that match the default templates that you can download below. The Advanced dropdown is context sensitive and does not show options that don't make sense (e.g. Author, Copyright, and legend if you are not using a title block.) You can configure aliases for the layout names. When using "Just the Map" layout (alias for MAP_ONLY), there are new options on the Advanced dropdown: Preserve map scale or map extent Size of the paper to use (in inches or centimeters) A visual showing what will be printed compared to the map extent in the browser window A Widget Opacity Control in the widget header. This controls the opacity of the Widget when the mouse is over the map. The opacity is always 1.0 when the mouse is over the Widget. This allows you to see the map "through" the widget and can be very handy on a small mobile device (e.g. smart phone). Downloads: PrintPlus-1.1.6-2015-7-12.zip CompanionLayoutsWithNoTitleBlocks.zip PrintPlus-1.1.6-2015-7-12 (download - widget by Larry Stout) https://community.esri.com/docs/DOC-9629-companionlayoutswithnotitleblocks-download-widget-by-larry-stout Larrys Custom WAB Widgets and More
... View more
04-06-2015
01:14 PM
|
11
|
184
|
74726
|
|
DOC
|
Rickey, It's not just you. My mistake. It's fixed now. Larry
... View more
04-06-2015
09:01 AM
|
0
|
0
|
4667
|
|
DOC
|
2/18/2017 - update download linke This widget is an enhancement of the Esri Swipe Widget. Live Preview Site Bug Fixes in Version 1.1.3 Fixed the _WidgetMetadataMixin so it would work with FireFox and IE as well as Chrome. Updated the Live Preview Site. Enhancements and Changes in Version 1.1.2 Added the _WidgetMetadataMixin to the widget. Allows you to Alt-Click the widget header and see the version information. Enhancements and Changes in Version 1.1.1 Changed the z-index of the widget so it would not be under other widgets (e.g. Coordinate Widget) on a smart phone. Added a Close Button to the layer menu so it can be closed on a touch device. Modified the behavior of the widget icon for touch devices so you can open the layer menu. If the widget is open and the layer menu is closed, tapping the icon will open the layer menu. If the widget and the layer menu are both open, tapping the widget icon closes the widget. Features: All three styles are available (Vertical, Horizontal, and Spotlight. Multiple layers can be selected to swipe. Three sizes of Spotlight to choose from. Cursor reverts to default cursor when in the Spotlight to indicate popups are available. (You can still move the Spotlight from within.) Position of the Vertical and Horizontal swipe bars and the Spotlight are remembered (within the current browser session). Download: SwipePlus-1.1.3-2015-4-11.zip https://community.esri.com/docs/DOC-9626-swipeplus-113-2015-4-11zip Larrys Custom WAB Widgets and More
... View more
04-05-2015
07:30 PM
|
6
|
10
|
12686
|
|
POST
|
Sorry. Not sure how that happened. Try this one: Viewer App
... View more
04-02-2015
09:32 AM
|
0
|
1
|
1204
|
|
POST
|
Paul, My WebMap has map services from both public and non-public servers. I wrote the validateWebMap.js module to test each server and each service and remove any services that are not reachable from the WebMap without any significant delay. I've tested this on my iPhone with VPN on and VPN off and the results are consistent with what I intended (no VPN, no layers from the non-public server). I'm not using any security to do this. We do have one map service on our public server that is secured. validateWebMap.js also removes secured layers, unless there is a specific query parameter (allowSecuredLayers=true). I've also tested this and it works as expected. Here are a couple of links for you: Viewer App Config Documentation Updated Link (4-30-2015) I call the preProcessor.js from index.html and preProcessor.js calls validateWebMap.js. This architecture allows for other types of pre-processing in the future. Let me know if and how well this works for you. I've tested it for the sake of testing, but many times that kind of testing is not as good as a real production environment. Larry
... View more
03-27-2015
08:36 PM
|
0
|
3
|
1204
|
|
POST
|
Here's the function I use in my onScreen widget to start an inPanel widget "silently". Basically, you start the panel, which starts the widget. After the widget starts, you hide the panel. // For inPanel widgets that are not loaded at startup, load and open the panel.
_showPanel: function(widgetCfg, hide, panelMixinData) {
var def = new Deferred();
var panel;
if (widgetCfg) {
// Try getting the panel for this widget
panel = registry.byId(widgetCfg.id + '_panel');
if (panel) {
if (hide) {
// Hide the panel immediately.
domStyle.set(panel.domNode, 'display', 'none');
// panelManager.showPanel calls panelManager.openPanel, which returns a promise.
// We have to wait for the panel to open before we close it.
on.once(panel, 'open', function() {
panel.panelManager.closePanel(panel, false);
});
}
def.resolve(panel);
} else {
this.panelManager.showPanel(widgetCfg).then(lang.hitch(this, function(panel) {
if (hide) {
// Hide the panel immediately.
domStyle.set(panel.domNode, 'display', 'none');
// panelManager.showPanel calls panelManager.openPanel, which returns a promise.
// We have to wait for the panel to open before we close it.
on.once(panel, 'open', function() {
panel.panelManager.closePanel(panel, false);
});
}
lang.mixin(panel, panelMixinData);
def.resolve(panel);
}));
}
} else {
def.resolve(undefined);
}
return def;
},
The panelMixinData argument can be any object you want the widget to have access to when it starts. For example, if the panelMixinData = { myStuff: { stuff1: 'abc', stuff2: 123 } }, the widget you are starting can get that data as: this.panel = registry.byId(this.id + '_panel');
var thing1 = this.panel.myStuff.stuff1; // 'abc'
var thing2 = this.panel.myStuff.stuff2; // 123 Here's a simplified version of the code at the top of my onScreen widget showing how I get access to the PanelManager: define([
'jimu/PanelManager'
], function(
PanelManager
) {
var clazz = declare([BaseWidget], {
name: 'Acme',
baseClass: 'jimu-widget-acme',
startup: function() {
this.inherited(arguments);
this.panelManager = PanelManager.getInstance();
},
Hope this helps, Larry
... View more
03-25-2015
06:17 AM
|
0
|
1
|
3203
|
|
POST
|
I have used an invisible onScreen widget to manage tasks such as this. It starts when the app starts because it is onScreen (but invisible). Larry
... View more
03-25-2015
05:42 AM
|
0
|
9
|
3203
|
|
POST
|
Bernie, Thanks. The version on GitHub is an old one that worked with one of the Beta versions. I haven't taken the time to update it. Here's a link to the latest viewer that uses the latest PrintPlus Widget: http://gis.hamiltoncounty.in.gov/mapviewer/index.html. Larry
... View more
03-03-2015
12:42 PM
|
0
|
0
|
1204
|
|
POST
|
Brandon, The widget opacity is a mixin that can be added to any panel widget by reference. It's one of the few enhancements I've made that requires editing the widget code, but it only affects three lines of code. I have put my mixin in my Acme Widget folder just for convenience. It can be anywhere you want. I've attached the Widget Opacity Mixin and what little documentation I have written so far (includes all of my WAB enhancements). The documentation is in its very early stages, so feel free to ask follow-up questions. Larry
... View more
02-27-2015
07:00 AM
|
1
|
1
|
12554
|
| 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
|