Marker with border

499
3
Jump to solution
07-13-2012 06:25 AM
LuisGarcia2
Occasional Contributor II
I need to create a marker with a border as shown in the attachment. Is there anything like that out-of-the-box?
Thanks!
0 Kudos
1 Solution

Accepted Solutions
PreetiMaske
Esri Contributor
Hi,

Thats simple , all you need is to template symbolmaker symbol. For e.g. the symbol you want can be drawn using following code:

<esri:SimpleMarkerSymbol x:Key="RedMarkerSymbol">
                <esri:SimpleMarkerSymbol.ControlTemplate>
                    <ControlTemplate>                       
                        <Ellipse Fill="LightBlue" Stroke="Black" Width="15" Height="15"/>
                    </ControlTemplate>
                </esri:SimpleMarkerSymbol.ControlTemplate>
            </esri:SimpleMarkerSymbol>

View solution in original post

0 Kudos
3 Replies
LuisGarcia2
Occasional Contributor II
If there is a way to extend a Marker class that results in my markers having that border, it would be an option too. I already saw the docs for SimpleMarkerSymbol and it cannot be extended at all.
Thanks!
0 Kudos
PreetiMaske
Esri Contributor
Hi,

Thats simple , all you need is to template symbolmaker symbol. For e.g. the symbol you want can be drawn using following code:

<esri:SimpleMarkerSymbol x:Key="RedMarkerSymbol">
                <esri:SimpleMarkerSymbol.ControlTemplate>
                    <ControlTemplate>                       
                        <Ellipse Fill="LightBlue" Stroke="Black" Width="15" Height="15"/>
                    </ControlTemplate>
                </esri:SimpleMarkerSymbol.ControlTemplate>
            </esri:SimpleMarkerSymbol>

View solution in original post

0 Kudos
LuisGarcia2
Occasional Contributor II
Yes, that does it. Thanks for your help!!
0 Kudos