It's not easy for me to duplicate the exact scenario but the attached zip file (file extension changed to png) shows basically what I'm trying to do - I need to be able to switch between view models which have properties to control the map extents (i.e. the maximum map extent, and the initial viewed area). This example, which uses OpenStreetMapsProvider, works pretty well and does what I want.
When I use my custom data provider (which uses EPSG900913Projection) the setting of GeoBounds for RadMap does not work as I expect. For example given a viewable rectangle that looks something like this (units in metres):
And a maximum bounds for the map which looks something like this:
What I want to do is something like this:
var maxBounds =
RadMap.GeoBounds = maxBounds;
RadMap.MinZoomLevel = maxBounds.ZoomLevel - 1;
Does that make sense? It seems to work ok for OpenStreetMapsProvider (which has MercatorProjection) but not for my custom provider (with EPSG900913Projection). My provider seems to work as expected i.e. it shows the correct viewable area, and constrains the zoom level, but the attempt to limit the RadMap bounds by setting GeoBounds does not work as expected.
I've included the code for my custom provider and source but this isn't hooked up in the sample because I can't give you access to the data source.
I'm using Telerik version 2016.3.914.40