The elements all just came to sea near Africa. I think, thats the 0,0,0,0 position.
Like this:<esri:GraphicsLayer.GraphicsSource> <esri:PointDataSource ItemsSource="{Binding DataSource.ServiceOrderLocations, Source={StaticResource DataContextProxy}}" XCoordinateBinding="{Binding ServiceOrderLocation.Longitude}" YCoordinateBinding="{Binding ServiceOrderLocation.Latitude}"> </esri:PointDataSource></esri:GraphicsLayer.GraphicsSource> How to add attributes on PointDataSource, do you have a sample of that?
<esri:GraphicsLayer.MapTip> <Border Padding="4,2" Background="#99333333" CornerRadius="8" DataContext="{Binding [DataContext]}"> <TextBlock Text="{Binding Name}" Foreground="White" /> </Border> </esri:GraphicsLayer.MapTip>
<TextBlock Text="{Binding Attributes[DataContext].Name}" Foreground="White" />
How to you create tour pointdatasource? You can add attributes to your graphics and these attributes shold then be able to be displayed on the symbol.
Probably that the correct position is the top left position of your symbol. If that's the case, it's a 'center' issue.You can either apply a negative margin to your element (half it's size), or surround it with your own container that would center it's content
PointDatasource with a custom MarkerSymbol, could not get properties to custom symbol (i want to forexample show a customername textblock on the symbol, checkboxes with TwoWay binding etc.)
ElemenLayer where i create elements manually (on code-behind), but this way i cant get the items to be on correct position. (My next plan was to set the binding manually on code-behind)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.