ZoomToResolution's first parameter is a double (resolution), not Geometry. You might be confusing it with ZoomTo? Are you zooming in or out? Adding ConstrainExtentBehavior restricts you from zooming out of the set ConstrainedExtent so zoom in should not at all be affected.I tried the following call to ZoomToResolution from MouseClick event:This works MyMap.ZoomToResolution(MyMap.Resolution/2, e.MapPoint); // zoom inwhile this line does not because zoom would cause the map extent to go beyond the ConstrainedExtent.MyMap.ZoomToResolution(MyMap.Resolution/0.5, e.MapPoint); // zoom out
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.