Magnifier layer-highlighted features display

575
1
Jump to solution
07-12-2012 09:19 PM
JudyTroutwine
Occasional Contributor
I want the magnifier to be used to better see which point in a cluster of points is selected.  The renderer for the point feature layer correctly highlights a selected point.  The magnifier however shows all points wiith the "Unselected" symbol.  Is there a solution for this?   The graphics layer that displays a highlighting pin marker for a point being identified is also not seen through the magnifier.

The animation xaml code and the magnifier xaml code is shown here:

<!--Feature layer renderer-->
    <esri:SimpleRenderer x:Key="SelRenderer">
        <esri:SimpleRenderer.Symbol>
          <esri:MarkerSymbol >
            <esri:MarkerSymbol.ControlTemplate>
              <ControlTemplate>
                <Ellipse  x:Name="Element"  Fill="Blue"  Height="9" Width="9"  StrokeThickness="1" Stroke="Black">
                  <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="SelStates">
                      <VisualState x:Name="Unselected" />
                      <VisualState x:Name="Selected">
                        <Storyboard>
                          <ColorAnimation Storyboard.TargetName="Element"
                 Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)"
                              To="Magenta" Duration="0:0:.25" />
                          <DoubleAnimation Storyboard.TargetName="Element"
                Storyboard.TargetProperty="StrokeThickness"                                                       
                             To="1" Duration="00:00:.25" />
                        </Storyboard>
                      </VisualState>
                    </VisualStateGroup>
                  </VisualStateManager.VisualStateGroups>
                </Ellipse>
              </ControlTemplate>          
            </esri:MarkerSymbol.ControlTemplate>
          </esri:MarkerSymbol>
        </esri:SimpleRenderer.Symbol>
      </esri:SimpleRenderer> 

        ....


  <!--Magnifier-->
    <Grid x:Name="MagnifierGrid" Grid.Row="2" Grid.Column="2"
                      Visibility="Collapsed"         
                     HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,160,0" >
      <Rectangle Fill="#77919191" Stroke="Gray"  RadiusX="10" RadiusY="10" Margin="0,0,0,5" >
        <Rectangle.Effect>
          <DropShadowEffect/>
        </Rectangle.Effect>
      </Rectangle>
      <Rectangle Fill="#66FFFFFF" Stroke="DarkGray" RadiusX="5" RadiusY="5" Margin="10,10,10,15" />
      <Image x:Name="MyMagnifyImage" Source="Assets/images/magglass.png"  Canvas.ZIndex="10" Margin="25, 20, 20, 25"
                   Stretch="UniformToFill" Width="32" Height="50"  />
    </Grid>

    <Canvas x:Name="MagnifierCanvas">
      <esriWidgets:Magnifier x:Name="MyMagnifier" ZoomFactor="2" Canvas.ZIndex="15"
                            Map="{Binding ElementName=MyMap}" >
        <esriWidgets:Magnifier.Layers>
          <esri:ArcGISDynamicMapServiceLayer ID="CampusAb"
                     Url="http://  ..."/>
          <esri:FeatureLayer ID="MagTrees" Mode="OnDemand" Renderer="{StaticResource SelRenderer}"
                         Url="http:// ... "
                                    OutFields="*" >
          </esri:FeatureLayer>
          <esri:GraphicsLayer ID="IdentifyGraphicsLayer" />   
        </esriWidgets:Magnifier.Layers>
      </esriWidgets:Magnifier>
    </Canvas>
0 Kudos
1 Solution

Accepted Solutions
PreetiMaske
Esri Contributor
Magnifier actually makes the request to the map service or featurelayer service and gets the features. If the same service is added on the map and has some selections or custom symbology, magnifier cannot display it because it is not requesting image off a map. It will display the layer with default renderer/symbol or whatever comesback as part of layer info. Botton line is , I think it is not possible.

View solution in original post

0 Kudos
1 Reply
PreetiMaske
Esri Contributor
Magnifier actually makes the request to the map service or featurelayer service and gets the features. If the same service is added on the map and has some selections or custom symbology, magnifier cannot display it because it is not requesting image off a map. It will display the layer with default renderer/symbol or whatever comesback as part of layer info. Botton line is , I think it is not possible.
0 Kudos