<esri:Map x:Name="MyMap" ExtentChanged="MyMap_ExtentChanged"> <esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" /> <i:Interaction.Behaviors> <esri:ConstrainExtentBehavior ConstrainedExtent="-4814883.48538718,-5216317.8461096,9656548.66851654,5273956.71733734" /> </i:Interaction.Behaviors> </esri:Map>
<i:Interaction.Behaviors> <esri:ConstrainExtentBehavior ConstrainedExtent="-9161000 4875000 -7532000 5779000"/> </i:Interaction.Behaviors>
Hi Kevin,What issues are you having with ShowCoordinatesBehavior?
hi patrickbrooke I had the same problem as yours and i implemented it with code (insert this snippet in loaded event) and it works (I don't know why???)System.Windows.Interactivity.Behavior behavior = new ESRI.ArcGIS.Client.Behaviors.ConstrainExtentBehavior() { ConstrainedExtent = new ESRI.ArcGIS.Client.Geometry.Envelope(-120,30,-60,60) };System.Windows.Interactivity.Interaction.GetBehaviors(Map).Add(behavior);
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.