InformationLayer ItemTemplate

2 posts, 1 answers
  1. Jonas Hero
    Jonas Hero avatar
    9 posts
    Member since:
    Jul 2009

    Posted 23 Jun 2010 Link to this post


    I have a map with an information layer above and I add some items to its collection. The default item template (red pin point) has a nice appearance and works fine.

    Now I'm going to add another information layer to the map, and I want to change the pin points color on that layer.

    Is there an easy way to do this without defining a complete new item template? Or can i get the default item template xaml code from anywhere?

    Note: I'm using VS2010, only. No Expression Blend.

    Thanks a lot for your help!
  2. Answer
    Andrey avatar
    1681 posts

    Posted 23 Jun 2010 Link to this post

    Hello Jonas Hero,

    You should specify a complete new item template to change the pin points color. The template you can use as a base is the following:
    <maps:InformationLayer Name="informationLayer">
                        <maps:HotSpot X="0.5" Y="40" XUnits="Fraction" YUnits="InsetPixels" />
                    <Path Stretch="Fill" 
                      Data="M12,26.083 L16,26.083 13.916667,32.083 z M14,3 C20.075132,3 25,7.9248676 25,14 25,20.075132 20.075132,25 14,25 7.9248677,25 3,20.075132 3,14 3,7.9248676 7.9248677,3 14,3 z"
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox">
                                <GradientStop Color="White"/>
                                <GradientStop Color="Black" Offset="0.853"/>
                            <DropShadowEffect BlurRadius="7" ShadowDepth="1" />

    Kind regards,
    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top