Hi,
We were wanting to prevent drawing whilst our user is panning the map with the mouse down - ie only redraw when the user releases the mouse button. We were wanting to do this for both WPF and MVC versions - is this possible?
Thanks,
Steve
Panning and redrawing only on mouse button up
Hi Steve,
In Wpf, it have supported your requirement by default under the HybridTile mode of the layeroverlay, but comparing with yours, we did some enhancements to make the rendering smooth during the mouse moving. During the map is panning, if there is a pause, then the layer will also be drawn, if the panning is fast and no pause, the layer would not be drawn until the mouse button was released. Please I took a test video to show this behavior screencast.com/t/HUKfQZbY .
But Mvc, I guess it might be a bit difficult as we never try to do this. In Mvc, our map rendering engine is based on openlayers library and it is open source. In order to do the requirements, I guess we may need to override the Navigation control or DranPan control and if we want to support mobile, we may need to override the TouchNavigation control.
If anything confused, please feel free to let us know.
Best regards,
Johnny
Hi Johnny,
Thanks for that. HybridTile on Wpf suits our needs perfectly. We’ll see how we go on MVC :)
Cheers,
Steve
Hi Steve,
Good to hear the Wpf edition works for you.
If any questions on Mvc, Please feel free to let us know.
Thanks,
Johnny