Select to view content in your preferred language

Anvil Bookmarks Widget Version 1.1, June 11, 2015

6188
1
06-11-2015 08:20 PM
Labels (1)

Anvil Bookmarks Widget Version 1.1, June 11, 2015

2/18/2017 - updated download link

The Acme Widget in the Hamilton County WAB Viewer is a "headless" widget that adds lots of functionality and modifies the behavior and/or appearance of a lot of Esri Widgets (without modifying their code).  The Anvil series of widgets are simplified versions of the Acme Widget, demonstrating just one or two nuggets of functionality.

This widget is a sample of how to create a "headless" widget for the Wed AppBuilder (WAB).  By "headless," I mean it is invisible and it is loaded at startup.  This sample modifies Esri's Bookmark Widget to eliminate the graphic and include the scale of the bookmark.

There is no live sample for this widget, as it is invisible.

I called it AnvilBookmarks because the original "headless" widget I wrote is called Acme, and I wanted to stay with the Roadrunner theme.

If you want to drop this widget into the WAB and configure it in an app, you will need to copy its folder into the client\stemapp\widgets folder and then add it to the client\stemapp\predefined-apps\default\config.json file.

If you want to add this widget to an app you have already built with the WAB, then add it to the main config.json file like this:

"widgetOnScreen": {

  "widgets": [

  {

    "uri": "widgets/AnvilBookmarks/Widget",

    "position": {

      "left": -1000,

      "bottom": -1000

    },

    "version": "1.1",

    "id": "widgets/AnvilBookmarks/Widget_101",

    "positionRelativeTo": "map",

    "name": "AnvilBookmarks",

    "label": "Anvil Bookmarks"

    },

    . . .

    . . .

  ],

  "panel": {

    "uri": "jimu/PreloadWidgetIconPanel",

    "positionRelativeTo": "map"

  }

},

. . .

. . .

AnvilBookmarks-1.1-2015-6-11.zip

https://community.esri.com/docs/DOC-9624-anvilbookmarks-11-2015-6-11zip 

Larrys Custom WAB Widgets and More

Labels (1)
Comments
RebeccaStrauch__GISP
MVP Emeritus

Larry, Added a link in the resource source list.​

Version history
Last update:
‎06-11-2015 08:20 PM
Updated by:
Contributors