I tried updating my application, but got 2 errors:
<esri_stl:ArcGISHeatMapLayer id="heatMapLayer" url="{m_url}"
One for the heatmaptest and the other for the heatmaptime test mxml
Can anyone help?
Thanks.
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags" xmlns:my_custom_sourcecode="com.mycustomsourcecode" backgroundColor="0x8080C0"> <esri:Map id="map" wrapAround180="true" > <esri:ArcGISTiledMapServiceLayer url="{YourBasemapURL}" visible="true"/> <my_custom_sourcecode:ArcGISHeatMapLayer id="heatMapLayer" url="{YourHeatmapURL}" useAMF="true" outFields="
Works great.
Question about the heat map time line function.
The residual data does not leave the map as the slider is progressed through the date range.
eg, I have 10 various xy points for 1980, then another various 10 points for 1981, but as I move the slider from 1980 to 1981 I no longer have 10 points only I have a cumulative 20 points and thus the heat spot increases. Is this by design? or can it be changed to only reflect the data as requested by the given date range of the slider request.
Cheers
Mick.
It was simply a design decision, there is a property on the TimeSlider named thumbCount. You can see how it works in this sample Time Slider with 2 thumbs. Unfortunately you would need to recompile the widget in order to make this change, maybe it is something I can do in the next version (whenever that would be) through the configuration file.
Lloyd
Lloyd, great widget! thanks for sharing it.
I managed to implement the source code in to my project, haven't made any customizations yet. Right now I just wanted to try it out, but for later projects I might want to use another data source than a mapservice from ArcGIS Server, lets say I get some point data somehow and put them into a graphiclayer for example. How much rewriting of the source code would I have to do to use that as an input instead? I haven't look at the code much yet but I'm guessing it will be really tricky for someone with limited knowledge of flex/actionscript.
/Mattias
Is there a way to use equal(=)and not >(>), and is there a way to use a field that is string and not an integer or double? Thanks.
<querytemplate>FIELD_NAME = 'REPLACE_STR'</querytemplate> <types>VAL1,VAL2,VAL3,VAL4</types> <type_descs>Name = 1,Name = 2,Name = 3,Name = 4</type_descs>
This widget is Excellent!, unfortunately I haven't been able to make it work with table-based dynamic (Event) map services; when running the widget I get the right number of records from the database but all of them are clustered in the (0,0) coordinates (My data is all in WGS84); however if in the MXD I export the temporary event layer to a feature class and then republish my service, it works perfectly. My operational layers are dynamic by nature so I can't afford the task of being regularly saving to feature classes. I was wondering if there is any workaround for this?
Much appreciated.
Oscar
Hey Oscar,
I tested this using an Event based layer through ArcGIS Server, and it works. I've attached a document with some info on this. FYI, you WILL NOT get the best performance publishing this way; but it does work. It also most likely only works with mxd based services [that is what I tested], not optimized (msd) based services. Since it is not optimized it is likely that you might not be able to publish event layers as services in the future, but I don't know that for sure.
Good Luck,
Lloyd
I don't know all of the details of your workflow, but here are some other possible suggestions:
- You could use the Feature Service in ArcGIS Server to keep your featureclass updated dynamically. Send all your edits through the feature service, and use the feature service as input to the HeatMap widget.
- You might possibly be able to use the capabilities of using a QueryLayer to support the dynamic nature of your data, and serve that QueryLayer through a map service in ArcGIS Server.