Select to view content in your preferred language

Preview of two great new widgets coming out mid January 2011

33196
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
KFBONG
by
Emerging Contributor
hi Robert,

Currently, are you able to configure hyperlink field inside the related tables? I didn't see that in the xml config file and in the live example.  Please do consider this enhancement if not available yet.

Thanks,
KF


KF BONG,

   No, there is no others that I am aware of. It sounds like you just have some issues with ArcGIS Server publishing the related tables probably permissions issues. I would call tech support and get guidance or post to the Server General forum.
0 Kudos
LemvigKommune
Deactivated User
Hi Robert

When i use the relate-info, and the related table has dates in it, it shows up like a string of numbers, and not a date - see wrong-date-format.png

is it me doing something wrong, cause you also has it in your preview-site, see wrong-date-format-robert.jpg

but else nice widgets...

Mads Gren
Lemvig Kommune
Denmark
0 Kudos
MarshallPlants
Emerging Contributor
Robert,

Great work on these widget, as usual!

I am having one problem with the route widget.  If I use your sample site, everything works as it should.  Geocoding, reverse geocoding, routing, directions, everything works.  When I added the widget to my site, routing, directions and reverse geocoding work, but geocoding does not.  If I type in an address I get the following error message:

[RPC Fault faultString="Unauthorized" faultCode="401" faultDetail="Access was denied. You may have entered your credentials incorrectly, or you might not have access to the requested resource or operation."]

If my server can't see the address location that is specified in your swf, can I edit the xml file and specify my own address location like I did in the Locator widget?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Marshall,

    The single line geocoding uses bing geocoding so you have to replace the standard bing key with one from your ArcGIS Server in the config.xml for your site.
<bing key="Al0VE_jsmagxk4LFghXGlK5JSHfC0tk-eHRubZv_eMYm6wzgQaStYks8g-wWcgk3"/>


See details here:
http://help.arcgis.com/en/webapi/flex/help/content/ve_gettingstarted.htm
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mads,

   what you are seeing is because I don't attempt to do any formatting to the data that is returned from the related table. REST returns date field data in milliseconds instead of a date string. I will look at this issue but am concerned that to achieve formatting of data in the relate floating data grid it will require you to add configuration data for each relate you want to format in the xml file.
0 Kudos
DonCaviness
Occasional Contributor
Very good job Robert! I have just finished a widget that functions very similar to what you have done with routing.  I am interested to see the code behind yours though.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Hi Robert

When i use the relate-info, and the related table has dates in it, it shows up like a string of numbers, and not a date - see wrong-date-format.png

is it me doing something wrong, cause you also has it in your preview-site, see wrong-date-format-robert.jpg

but else nice widgets...

Mads Gren
Lemvig Kommune
Denmark


Mads,

   This issue has been resolved in the 2.2.1 version now available.
0 Kudos
BjornSvensson
Esri Regular Contributor
...replace the standard bing key with one from your ArcGIS Server in the config.xml for your site


Remember: "If using Bing Maps for maps or geocoding you need to provide your own key."
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#mainconfig.htm (under the <bing> section)
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bjorn,

   I would have liked to use a standard ArcGIS online geocode service to do the geocoding, but even though ArcGIS server 10 has been out for some time now there are very few ArcGIS Online servers that are 10 servers and NONE that I have found that have a geocode service that uses single line addressing capability of 10. Do you know if there is any plans to update more of the ArcGIS Online servers to showcase the ArcGIS Server 10 capabilities, like single line geocoding?
0 Kudos
BjornSvensson
Esri Regular Contributor
Do you know if there is any plans to update more of the ArcGIS Online servers to showcase the ArcGIS Server 10 capabilities, like single line geocoding?


Yes, single line geocoding is coming to the ArcGIS Online locators when they get updated to ArcGIS Server 10 SP1.  My guess would be that this will happen no later than the DevSummit.

Note that once it goes live, the Locate Widget will automatically start using it unless you have added <usesingleline>false</usesingleline>.

From the documentation: <usesingleline> - If the locator supports single line geocoding, the widget will default to single line input. Set this to false to not use the singe line geocoder.
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#widgets/locate_widget.htm
0 Kudos