Raster rendering rule

This sample demonstrates how to create an ImageServiceRaster, fetch the rendering rules from the service info, and use a RenderingRule to create an ImageServiceRaster and add it to a raster layer.

Raster rendering rules

Code

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"             
             xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime" 
             x:Class="ArcGISRuntimeXamarin.Samples.RasterRenderingRule.RasterRenderingRule">
  <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <esriUI:MapView x:Name="MyMapView" />
        <Button x:Name="changeRenderingRule" Text="Change Rendering Rule" Clicked="OnChangeRenderingRuleButtonClicked" Grid.Row="1"/>
    </Grid>
</ContentPage>


In this topic
  1. Code