<Canvas HorizontalAlignment="Left" VerticalAlignment="Top" > <esri:MapTip x:Name="MyMapTip" BorderBrush="#99000000" GraphicsLayer="{Binding Layers[MyGraphicsLayer], ElementName=MyMap}" BorderThickness="1" Title="State Info" VerticalOffset="10" HorizontalOffset="10" Background="#DDFFFFFF" /> </Canvas>
<esri:ArcGISDynamicMapServiceLayer ID="BaseMapLayer" Url="http://irnrgis.tamu.edu/ArcGIS/rest/services/Test/Trims/MapServer" /> <esri:FeatureLayer ID="MyGraphicsLayer" Mode="Snapshot" OutFields="*" Url="http://irnrgis.tamu.edu/ArcGIS/rest/services/Test/Trims/MapServer/0" />
Can you zip up your project with your working code using my service and attach it here? I tried the feature layer, and the maptip does not show, but the features do. I am pulling my hair out wondering what the problem is.
<esri:Map x:Name="MyMap" Background="White" Extent="-130,10,-70,60"> <esri:ArcGISTiledMapServiceLayer ID="BaseMapLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer" /> <esri:FeatureLayer ID="MyGraphicsLayer" Mode="Snapshot" OutFields="*" Url="http://irnrgis.tamu.edu/ArcGIS/rest/services/Test/Trims/MapServer/0" /> </esri:Map>
I have tested with the code I gave and with your service and it's working...So there is probably something else not working in your project but I would need more info to figure out where the issue could be.Note again that using a feature layer would be much easier:)
ESRI.ArcGIS.Client.Tasks.Query query = new ESRI.ArcGIS.Client.Tasks.Query() { Geometry = new ESRI.ArcGIS.Client.Geometry.Envelope(-180, 0, 0, 90) { SpatialReference = new ESRI.ArcGIS.Client.Geometry.SpatialReference(4326) }, OutSpatialReference = new ESRI.ArcGIS.Client.Geometry.SpatialReference(4326), ReturnGeometry = true }; query.OutFields.Add("*");
feature.Symbol = LayoutRoot.Resources["MarkerSymbol"] as Symbol;
<esri:FeatureLayer Mode="Snapshot" OutFields="*" Url="http://irnrgis.tamu.edu/ArcGIS/rest/services/Test/Trims/MapServer/0" />
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.