Can't get sample GEORSS to work

646
2
Jump to solution
08-14-2012 10:31 AM
caseycupp
New Contributor III
I must be doing something wrong..

http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#GeoRssSimple


What I've done...
# 1 - I've copied the xaml exactly.. (i actually removed the tooltip, to reduce complexity)
but when I run, i see the basemap, but not the georss)

# 2 - Added the ESRI Classes and the Serialization class as reference.

# 3 - Run

<UserControl x:Class="GeoRssTesting.MainPage"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"                 xmlns:esri="http://schemas.esri.com/arcgis/client/2009"     mc:Ignorable="d"     d:DesignHeight="300" d:DesignWidth="400">     <Grid x:Name="LayoutRoot" Background="White">         <Grid.Resources>             <esri:SimpleRenderer x:Key="MySimpleRenderer">                 <esri:SimpleRenderer.Symbol>                     <esri:PictureMarkerSymbol Source="/Assets/images/quake-30x30.png" OffsetX="8" OffsetY="8" Width="16" />                 </esri:SimpleRenderer.Symbol>             </esri:SimpleRenderer>         </Grid.Resources>          <esri:Map x:Name="MyMap" WrapAround="True">             <esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" />             <esri:GeoRssLayer ID="MyGeoRssLayer" Source="http://earthquake.usgs.gov/earthquakes/catalogs/7day-M5.xml"                                                             Renderer="{StaticResource MySimpleRenderer}" >                            </esri:GeoRssLayer>         </esri:Map>     </Grid> </UserControl>
0 Kudos
1 Solution

Accepted Solutions
caseycupp
New Contributor III
figured it out...it is missing the image..

replaced w/ this, and it worked well

<Grid.Resources>
            <esri:SimpleRenderer x:Key="MySimpleRenderer">
                <esri:SimpleRenderer.Symbol>
                    <!--<esri:PictureMarkerSymbol Source="/Assets/images/quake-30x30.png" OffsetX="8" OffsetY="8" Width="16" />-->
                    <esri:SimpleMarkerSymbol Color="Red" Size="20" ></esri:SimpleMarkerSymbol>
                </esri:SimpleRenderer.Symbol>
            </esri:SimpleRenderer>
        </Grid.Resources>

View solution in original post

0 Kudos
2 Replies
caseycupp
New Contributor III
Just to make sure i'm not missing something obvious, I have added my own dynamic service in between the basemap and the georss and it shows up fine.
0 Kudos
caseycupp
New Contributor III
figured it out...it is missing the image..

replaced w/ this, and it worked well

<Grid.Resources>
            <esri:SimpleRenderer x:Key="MySimpleRenderer">
                <esri:SimpleRenderer.Symbol>
                    <!--<esri:PictureMarkerSymbol Source="/Assets/images/quake-30x30.png" OffsetX="8" OffsetY="8" Width="16" />-->
                    <esri:SimpleMarkerSymbol Color="Red" Size="20" ></esri:SimpleMarkerSymbol>
                </esri:SimpleRenderer.Symbol>
            </esri:SimpleRenderer>
        </Grid.Resources>
0 Kudos