Select to view content in your preferred language

Preview of two great new widgets coming out mid January 2011

31321
156
12-30-2010 10:46 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   I have been working hard on two great new widgets that I want you to preview. The final versions will be made available Mid January 2011 and submitted to the Flex a Widget competition.

http://www.esri.com/events/devsummit/get-involved/widget-challenge.html

The first is a new route widget for FlexViewer 2.2

Its' feature include:


  • Up to ten stops that can be added to the map interactively or by single line address matching using Bing geocoder.

  • Up to ten point barriers that can be added in the same fashion as stops.

  • Interactively added stops and barriers are automatically reverse geocoded.

  • You can calculate by time or distance and optionally use best sequence.

  • Route segments can be individually clicked in the directions list and visualized using a polyline animation (Thanks to Mark Deaton).

  • The big deal for this widget is its' printing capability. Both direct printer output and PDF output are supported. Multi page output with headers and footers and the option to include the large route image are all included. The individual direction segments have maneuver arrows that are included by default but can optionally be turned off. Things like configuring alternating directions background color can also be configured.


So if you are a developer and don't care about routing but want to know how to do moderately advanced multi page printing and AlivePDF techniques than this widget is for you.

Preview here:
http://gis.calhouncounty.org/FlexViewer2.2/index.html?config=config-route.xml



The second one is a new infoTemplate for featurelayers.

The Attachment Relate Info Window Widgets' features include:


  • Ability to specify which fields are displayed

  • Specify one link field that will display as a clickable text or an actual image in the info window

  • Buttons at the bottom of the window for Zooming to feature, querying attachments, querying related features or tables

  • Attachments are preview only and are displayed in a custom grid popup not the standard attachment inspector.

  • Relates are initially displayed in a grid that allows for the selection of which related feature you want to preview and then when you choose the one you want to see then a floating datagrid is displayed with the related records.


In the examples below click on the point in the screen.

Preview of attachment and link capability:
http://gis.calhouncounty.org/FlexViewer2.2/index.html?config=config-attachment.xml

Preview of related feature capability:
http://gis.calhouncounty.org/FlexViewer2.2/index.html?config=config-relate.xml

preview of image link in info window:
http://gis.calhouncounty.org/FlexViewer2.2/index.html?config=config-infoimage.xml
Tags (2)
0 Kudos
156 Replies
ShannakaBeveridge
New Contributor II
I am using the source code. I don't even need it to be displayed in fact, just need a string that contains the url of the selected table. Thank you for your help!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shannaka,

   I am on my way to the developer summit in California, but I will put something together soon. Are you thinking a public variable that you can call from in this widgets code or what are you thinking.
0 Kudos
ShannakaBeveridge
New Contributor II
Shannaka,

   I am on my way to the developer summit in California, but I will put something together soon. Are you thinking a public variable that you can call from in this widgets code or what are you thinking.


Yes, I'm thinking a public variable that can be called within the widgets code.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shannaka,

   Here is what I can up with:

public var selRelateURL:String;
//Then add this line to the closeRelateWindow after the flyToSearch is set
selRelateURL = flyToSearch.url.substring(0,flyToSearch.url.lastIndexOf("/")) + "/" + (rWindow.selectedRelateId - 1);
0 Kudos
ShannakaBeveridge
New Contributor II
Thank you!

(rWindow.selectedRelateId - 1) gave me the url for the selected feature rather than the related table. I added the following in RelatesWindow and used (rWindow.selectedTableId) to get the number of the selected table instead.

public function get selectedTableId():Number
   {
    return _rTableId;
   }

   protected function relateGrid_itemClickHandler(event:ListEvent):void
   {
    _rId = event.target.selectedItem.id;
    _rName = event.target.selectedItem.name;
    _rTableId = event.target.selectedItem.relatedTableId;
0 Kudos
MarcCavallaro
New Contributor III
Robert, Great stuff! 

I've successfully enabled both the Attachment Relate Info Window Widget and the Enhanced Search Widget.  They both work really well.  Is it possible to get them to work together? 

Right now the eSearch Widget is using the InfoPopupWidget. I've tried changing the SearchWidget.xml to point to the AttRelateInfoWinWidget.swf and it half worked.  The info window had all the right buttons but no text and the buttons didn't work.  What am I missing?

Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
mscavallaro,

      No I don't think that they can be used together. The Attachment Relate Info Window Widget requires a feature layer to work and the eSearch does not have that requirement. I have not actually tried to use them together as you are though. I guess technically if you only have type = "feature" layers specified in your SearchWidget.xml than I could work....
0 Kudos
andrewj_ca
Occasional Contributor II
Robert,

Do you know the results of the flex-a-widget challenge? I'm assuming you were at the summit.

Andy
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andrew the winners are:

1. Frank Roberts: Street View and More �?? Widget for FlexViewer 2.*
2. Sasa I. : Export To Shapefile (AS3 Shapefile Writing Library)
3. Andrew McNaughton : Google Street View Widget for the Flexviewer

Congrats man!
0 Kudos
andrewj_ca
Occasional Contributor II
Thanks Robert,

I was just looking at your Weather widget wondering why you didn't enter that in the challenge.  I think it's pretty slick and will be adapting it for my non SFV based flex applications.  Well done.

Andy
0 Kudos