1

Simple question but I don't know the answer. I want to set my map extent such that users see the map only in map extent and they don't allow to see greater extent. How can I set the extent map?

Thanks in advance

2

You can limit the map extent to an envelope. The user cannot navigate outside the envelope defined in the behavior.

You are supposed to define a ConstrainExtentBehavior behaviour:

<esri:Map x:Name="MyMap" Extent="-120,30,-60,60">
  . . . 
  <i:Interaction.Behaviors>
    <esriBehaviors:ConstrainExtentBehavior
      ConstrainedExtent="-120,30,-60,60"/> 
  </i:Interaction.Behaviors>
</esri:Map>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.