POST
|
Hello, I want to display graphics with different styling based on multiple properties of my data objects. In ArcGIS WPF you can bind data properties to different display attributes like rotation and background color, but in iOS the class breaks renderers only take in one field/parameter. What I do NOT want to do is to define a symbol for each combination of values (e.g. 10 images x 5 colors x 8 rotation angles = 400 AGSCompositeSymbol objects). Is there any way to achieve this in the current SDK version? Regards, Vernon
... View more
02-21-2014
11:37 AM
|
0
|
0
|
508
|
POST
|
Hello all, Just wondering why there is currently no feature / graphic clustering support in the SDK like there is in WPF and possibly other runtime SDKs. Is this on the roadmap in any form? Thanks, Vernon
... View more
02-18-2014
12:59 PM
|
0
|
11
|
6154
|
POST
|
FWIW, I have also found a slight conflict in the API docs regarding hit-testing (specifically for the cluster graphic). In the FlareClusterer documentation overview, it says If providing some form of combined graphic attribute information for multiple graphics is desired for the non-interactive grouping symbol, you could use a creative solution like using the ESRI.ArcGIS.Client.GraphicsLayer.FindGraphicsInHostCoordinates in the Map Control to determine via a mouse click if the non-interactive grouping symbol was found and display a custom UIElement back to the user with the desired information And in the GraphicsLayer.FindGraphicsInHostCoordinates() documentation it reads: If the System.Windows.Point location finds a clustered graphic, the individual graphics that the cluster represents will be returned Can anyone tell me what I'm missing here?
... View more
01-30-2014
10:12 AM
|
0
|
0
|
161
|
POST
|
Hello, I have created a custom graphics cluster in code-behind with the following XAML:
<esri:GraphicsLayer ID="WorkOrders" MouseLeftButtonUp="GraphicsLayer_MouseLeftButtonUp">
<esri:GraphicsLayer.Clusterer>
<s:OrderClusterer>
</s:OrderClusterer>
</esri:GraphicsLayer.Clusterer>
</esri:GraphicsLayer> The mouse up handler normally fires when I click on an unclustered graphic; I am wondering why the cluster graphic (if it belongs to the same graphics layer) does not fire the handler. Do I need to work around this with a generic map mouseclick handler [as I am currently doing in my generic map touch handler] via FindGraphicsInHostCoordinates() ? Thanks, Vernon
... View more
01-29-2014
01:10 PM
|
0
|
1
|
2124
|
POST
|
Hello, I am starting to attempt this right now, but fairly new to iOS development. Does anyone have success with binding the current Runtime SDK (10.1.1 / 10.2) ? Minor differences on inspection: it appears that with the new runtime there is no library (.a) file, but there is a large ~500Mb file in the SDK install directory, and ArcGIS now appears to be accessed as a framework (?) I will gladly post any successful results and samples. Collaborators Help! Regards, Vernon
... View more
06-05-2013
03:14 PM
|
0
|
0
|
389
|
POST
|
Has there been any response or resolution to this? I have the same problem processing an output txt file for driving directions/routing. http://127.0.0.1:50000/outputdir/offlinerouting/output/_ags_Route 2_Directions48.txt cannot be found, even though each request generates a new file which I can find in the file system. Regards, Vernon
... View more
05-08-2013
05:18 PM
|
0
|
0
|
159
|
POST
|
Thanks for your response. I have found that the Binding works when simply specified thus: {Binding Symbol.Source} It appears that the 'Symbol' is the property name in the graphic object which the PictureMarkerSymbol is bound to. Using {Binding Path=Source} is evidently looking at the wrong entity. This also works when subclassing MarkerSymbol and using DependencyProperty values, e.g. {Binding Symbol.FuzzColor} The overview for ESRI.ArcGIS.Client.Symbols.Symbol in the WPF API documentation has a sample using Binding with MarkerSymbol, but I missed it because the text is quite small.
... View more
04-24-2013
01:44 PM
|
0
|
0
|
433
|
POST
|
Hi all (from a WPF noob): I am trying to create a ControlTemplate for a PictureMarkerSymbol (or MarkerSymbol subclass) that can style selection/unselection AND bind its image source in code-behind. For simplicity, I have 3 different PictureMarkerSymbol static resources, each corresponding to a data value. Without the ControlTemplate, the images display fine. private Symbol DetermineSymbol(int orderStatusId) { switch (orderStatusId) { case 20: case 30: return Container.Resources["InProgressOrderSymbol"] as Symbol; case 50: return Container.Resources["CompletedOrderSymbol"] as Symbol; default: return Container.Resources["AssignedOrderSymbol"] as Symbol; } } private void AddGraphic(MapOrder order) { Graphic graphic = new Graphic() { Geometry = mercator.FromGeographic(new MapPoint((double)order.Longitude, (double)order.Latitude)) Symbol = DetermineSymbol(order.OrderStatusId) }; // add to graphics layer } The animation is meant to pulse a selection border around a diamond graphic, because we cannot change the blue PictureMarkerSymbol selection UI in accelerated mode. This is unaccelerated mode, so the template and its styling work fine when applied, but the image is not visible, probably because the binding failed. <Grid x:Name="Container"> <Grid.Resources> <ControlTemplate x:Key="WOTemplate" x:Name="WOTemplate"> <Grid Height="48" HorizontalAlignment="Center" VerticalAlignment="Center" Width="48" Background="#02FFFFFF"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="SelectedStates"> <VisualState x:Name="Unselected"> <Storyboard > <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Fuzz" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0" /> </Storyboard> </VisualState> <VisualState x:Name="Selected"> <Storyboard RepeatBehavior="Forever"> <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Fuzz" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0" /> <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Fuzz" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:1" /> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Path x:Name="Fuzz" Fill="#FFAAC800" Stretch="Fill" Stroke="#FFAAC800" StrokeThickness="3" Height="48" Width="48" HorizontalAlignment="Center" Margin="0,0,0,0" VerticalAlignment="Center" Opacity="0"> <Path.Data> <GeometryGroup> <LineGeometry StartPoint="1, 24" EndPoint="-24, -1"/> <LineGeometry StartPoint="-24, 1" EndPoint="1, -24"/> <LineGeometry StartPoint="-1, -24" EndPoint="24, 1"/> <LineGeometry StartPoint="24, -1" EndPoint="-1, 24"/> </GeometryGroup> </Path.Data> </Path> <Image x:Name="image" Source="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Source}" RenderTransformOrigin="0.5,0.5"/> </Grid> </ControlTemplate> <esri:PictureMarkerSymbol ControlTemplate="{StaticResource WOTemplate}" x:Name="AssignedOrderSymbol" x:Key="AssignedOrderSymbol" Source="Assets/MapStatus_Assigned.png" OffsetX="24" OffsetY="24"/> <esri:PictureMarkerSymbol ControlTemplate="{StaticResource WOTemplate}" x:Name="CompletedOrderSymbol" x:Key="CompletedOrderSymbol" Source="Assets/MapStatus_Completed.png" OffsetX="24" OffsetY="24" /> <esri:PictureMarkerSymbol ControlTemplate="{StaticResource WOTemplate}" x:Name="InProgressOrderSymbol" x:Key="InProgressOrderSymbol" Source="Assets/MapStatus_InProgress.png" OffsetX="24" OffsetY="24"/> </Grid.Resources> ... I have tried 1) removing the image tag from the template, 2) creating a subclass of MarkerSymbol with a DependencyProperty for the image source, 3) setting the ControlTemplate property in code-behind (after the graphic is created), 4) using UniqueValueRenderer on the GraphicsLayer instead of determining and setting the graphic symbol in code-behind. The image still fails to display. Is there something wrong with the binding? Does the Image's Source property at the ControlTemplate level have to be converted to an actual ImageSource instance? One way that for sure works is creating 3 PictureMarkerSymbols, each containing the ControlTemplate and a different, explicit image source filename, but that ruins the point of using a template. Thanks in advance, Vernon
... View more
04-24-2013
01:30 AM
|
0
|
2
|
2750
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|