Select to view content in your preferred language

can't set inital extent

434
1
02-09-2011 08:46 AM
JannalynPontello
Deactivated User
I'm using Bing maps for a base layer, and I want to set the initial extent so that the map loads in my local area rather than the entire world. I can't figure out why this isn't working. Anyone have any ideas?

<esri:Map x:Name="Map" Background="White">[INDENT]<esri:Map.Extent>
[INDENT]<esriGeometry:Envelope XMin="-9412665" YMin="4274724" XMax="-9363135" YMax="4312560">
[INDENT]<esriGeometry:Envelope.SpatialReference>
[INDENT]<esriGeometry:SpatialReference WKID="102100"/>[/INDENT]</esriGeometry:Envelope.SpatialReference>[/INDENT]</esriGeometry:Envelope>[/INDENT]</esri:Map.Extent>[/INDENT][INDENT]<esri:Map.Layers>[INDENT]<bing:TileLayer ID="BingImagery" Token="" LayerStyle="Aerial" />[/INDENT]</esri:Map.Layers>[/INDENT]
[INDENT]<i:Interaction.Behaviors>[INDENT]<esri:ConstrainExtentBehavior ConstrainedExtent="-9411220,4275930,-9364025,4312970" />[/INDENT]</i:Interaction.Behaviors>[/INDENT]
</esri:Map>
0 Kudos
1 Reply
TylerMunn
Emerging Contributor
Try swapping the Min and Max values for Y, maybe exclude the extent behaviour while testing
0 Kudos