Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
Add symbol to element with out adding layer for symbol
posted

hi

  i want to add some symbols say (boiler.png) to particular elements. i gone throw some online resource where they added new layer for symbol which i don't want. is't possible to add symbol to map element with out adding extra layer as in the following code snippet.i have code for adding symbol to map element with the use of another layer as follows...

<igMap:XamWebMap.Layers>

                <igMap:MapLayer x:Name="CountryLayer">

                    <igMap:MapLayer.Reader>

                        <igMap:ShapeFileReader Uri="shapefile/IND_adm1" DataMapping="Caption=NAME_1;Name=NAME_1"/>

                    </igMap:MapLayer.Reader>

                  </igMap:MapLayer>

               <igMap:MapLayer x:Name="SymbolLayer">

                    <igMap:MapLayer.ValueTemplate>

                        <DataTemplate x:Name="datatemp">

                            <Image Width="50" Height="50" x:Name="img1" Source="images/pizza.png"/>

                        </DataTemplate>

                    </igMap:MapLayer.ValueTemplate>

                </igMap:MapLayer> 

            </igMap:XamWebMap.Layers>

i am very thankful if i get working sample...