Select to view content in your preferred language

Default Templates for Flex?

973
7
08-31-2012 03:46 AM
deleted-user-yA_w_FC9FKe5
Deactivated User
The flex viewer has a default templates that are a pretty nice start.  Surely Flex has some sort of template that can be used that has things like a cool scale bar, map switcher, Overview window, TOC etc.  Do these exist?  If so where can I find them please. 

Thanks in advance.
Tags (2)
0 Kudos
7 Replies
AnthonyGiles
Honored Contributor
Michael,

I am a bit confused to what you are after the flex viewer is based on the flex Api and there are plenty of samples on the resource centre in the code gallery

http://help.arcgis.com/en/webapi/flex/gallery.html

And samples page

http://help.arcgis.com/en/webapi/flex/samples/index.html

Regards

Anthony
0 Kudos
deleted-user-yA_w_FC9FKe5
Deactivated User
Currently the only starting point I see is a base map that has a slider on it.  I was thinking that maybe we had a some basic templates available that had a decent starting design with fancier slider,

Something like this but with out the widget for the basemap slider.

http://gis.calhouncounty.org/FlexViewer3.0/index.html?config=config-fader.xml

For crystal clarity you cannot create a site using flashbuilder/flex that the user can open just using a website address?  It has to be an app?
0 Kudos
AnthonyGiles
Honored Contributor
Michael,

You are really confusing me with what you are after as the whole flex application is configurable so you can add or remove widgets as you see fit. Web applications are opened via a web address so not quite sure what you mean about not being able to create a site in flash builder.

What is it you are trying to achieve?

Regards

Anthony
0 Kudos
deleted-user-yA_w_FC9FKe5
Deactivated User
Michael,

You are really confusing me with what you are after as the whole flex application is configurable so you can add or remove widgets as you see fit. Web applications are opened via a web address so not quite sure what you mean about not being able to create a site in flash builder.

What is it you are trying to achieve?

Regards

Anthony


Anthony:

Thanks for taking the time to reply.  I was looking around and ran into this. 

https://github.com/ArcGIS/ArcGISViewerForFlex#readme

Can I take a Flex Viewer project and convert it to flash builder so that I can use it on an iPad or Android device and then customize how I want?


I'm just looking for an easy to use starting template that has a nice Table of contents, Navigation bar (You know the basic map interface stuff) . .
0 Kudos
WilliamCaputo_Lima
Deactivated User
I guess that if you want to use in iOS and Android the best way is using Javascript API with HTML5, you will meet a larger number of devices and without relying on Adobe products.
0 Kudos
BjornSvensson
Esri Regular Contributor
First question:
Can I take a Flex Viewer project and convert it to flash builder so that I can use it on an iPad or Android device and then customize how I want?

No, it is not that easy.
While the source code for the ArcGIS Viewer for Flex (the Flex Viewer) is available, you cannot use it on an iPad/Android without major rewrites. This is a pretty common question so it was added to the Flex Viewer FAQ at http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/FAQs/01m300000004000000/:

Is it possible to run the ArcGIS Viewer for Flex application on my iPhone or iPad?

No. There are two specific issues with this.

  1. The ArcGIS Viewer for Flex is a standard Flex project, therefore, it would need to be written as a Flex Mobile Project.

  2. The ArcGIS Viewer for Flex uses Flex modules. These are not supported in mobile projects.



Second question:

I'm just looking for an easy to use starting template that has a nice Table of contents, Navigation bar (You know the basic map interface stuff) . .

There isn't really templates like that available.  The Flex API Resource Center has 100+ samples, but they are geared towards showing a particular functionality.  You could re-use stuff from these samples (as well as the Flex Viewer source code), but there isn't the type of templates that I think you are asking about.
0 Kudos
KenBuja
MVP Esteemed Contributor
I wish that some of the widgets of the Flex Viewer (Navigation Tool, Overview Map) were available for standard Flex applications. It's disappointing to see these components available in the Silverlight API but not Flex, as well as other components like a TOC that has the legend and transparency controls integrated.
0 Kudos