<esri:FeatureLayer ID="MyLayer" OutFields="*" Url="yourServiceUrl"> <esri:FeatureLayer.MapTip> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <ItemsControl ItemsSource="{Binding Keys}" Grid.Column="0" /> <ItemsControl ItemsSource="{Binding Values}" Grid.Column="1" /> </Grid> </esri:FeatureLayer.MapTip> </esri:FeatureLayer>
<esri:Map x:Name="MyMap" WrapAround="True"> <esri:FeatureLayer ID="MyMapTipsLayer" OutFields="*" Where="OBJECTID >= 0"> </esri:FeatureLayer> </esri:Map> <Canvas HorizontalAlignment="Left" VerticalAlignment="Top" > <esri:MapTip x:Name="MyMapTip" BorderBrush="CornflowerBlue" BorderThickness="2" Title="{Binding [DcomId]}" VerticalOffset="10" HorizontalOffset="10" Background="#C6ECFF" /> </Canvas>
public MainPage() { InitializeComponent(); FeatureLayer fl = MyMap.Layers["MyMapTipsLayer"] as FeatureLayer; fl.Url = "http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_haz/MapServer/0/"; MyMapTip.GraphicsLayer = fl; }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.