-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update FeatureLayerMapTips sample to use Naperville Shelters FeatureS…
…ervice.
- Loading branch information
1 parent
5b5164a
commit bf5b0b8
Showing
5 changed files
with
148 additions
and
142 deletions.
There are no files selected for viewing
79 changes: 40 additions & 39 deletions
79
...ktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/FeatureLayers/FeatureLayerMapTips.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,45 @@ | ||
<UserControl x:Class="ArcGISRuntimeSDKDotNet_DesktopSamples.Samples.FeatureLayerMapTips" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"> | ||
<Grid> | ||
<esri:MapView x:Name="MyMapView" WrapAround="True" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"> | ||
<Grid> | ||
<esri:MapView x:Name="MyMapView" WrapAround="True" | ||
MouseMove="MyMapView_MouseMove"> | ||
<esri:Map> | ||
<esri:ArcGISTiledMapServiceLayer | ||
ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> | ||
<esri:Map InitialViewpoint="-88.35,41.61,-88.05,41.84,4326"> | ||
|
||
<esri:FeatureLayer x:Name="earthquakes" ID="featureLayer"> | ||
<esri:FeatureLayer.Renderer> | ||
<esri:SimpleRenderer> | ||
<esri:SimpleMarkerSymbol Color="LightBlue" Style="Circle" Size="12"> | ||
<esri:SimpleMarkerSymbol.Outline> | ||
<esri:SimpleLineSymbol Color="Blue" Width="2" Style="Solid" /> | ||
</esri:SimpleMarkerSymbol.Outline> | ||
</esri:SimpleMarkerSymbol> | ||
</esri:SimpleRenderer> | ||
</esri:FeatureLayer.Renderer> | ||
<esri:FeatureLayer.FeatureTable> | ||
<esri:ServiceFeatureTable | ||
ServiceUri="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/FeatureServer/0" | ||
Where="magnitude >= 3.0" OutFields="*" /> | ||
</esri:FeatureLayer.FeatureTable> | ||
</esri:FeatureLayer> | ||
</esri:Map> | ||
<esri:ArcGISTiledMapServiceLayer | ||
ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> | ||
|
||
<esri:MapView.Overlays> | ||
<esri:OverlayItemsControl> | ||
<Border x:Name="mapTip" Background="White" BorderBrush="Black" BorderThickness="2" | ||
Padding="4" Margin="4" HorizontalAlignment="Left" VerticalAlignment="Top" | ||
Visibility="Collapsed" esri:ViewBase.ViewOverlayAnchor="{Binding Geometry}"> | ||
<StackPanel> | ||
<TextBlock Text="{Binding Attributes[datetime]}" FontWeight="Bold" /> | ||
<TextBlock Text="{Binding Attributes[magnitude], StringFormat='Magnitude: {0}'}" /> | ||
</StackPanel> | ||
</Border> | ||
</esri:OverlayItemsControl> | ||
</esri:MapView.Overlays> | ||
</esri:MapView> | ||
</Grid> | ||
<esri:FeatureLayer x:Name="shelters" ID="featureLayer"> | ||
<esri:FeatureLayer.Renderer> | ||
<esri:SimpleRenderer> | ||
<esri:SimpleMarkerSymbol Color="LightBlue" Style="Circle" Size="12"> | ||
<esri:SimpleMarkerSymbol.Outline> | ||
<esri:SimpleLineSymbol Color="Blue" Width="2" Style="Solid" /> | ||
</esri:SimpleMarkerSymbol.Outline> | ||
</esri:SimpleMarkerSymbol> | ||
</esri:SimpleRenderer> | ||
</esri:FeatureLayer.Renderer> | ||
<esri:FeatureLayer.FeatureTable> | ||
<esri:ServiceFeatureTable | ||
ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NapervilleShelters/FeatureServer/0" | ||
OutFields="*" /> | ||
</esri:FeatureLayer.FeatureTable> | ||
</esri:FeatureLayer> | ||
</esri:Map> | ||
|
||
<esri:MapView.Overlays> | ||
<esri:OverlayItemsControl> | ||
<Border x:Name="mapTip" Background="White" BorderBrush="Black" BorderThickness="2" | ||
Padding="4" Margin="4" HorizontalAlignment="Left" VerticalAlignment="Top" | ||
Visibility="Collapsed" esri:ViewBase.ViewOverlayAnchor="{Binding Geometry}"> | ||
<StackPanel> | ||
<TextBlock Text="{Binding Attributes[facname]}" FontWeight="Bold" /> | ||
<TextBlock Text="{Binding Attributes[capacity], StringFormat='Capacity: {0}'}" /> | ||
</StackPanel> | ||
</Border> | ||
</esri:OverlayItemsControl> | ||
</esri:MapView.Overlays> | ||
</esri:MapView> | ||
</Grid> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.