Controlling the areas where the usar can surfer

Jun 15, 2009 at 2:39 PM

Hi

Is it possible to control tha zones in the map where the user can surfer?

Huge thanks

Javier

Coordinator
Jun 16, 2009 at 1:02 AM

Yes, you can check the current map location and reset it to be inside your arbitrary boundary if it goes outside.

See this post for a method to check when the map is moved: http://virtualearthwpf.codeplex.com/Thread/View.aspx?ThreadId=58889  The post discusses the Surface version but the regular WPF is the same except with mouse equivalent events.

Note that until I add proper map moved events, the method in this post only catches user generated move events.  If your code calls FlyTo, it will not be triggered this way. 

Also, in the next version with map moved events, I'll see about adding Preview versions as well so you can cancel the movement if desired.