|
POST
|
We were told this issue would be fully fixed with 10.1, so I'm hoping that is still the case. We've held off an all SP upgrades above SP1 because of this bug.
... View more
05-11-2012
10:41 AM
|
0
|
0
|
4716
|
|
POST
|
To zoom to a point, it's easier to use the maps centerAndZoom method http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi/map.htm#centerAndZoom map.centerAndZoom(graphic.geometry, 17)
... View more
05-11-2012
07:10 AM
|
0
|
0
|
809
|
|
POST
|
I can't view your code at work because dropbox is blocked, but I can tell by your zoom bar that you don't have <body class="claro"> set. Try adding the class and see if that fixes it.
... View more
04-19-2012
05:30 AM
|
0
|
0
|
2719
|
|
POST
|
Try to cast the layer to coerce the result you want.
Bindable]
private var annexLayer:FeatureLayer = FeatureLayer(map.getLayer("Annexations"));
If you read the docs on the Map::getLayer() method, you'll see it will always return a base Layer that you would need to cast to the proper type in most cases.
... View more
04-02-2012
06:28 AM
|
0
|
0
|
934
|
|
POST
|
Sorry, put it in your init function, after the dojo.connect for the map.
... View more
03-23-2012
02:15 PM
|
0
|
0
|
693
|
|
POST
|
Actually, this will work
dojo.connect(dijit.byId("mySelect"), "onChange", function(value){
console.log("value = ", value);
});
... View more
03-22-2012
02:23 PM
|
0
|
0
|
693
|
|
POST
|
I should note too, that in the context of a standalone application, you don't really need to stringify the results of the conversion. That was done in the context of using the solution via REST.
... View more
03-22-2012
07:05 AM
|
0
|
0
|
974
|
|
POST
|
Nevermind. This works as intended. I was able to track down the issue in my application to a bug in my library that cleared all GraphicsLayers on varying events, including before I ran my FeatureLayer query. My bad, thanks.
... View more
03-14-2012
06:15 AM
|
0
|
0
|
283
|
|
POST
|
I recently tried updating an app to allow adding selections to a FeatureLayer. This is using the 2.4 Flex API (want to avoid updating for the moment). I'm not doing any editing, I'm just loading the FeatureLayer with a service url like so http://internalserver/ArcGIS/rest/services/SewerFeatures/MapServer/4 I create my FeatureLayer like so
fLayer.mode = FeatureLayer.MODE_SELECTION
This thread suggests that I should use FeatureLayer.SELECTION_ADD when initializing, but when I did that, no selections worked. Anyway, I can do a selection using the default "new"
fLayer.selectFeatures( query, FeatureLayer.SELECTION_NEW, new AsyncResponder( onSewerFeaturesSelected, onFault ));
Then when I try to add to this selection at some point after the results are shown
fLayer.selectFeatures( query, FeatureLayer.SELECTION_ADD, new AsyncResponder( onSewerFeaturesSelected, onFault ));
It doesn't add new features to the selection, it just does a new selection and clears what was previously selected. These queries are being done via a geometry if that matters. Maybe I'm misunderstanding what FeatureLayer.SELECTION_ADD does when in FeatureLayer.MODE_SELECTION. I can probably work around it by saving my selected graphics and adding them back, but I would think the above method should work.
... View more
03-13-2012
02:43 PM
|
0
|
1
|
3149
|
|
POST
|
Odd. I just tried the link you posted and get the same thing in IE Version 8.0.6001.18702 Works fine in Chrome. I haven't looked at the Flex samples pages in ages, never noticed it before.
... View more
01-26-2012
04:59 AM
|
0
|
0
|
465
|
|
POST
|
Nice catch. It wasn't THE fix, but it got me to figure out a workaround. I still have an issue where wo_FeatureLayer is null, but I can get around it like this.
FeatureLayer fl = Map.Layers.Where(lyr => lyr.ID == "WorkOrders").First() as FeatureLayer;
I'm still new to Silverlight, so maybe accessing MainPage.xml items is a little different. But thanks, that helped!
... View more
01-21-2012
01:33 PM
|
0
|
0
|
485
|
|
POST
|
Please excuse my noobness when it comes to Silverlight, I'm still learning it. I am currently trying to select an item in my FeatureLayer based on a row click of a DataGrid. I found this thread, which I thought would get me on the right track, and I think I'm half way there. http://forums.arcgis.com/threads/19265-Selection-Based-on-Attributes?highlight=featurelayer+selection
<esri:FeatureLayer ID="WorkOrders" x:Name="wo_FeatureLayer" Url="http://servername/ArcGIS/rest/services/WorkOrders/MapServer/0"
OutFields="*">
</esri:FeatureLayer>
Then I have a DataGrid with some data where a single field matches an ID in my FeatureLayer. I use the DataGrids SelectionChanged event to start my query.
private void wo_DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
try
{
WORK_ORDER wo = e.AddedItems[0] as WORK_ORDER;
MessageBox.Show(wo.WorkOrderID.ToString());
// when I step through on a breakpoint here, it always tells me wo_FeatureLayer is null
var graphic = wo_FeatureLayer.Where(g => g.Attributes["MXWONUM"].ToString() == wo.WorkOrderID.ToString()).First();
graphic.Select();
}
catch(Exception err)
{
MessageBox.Show("oops:" + err.Message);
}
}
The resulting error is, "Value cannot be null. Parameter name:source" I know the FeatureLayer works, because I use it's MouseLeftDown event to populate another window without issue. I'm sure I must be missing something simple, but a nudge in the right direction would be helpful. Thanks.
... View more
01-21-2012
10:07 AM
|
0
|
3
|
773
|
|
POST
|
I just have to say, it's real nice to see flexviewer source on github. Makes things simpler.
... View more
12-04-2011
10:43 AM
|
0
|
0
|
489
|
|
POST
|
Dasa chimed in over here http://forums.arcgis.com/threads/43859-Adobe-donating-Flex-to-open-source-community It's basically going from Adobe Flex to Apache Flex.
... View more
11-18-2011
06:20 AM
|
0
|
0
|
1029
|
|
POST
|
Can you use the flash debugger to verify that Geolocation.isSupported==true on your device?
... View more
11-17-2011
06:27 AM
|
0
|
0
|
1259
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 12-09-2025 08:20 AM | |
| 1 | 11-13-2025 03:13 PM | |
| 2 | 11-06-2025 11:10 AM | |
| 3 | 11-05-2025 02:54 PM |
| Online Status |
Online
|
| Date Last Visited |
4 hours ago
|