Anvil Bookmarks Widget Version 1.1, June 11, 2015

Document created by Larry_Stout on Jun 11, 2015Last modified by rastrauch on Feb 18, 2017
Version 3Show Document
  • View in full screen mode

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 (download - widget by Larry Stout) 


Larrys Custom WAB Widgets and More