In order to use Selection Rectangle over the RadMap and use the underlying selection event you can set:
In the handler you can use the LocationRect returned from event args and pass it to the SetView function:
sender, SelectionRectangleChangedEventArgs e)
The RadMap internally will try to bring the rect into the ViewPort. However it does not guarantee the top left and the bottom right will become the exact new topleft and bottomright of the next viewport.
To achieve this you will need to :
-- calculate the physical positions of the points in question (Location.LogicalToPixel method
-- calculate the desired width of the Map
- set width / height / rendertransform of the map so that the points in question become top left and bottom right
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.