Select to view content in your preferred language

how create a "Image button" on map?PictureMarkerSymbol??

731
2
04-29-2010 04:33 AM
Stefhandarkness
New Contributor
hi,
I want add PictureMarkerSymbol or another image on map when click , open mini-
menu with options(delete mark,see infos,update info etc..), can anyone help me?thx


ps:I guess cannot be a maptip, because menu must still mouse not over, only dissapear when click on another thing.
0 Kudos
2 Replies
BrandonCopeland
Emerging Contributor
Sounds like you need a MarkerSymbol instead of PictureMarkerSymbol. Something like...

xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client">

<esriSymbols:MarkerSymbol x:Name="SomeCustomMarkerSymbol">
     <esriSymbols:MarkerSymbol.ControlTemplate>
          <ControlTemplate>
                <Grid x:Name="RootElement">
                    <!-- Add any content here. Button, Image, Button with Image Content, Custom Menu, etc...-->
                    <Button Content="A Button I Added!"/>
                </Grid>
          </ControlTemplate>
     </esriSymbols:MarkerSymbol.ControlTemplate>
</esriSymbols:MarkerSymbol>
0 Kudos
Stefhandarkness
New Contributor
hmm, thx buddy...i am new in esri developement, thats was easy =]
0 Kudos