New Enhanced Bookmark Widget

5499
9
08-04-2014 06:13 AM
RobertScheitlin__GISP
MVP Emeritus

All,

  I really thought that I was done producing new Flex widgets but there was a thread discussing the need for a Bookmark Widget that would allow you to group and organize Bookmarks, so I though what the heck one more won't hurt.

Enhanced Bookmark Widget version 3.6 for ArcGIS Viewer for Flex 3.6

Preview.jpg

This enhanced bookmark widget uses a hierarchical data structure in a tree, so that you can nest or group bookmarks
to have them easier to find and organize. It takes all that the default OTB Bookmark widget does and allows you to organize your bookmarks into groups.

Hope that it is useful to you.

Robert

9 Replies
MattPohl
Occasional Contributor II

Thanks Robert... yet another fantastic widget with great practicality.

~Matt

0 Kudos
ChristinaMcCullough
New Contributor III

This is an incredibly useful widget.  I have utilized the widget with over 200 locations.  Is there anyway that you can save and share bookmarks with this widget in the future? 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Christina,

   My focus is now on JavaScript and Web App Builder widget development so enhancement to Flex widget will be very low on my list right now. I am not saying that I might get bored and have some free time to make this enhancement, but it is unlikely.

0 Kudos
ChristinaMcCullough
New Contributor III

Robert,

I completely understand.  I am trying to cut the purse strings with flex and move to the JavaScript and Web App Builder widget development my self.  I may try to implement this as it is a favorite functionality.

Cheers!

Christina

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Christina,

   I will definitely add this enhancement request to the eBookMark widget when I port it over to WAB.

DavidAllen
Occasional Contributor

I'm doing the same thing - transitioning to JavaScript. But I need one last thing for my Flex bookmark on a map that I probably won't transition until I absolutely have to.

I need a book mark to close itself after a selection has been made. In other words, when you click a bookmark it'll zoom/pan the map and close the bookmark dialog.

Any ideas?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

David,

   If you do not have the capability to make code changes and recompile the widget yourself then you are out of luck. I will not be releasing an update with the functionality you are wanting. Actually I will not be releasing any new Flex code. But if you are a person that uses the uncompiled Flex Viewer code and want to make the change your self I may be able to provide code guidance.

0 Kudos
DavidAllen
Occasional Contributor

I'm using Flash Builder and modifying what was once the Flex Viewer. I modified the Bookmark widget to show a list of all the apartment complexes in town. Then when you select one of them it'll pan/zoom the map over and open the Fire Department's pre-fire plan in PDF. Then they manually close the bookmark window. I'd like to be able to close that window automatically once it opens the PDF.

I've got it doing everything they want except this one thing, and in the meantime I'm also writing the same viewer in JavaScript with WebApp Builder.

I'm not supposed to be a web programmer, but it's one of those things you wind up taking on. I've mostly taken existing widgets and modified their function so I've never really worked with opening and closing pop-ups.

Any help is appreciated. Then this is my LAST flex code and I rewrite everything in JavaScript.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

David,

  So it is a simple code addition.

Add this import:

import com.esri.viewer.WidgetStates;

and this code (line 7).

            private function showBookmark(bookmark:Bookmark):void
            {
                if (bookmark)
                {
                    map.extent = new Extent(bookmark.xmin, bookmark.ymin, bookmark.xmax, bookmark.ymax);
                }
                setState(WidgetStates.WIDGET_CLOSED);
            }
0 Kudos