Select to view content in your preferred language

PictureMarkerSymbol not displaying

671
2
Jump to solution
02-07-2012 12:39 PM
PawanVuppala
Frequent Contributor
Trying to mimic this sample here but I dont get the flag displayed on the map.  I do have the yellow-flag.png saved in my images folder..
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddressToLocation

 <Grid.Resources>               <esri:PictureMarkerSymbol x:Key="DefaultMarkerSymbol"                  OffsetX="0" OffsetY="31" Source="/RH;component/Images/yellow-flag.png" />         </Grid.Resources>


ANy ideas?
Please help.
0 Kudos
1 Solution

Accepted Solutions
DominiqueBroux
Esri Frequent Contributor
Source="/RH;component/Images/yellow-flag.png"

With this kind of syntax, he image is supposed to be compiled as Resource and to be in a folder called Images.

Check that the build action of your image is set to 'Resource' and check the folder and the file name.

View solution in original post

0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
Source="/RH;component/Images/yellow-flag.png"

With this kind of syntax, he image is supposed to be compiled as Resource and to be in a folder called Images.

Check that the build action of your image is set to 'Resource' and check the folder and the file name.
0 Kudos
PawanVuppala
Frequent Contributor
Appreciate your help.  I finally added the image to the Project and I get it now.

Thanks!
Trying to mimic this sample here but I dont get the flag displayed on the map.  I do have the yellow-flag.png saved in my images folder..
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddressToLocation

 <Grid.Resources>
              <esri:PictureMarkerSymbol x:Key="DefaultMarkerSymbol" 
                OffsetX="0" OffsetY="31" Source="/RH;component/Images/yellow-flag.png" />
        </Grid.Resources>


ANy ideas?
Please help.
0 Kudos