|
POST
|
You need to skin the application by setting the skinClass on the main Application. You can do this in the main mxml or you can set it through css. s|Application { skinClass: ClassReference("com.esri.ags.samples.skins.MyApplicationSkin"); } FlashBuilder can create the "MXML Skin" for you: File -> New -> MXML Skin where the host component is "spark.components.Application" and your new skin is a copy of "spark.skins.spark.ApplicationSkin". For more info see About Spark skins [ATTACH=CONFIG]19919[/ATTACH] Hope that helps,
... View more
12-13-2012
10:24 AM
|
0
|
0
|
410
|
|
POST
|
Do you know of any Flex Apps that are out on the apple store that I could download and take a look at? I don't know of any specific apps that were built with the ArcGIS API for Flex, but if you just want to see a functionality app check out http://flex.org/flexgame/. Android tablets: https://market.android.com/details?id=air.com.riagora.flexgame iPad: http://itunes.apple.com/us/app/game-of-flex/id483389384 Source: http://riagora.com/pvt_content/flexgame/FlexGame-source.fxp Also check out the mobile samples in the Tour de Flex app (http://flex.org/tour) [ATTACH=CONFIG]17408[/ATTACH]
... View more
08-31-2012
08:01 AM
|
0
|
0
|
1035
|
|
POST
|
Is there a way to change the radius of the heat per point based on a point attribute (value), such as magnitude of earthquake with the sample provided? Great widget by the way. Hi Abe, Currently the API sample and widget do not support this functionality. I have another functionality enhancement to the widget that I need to work on, so hopefully I can get this in there as well. I'll let you know when it gets updated. Glad you like the widget.
... View more
08-29-2012
11:01 AM
|
0
|
0
|
1322
|
|
POST
|
Hello, Excellent widget but i need some help modifying it. Instead of greater than or equal to... Can I do a "between". I have over 100 years of data and i would like to display it by 5 or 10 years at a time rather than year by year. Below is an example of how it looks year by year by but if i keep this up the list will be too big. <querytemplate>RSL = REPLACE_STR</querytemplate>
<types>0,1,2,3,4,5</types>
<type_descs>Years = 0,Years = 1,Years = 2,Years = 3,Years = 4,Years = 5</type_descs> Is there code like this... <type_descs>Years Between (0&5),Years Between (5&10), Years Between (10&15), Years Between (15&20)</type_descs> Thanks, Jerry Hi Jerry, Here are a couple of options depending on how you have your data structured. Option 1: If your field is a date field and you are using at least ArcGIS 10 for Server then you could use the "time" capability of ArcGIS. The current example allows filtering of the data through enabling "time" on the widget. This will then give you a time slider where you can adjust the time range and filter the data. Option 2: You can configure the widget to filter the between ranges such as (Magnitude >= 6 and Magnitude <= 8). Here is what your configuration file would look like. <querytemplate>REPLACE_STR</querytemplate>
<types>Magnitude >= 2 and Magnitude <= 4,Magnitude >= 6 and Magnitude <= 8</types>
<type_descs>Mag 2-4,Mag 6-8</type_descs> If your field type is not a number and is instead a string, don't forget to put quotes around the values. View it Live If you need to change the user interface or want to go much beyond this, then you'll need to compile the source code on your own (which is provided in the download). Hope this helps,
... View more
08-06-2012
07:26 AM
|
0
|
0
|
1216
|
|
POST
|
Hi LLoyd I'm using the compiled widget and it works perfectly. Is there any possibility to include the population variable? I mean, one single point (A) is heater than another point (B) if the value in another field in A is greater than the value in B. Giorgio, Currently the code does not supported the concept of a "weighted attribute" to generate the heat map. I will add this to the list of features to implement for the next release. I hope to have this finished before the User's Conference in July (2012).
... View more
05-31-2012
06:23 AM
|
0
|
0
|
1216
|
|
POST
|
Does this work with proxies? <layer> <useproxy>true</useproxy> Hi Roger, After taking another look at the source code, it appears that I did not implement this. I'll try and make sure this gets into the 3.0 update. I just don't have time to fix it right now. Sorry,
... View more
05-24-2012
06:44 AM
|
0
|
0
|
1216
|
|
POST
|
Another user had posted (on another thread) a question about using queries so I thought I would repost on this thread. If you are having issues with features being returned in your heat map, you might check the CaSe of the values in your field being used. The queries are case SenSitive. Returns 132 records. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=Name+LIKE+%27%25CHINA%25%27&time=&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=*&f=html Returns 0 records. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=Name+LIKE+%27%25China%25%27&time=&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=*&f=html See the sample below for an earthquakes query using a LIKE operator on the field Name The values in the <types></types> markup must match the values in your data (File Geodatabase Featureclass, etc). Hope this helps, Lloyd Esri Flex Team http://stlouis.esri.com/apps/flexviewer24/index.html?config=heatmap-config-like.xml
<?xml version="1.0" ?>
<configuration>
<layers>
<layer>
<name>Earthquakes HeatMap</name>
<url>http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0</url>
<outFields>YYYYMMDD,Magnitude,Num_Injured,Num_Deaths,Name</outFields>
<useamf>true</useamf>
<defaultquery>1=1</defaultquery>
<querytemplate>Name LIKE '%REPLACE_STR%'</querytemplate>
<types>CHILE,TURKEY,CHINA,PHILIPPINES,JAPAN,IRAN,INDIA</types>
<type_descs>Chile,Turkey,China,Philippines,Japan,Iran,India</type_descs>
</layer>
</layers>
<ui>
<widget_dimensions>
<width>378</width>
<height>206</height>
</widget_dimensions>
<icons>
<main_icon>i_rainbow.png</main_icon><!-- Icon must exist under assets/images in viewer -->
<main_label>Main Panel</main_label><!-- Title/label for icon across the top widget panel -->
<settings_icon>i_options.png</settings_icon>
<settings_label>Settings Panel</settings_label>
</icons>
<refresh_label>refreshing layer...</refresh_label>
<query>
<comp_label>Earthquakes by geography:</comp_label>
<heatmapquery_prompt>default selection</heatmapquery_prompt>
<featurecount_label> features contained</featurecount_label>
</query>
<transparency>
<comp_label>Transparency:</comp_label>
<defaulttransparency>0.7</defaulttransparency>
</transparency>
<symbol>
<comp_label>Theme:</comp_label>
<defaulttheme>RAINBOW</defaulttheme><!-- Must be one of RED_WHITE_BLUE, RAINBOW, or THERMAL -->
</symbol>
</ui>
</configuration>
... View more
04-19-2012
08:58 AM
|
0
|
0
|
1216
|
|
POST
|
Hi Ernest, You might check the CaSe of the values in your field MATERIAL? The queries are case SenSitive. Returns 132 records. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=Name+LIKE+%27%25CHINA%25%27&time=&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=*&f=html Returns 0 records. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=Name+LIKE+%27%25China%25%27&time=&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=*&f=html See the sample below for an earthquakes query using a LIKE operator on the field Name The values in the <types></types> markup must match the values in your data (File Geodatabase Featureclass, etc). Hope this helps, Lloyd Esri Flex Team http://stlouis.esri.com/apps/flexviewer24/index.html?config=heatmap-config-like.xml
<?xml version="1.0" ?>
<configuration>
<layers>
<layer>
<name>Earthquakes HeatMap</name>
<url>http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0</url>
<outFields>YYYYMMDD,Magnitude,Num_Injured,Num_Deaths,Name</outFields>
<useamf>true</useamf>
<defaultquery>1=1</defaultquery>
<querytemplate>Name LIKE '%REPLACE_STR%'</querytemplate>
<types>CHILE,TURKEY,CHINA,PHILIPPINES,JAPAN,IRAN,INDIA</types>
<type_descs>Chile,Turkey,China,Philippines,Japan,Iran,India</type_descs>
</layer>
</layers>
<ui>
<widget_dimensions>
<width>378</width>
<height>206</height>
</widget_dimensions>
<icons>
<main_icon>i_rainbow.png</main_icon><!-- Icon must exist under assets/images in viewer -->
<main_label>Main Panel</main_label><!-- Title/label for icon across the top widget panel -->
<settings_icon>i_options.png</settings_icon>
<settings_label>Settings Panel</settings_label>
</icons>
<refresh_label>refreshing layer...</refresh_label>
<query>
<comp_label>Earthquakes by geography:</comp_label>
<heatmapquery_prompt>default selection</heatmapquery_prompt>
<featurecount_label> features contained</featurecount_label>
</query>
<transparency>
<comp_label>Transparency:</comp_label>
<defaulttransparency>0.7</defaulttransparency>
</transparency>
<symbol>
<comp_label>Theme:</comp_label>
<defaulttheme>RAINBOW</defaulttheme><!-- Must be one of RED_WHITE_BLUE, RAINBOW, or THERMAL -->
</symbol>
</ui>
</configuration>
... View more
04-19-2012
08:46 AM
|
0
|
0
|
505
|
|
POST
|
I would like to show concentration of points on a map. I am thinking of a density map. I was wondering whether the heatmap widget can give me something similar. What api is used to create the heatmap? Do I require any external library? Thanks Did you take a look at the sample? The heat map source code is not yet part of the ArcGIS API for Flex, but is included in the sample. The sample on ArcGIS.com contains the compiled widgets for the ArcGIS Viewer for Flex and the source code needed to make any changes. The source code and compiled widgets will show color coded areas of concentrated points. It does require the ArcGIS API for Flex, which you can get on the Resource Center. Hope this helps, Lloyd Esri Flex Team
... View more
02-21-2012
07:01 AM
|
0
|
0
|
1305
|
|
POST
|
Brett, We're getting very close in finalizing the samples, hopefully I can post them within a couple of weeks. Lloyd Esri Flex Team Brett, You can find the sample code that will be released with ArcGIS API 3.0 for Flex on ArcGIS.com (ArcGIS for Flex Elevations SOE) Lloyd Esri Flex Team
... View more
02-16-2012
12:59 PM
|
0
|
0
|
723
|
|
POST
|
Lloyd, I ended up going with the HTTPService and it seems to be working well, but if you wouldn't mind posting a sample it may be better then what I have or might help someone else. Thanks, Brett Brett, We're getting very close in finalizing the samples, hopefully I can post them within a couple of weeks. Lloyd Esri Flex Team
... View more
02-02-2012
11:33 AM
|
0
|
0
|
723
|
|
POST
|
I have been trying to figure out the best way to execute a Server Object Extension on one of my rest mapserver services. The extension takes two arguments. 1. wkid 2. featureset and returns a String. Do I just use something like the HttpService or does the Flex API contain a better method like the gp objects? I'm using Flex API 2.4 The SOE was writen in C#. Thanks, Nolo Hi Nolo, There will be some samples illustrating how to do this with the 3.0 samples, which aren't public yet. Are you still having issues with this? I can share the samples with you if you would like? Lloyd Esri Flex Team
... View more
01-25-2012
07:51 AM
|
0
|
0
|
723
|
|
POST
|
Hi Lloyd, I am having one heck of a time implementing this widget! I am attempting to utilize the files in HeatMapWidgetCode\v2\HeatMapWidget\src\HeatMap in my project. I am copying the "HeatMap" folder into my Widgets folder. I am using the default Flex Viewer 2.4 (only adding widgets-no other customization), Flash Builder 4, 4.1SDK ("use SDK default" setting in Library path-Framework linkage). The ArcGISHeatMapWidget will not build the swf in my bin-debug widget folder. The <esri_stl:ProgressMessage and HeatMapThemeView lines both show errors "Could not resolve esri_stl:HeatMapThemeView to a component implementation." I can, however, drop the compiled SWF from your HeatMapWidgetCode\v2\HeatMapWidget\bin\bin-2.4 folder into my bin-debug widgets folder, and it works.... Any pointers would be appreciated. Thanks, --Adam Adam, Sorry it took me so long to reply. I use an external Flex Library for most of my stuff, so that's where the namespace originated. Let's assume you have the source code in the following structure within the FlexViewer. You'll probably want to make some additional folders under your src/widgets/HeatMap folder, if you don't intend on using your own external Flex Library Project. Create the following folders. src/widgets/HeatMap
src/widgets/HeatMap/layers
src/widgets/HeatMap/layers/supportClasses
src/widgets/HeatMap/events
src/widgets/HeatMap/utils
src/widgets/HeatMap/view
src/widgets/HeatMap/skins Move the source files to the following locations. src/widgets/HeatMap/ArcGISHeatMapWidget.mxml
src/widgets/HeatMap/ArcGISHeatMapWidget.xml
src/widgets/HeatMap/layers/ArcGISHeatMapLayer.as
src/widgets/HeatMap/layers/supportClasses/HeatMapGradientDict.as
src/widgets/HeatMap/layers/supportClasses/HeatMapPoint.as
src/widgets/HeatMap/layers/supportClasses/HeatMapGradientDict.as
src/widgets/HeatMap/events/HeatMapEvent.as
src/widgets/HeatMap/utils/ColorMatrixUtil.as
src/widgets/HeatMap/utils/StringUtil.as
src/widgets/HeatMap/view/ProgressMessage.mxml
src/widgets/HeatMap/view/HeatMapThemeView.mxml
src/widgets/HeatMap/skins/ButtonBarImageSkin.mxml
src/widgets/HeatMap/skins/ButtonBarImageButtonSkin.mxml Make sure you correct any import references from "com.esri.stl" to "widgets.HeatMap" the import references may vary depending on how you name your widget directory structure. The UI View components (ProgressMessage.mxml,HeatMapThemeView.mxml) under src/widgets/HeatMap/view HeatMapThemeView.mxml has a ButtonBar with its skinClass is set to ButtonBarImageSkin. ButtonBarImageSkin.mxml references the skinClass ButtonBarImageButtonSkin You'll need to change the skinClass in both (HeatMapThemeView,ButtonBarImageSkin) from
skinClass="com.esri.stl.skins.THE_SKIN_CLASSNAME"
to
skinClass="widgets.HeatMap.skins.THE_SKIN_CLASSNAME" You'll also need to modify the references to the assets in ProgressMessage.mxml,HeatMapThemeView.mxml So you'll need to modify the source files that have references to the namespace xmlns:esri_stl="http://www.esri.com/2010/stl". You would use local namespaces for the various view, layers, etc. So in your implementation you would update the following reference like this... In the ArcGISHeatMapWidget.mxml change the namespace from xmlns:esri_stl="http://www.esri.com/2010/stl" to xmlns:view="widgets.HeatMap.view.*" then update the various components that were using the esri_stl namespace <view:HeatMapThemeView id="heatMapThemeView"
themeLabel="{heatmapCompLabel}" theme="{heatmapTheme}"
themeSelectionChanged="themeSelectionChangedHandler(event)" />
If you were using the ArcGISHeatMapLayer class in a widget and were referencing it through mxml rather than ActionScript, you may do something like this... Add the namespace xmlns:layers="widgets.HeatMap.layers.*"
change <esri_stl:ArcGISHeatMapLayer id="heatMapLayer" url="{m_url}"
useAMF="true"
outFields=" "
alpha="0.7"/> to <layers:ArcGISHeatMapLayer id="heatMapLayer" url="{m_url}"
useAMF="true"
outFields=" "
alpha="0.7"/> If this was helpful, let me know and I can add it to the widget documentation. Lloyd
... View more
10-07-2011
08:11 AM
|
0
|
0
|
1305
|
|
POST
|
After several tries, I got flex viewer heat map working for my own layer. I realized that I had to include the <defaultquery> 1=1 </defaultquery> tag to be able to show all the points and refresh the browser. I also got some basic query done, thanks to Lloyd's guidance on query, many thanks, guys. I am going a little bit far now: Can I query based on two different fields (first is type, second is status, in my case). I think I would like to try and find out. Probably would need to add another query in the heatmap widgit or create another similar "widgit"? Are there better/easy ways to do multiple queries? If you want to make changes to the User Interface like add another input text box or dropdown, then this will require you to change the code and recompile. However if you just want to do a more complex query, then that can be done through the config file. If you modify the query template, then you can add additional parameters such as: Magnitude > REPLACE_STR and (Num_Deaths >= 10 and Num_Deaths <= 100) When you would then select "Mag > 2" from the UI, the following query would be issued. Magnitude > 2 and (Num_Deaths >= 10 and Num_Deaths <= 100) The REPLACE_STR in the "<querytemplate></querytemplate>" is used to take the values from the "<types></types" in the config file replace the "REPLACE_STR" with the value selected from the dropdown in the UI. Hopefully this makes sense. Lloyd
... View more
09-29-2011
08:25 AM
|
0
|
0
|
1305
|
|
POST
|
I tried to use my own point layer (arcgis server map service) to replace the earthquake layer as the heatmap layer. I replaced the earthquake layer url with my own url, but it returned 0 feature. What else do I need to check or modify? (I tried to remove the query part in the xml) Do I need to recompile the code? So far I just need to display the points (headmap) without query. Maybe later on I would like to query by the points' type information or a frequency attribute. The viewer looks really nice. I am interested in customizing it for our purpose. I wonder what kind of customization needs recompilation (using flex builder), what customization is just as easy as replacing links or variables and doesn't need to recompile from source code. I am trying to find out myself, but some tips will be very helpful. Thanks! Danny, For your initial interest, you won't need to recompile the code. You just need to make sure that your service is returning geometry. The widget needs to do a query in order to get the points from your service so that it can render the heatmap. The initial query (1=1) will ask the service for all its features (this (number of features) is controlled by a setting on the service itself [this is mentioned in the readme]). The "default query" (<defaultquery>1=1</defaultquery>) in the config file is what is loaded the first time the widget loads. If you want all the features in your service to display, just leave this with the "1=1" syntax. Some things to try: Open your service in the "Services Directory" (http://yourserver/arcgis/rest/<yourFolder>/yourService/MapServer/layerID), and issue a query with the fields you want returned. Make sure the geometry is being returned. You could use a tool like Firebug (Firefox) or Fiddler to inspect the request/response being issued. If you eventually want to do some customization, here's some help. Flash Builder or any other IDE is not required, but will save you time and make you productive. I don't really know anyone that is doing command line compilation (ANT, Maven) for development other than folks that use automated compilation from a centralized source code repository. Any changes you would like to make, other than the configuration file changes will require recompiling the widget. Make sure you are not hiding the SHAPE field in your map document. Lloyd
... View more
09-27-2011
09:25 AM
|
0
|
0
|
1305
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-01-2015 01:05 PM | |
| 1 | 05-01-2015 12:38 PM | |
| 1 | 10-17-2014 12:54 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|