Hello everyone,
I've got a problem with the current scale of the map.
For my website, I've got to set a zoom level minimum to be able to see the google background. For that, I look the current scale and if it's smaller than a reference, I call ZoomToScale with the reference scale.
But now, Map1.CurrentScale is equal to "NaN". The only change I've made it's to change the google layer from a CustomOverlay to a BackgroundOverlay.
Does this may come from the layer change?
If yes, how can I have the current scale?
Thanks.
PS: For information =>
Map1
{ThinkGeo.MapSuite.WebEdition.Map}
base {System.Web.UI.WebControls.Panel}: {ThinkGeo.MapSuite.WebEdition.Map}
ActiveBaseOverlay: {ThinkGeo.MapSuite.WebEdition.GoogleOverlay}
BackgroundOverlay: {ThinkGeo.MapSuite.WebEdition.GoogleOverlay}
ClientID: "Map1"
ClientZoomLevelScales: Count = 20
ContextMenu: null
CurrentExtent: {ThinkGeo.MapSuite.Core.RectangleShape}
CurrentScale: NaN
Cursor: Default
CustomCursorUri: null
CustomOverlays: Count = 0
DynamicOverlay: {ThinkGeo.MapSuite.WebEdition.LayerOverlay}
EditOverlay: {ThinkGeo.MapSuite.WebEdition.EditFeatureOverlay}
HeightInPixels: 'Map1.HeightInPixels' threw an exception of type 'System.NotSupportedException'
HighlightOverlay: {ThinkGeo.MapSuite.WebEdition.HighlightFeatureOverlay}
MapBackground: {ThinkGeo.MapSuite.Core.BackgroundLayer}
MapTools: {ThinkGeo.MapSuite.WebEdition.MapTools}
MapUnit: Meter
MarkerOverlay: {ThinkGeo.MapSuite.WebEdition.InMemoryMarkerOverlay}
OnClientBaseOverlayChanged: ""
OnClientClick: ""
OnClientDoubleClick: ""
OnClientDrawEnd: ""
OnClientEditEnd: ""
OnClientExtentChanged: ""
Popups: Count = 0
RestrictedExtent: null
StaticOverlay: {ThinkGeo.MapSuite.WebEdition.LayerOverlay}
UniqueID: "Map1"
WidthInPixels: 'Map1.WidthInPixels' threw an exception of type 'System.NotSupportedException'