Hi Ben,
first of all, thank you very much for your answer.
unfortunately the problem still exists after changing Meter parameter instead of DecimalDegree inside GeographicUnit field.
The program reacts only depending on the parameters of the first zoom, for example:
if I write,
Imports ThinkGeo.MapSuite.WebEdition
Imports ThinkGeo.MapSuite.Core
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
Imports System.Data.OleDb
Imports Microsoft.VisualBasic
Imports System.Web.UI.WebControls
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If (Not Page.IsPostBack) Then
Map1.BackgroundFillBrush = New GeoSolidBrush(New GeoColor(255, 239, 213))
Map1.MapUnit = GeographyUnit.Meter
cargaDeCapas()
Map1.PanZoomBar.Enabled = True
Map1.ToolTip = “Haz click para ver la informacion del objeto”
End If
End Sub
Private Sub cargaDeCapas()
Dim Autopistas As New ShapeFileLayer(MapPath("~\Mapas\espes2________00.shp"))
Autopistas.FeatureSource.Projection = New Proj4Projection(23030, 23030)
'Autopistas.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level03
Autopistas.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = EstAutopista(1, 3)
Autopistas.ZoomLevelSet.ZoomLevel02.DefaultLineStyle = EstAutopista(1, 3)
Autopistas.ZoomLevelSet.ZoomLevel03.DefaultLineStyle = EstAutopista(1, 3)
'Autopistas.ZoomLevelSet.ZoomLevel04.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level13
Autopistas.ZoomLevelSet.ZoomLevel04.DefaultLineStyle = EstAutopista(200, 400)
Autopistas.ZoomLevelSet.ZoomLevel05.DefaultLineStyle = EstAutopista(2, 4)
Autopistas.ZoomLevelSet.ZoomLevel06.DefaultLineStyle = EstAutopista(3, 5)
Autopistas.ZoomLevelSet.ZoomLevel07.DefaultLineStyle = EstAutopista(3, 6)
Autopistas.ZoomLevelSet.ZoomLevel08.DefaultLineStyle = EstAutopista(55, 60)
Autopistas.ZoomLevelSet.ZoomLevel09.DefaultLineStyle = EstAutopista(60, 65)
Autopistas.ZoomLevelSet.ZoomLevel10.DefaultLineStyle = EstAutopista(70, 75)
Autopistas.ZoomLevelSet.ZoomLevel11.DefaultLineStyle = EstAutopista(75, 80)
Autopistas.ZoomLevelSet.ZoomLevel12.DefaultLineStyle = EstAutopista(80, 85)
Autopistas.ZoomLevelSet.ZoomLevel13.DefaultLineStyle = EstAutopista(85, 90)
'Autopistas.ZoomLevelSet.ZoomLevel14.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
Autopistas.ZoomLevelSet.ZoomLevel14.DefaultLineStyle = EstAutopista(1, 3)
Autopistas.ZoomLevelSet.ZoomLevel15.DefaultLineStyle = EstAutopista(95, 100)
Autopistas.ZoomLevelSet.ZoomLevel16.DefaultLineStyle = EstAutopista(100, 105)
Autopistas.ZoomLevelSet.ZoomLevel17.DefaultLineStyle = EstAutopista(105, 110)
Autopistas.ZoomLevelSet.ZoomLevel18.DefaultLineStyle = EstAutopista(110, 115)
Autopistas.ZoomLevelSet.ZoomLevel19.DefaultLineStyle = EstAutopista(115, 120)
Autopistas.ZoomLevelSet.ZoomLevel20.DefaultLineStyle = EstAutopista(125, 150)
Autopistas.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
Map1.StaticLayers.Add(“Autopistas”, Autopistas)
Autopistas.Open()
Map1.CurrentExtent = Autopistas.GetBoundingBox
Autopistas.Close()
End Sub
Private Function EstAutopista(ByVal AnchuraInt As Integer, ByVal AnchuraExt As Integer) As LineStyle
Dim estiloPropio As LineStyle
Dim linExterior As GeoPen
Dim linInterior As GeoPen
linExterior = New GeoPen(New GeoColor(255, 0, 0), AnchuraExt)
linInterior = New GeoPen(New GeoColor(255, 242, 0), AnchuraInt)
estiloPropio = New LineStyle(linExterior, linInterior)
Return estiloPropio
End Function
End Class
Let me know if you find the solution
Thank you very much for your attention. We keep in touch.
*I have tried to copy the sourcecode in this post but i have had some problems in the preview, so in the case this source cant be properly viewed i add the link to public server where you can download the textfile with the sourcecode.
megaupload.com/?d=KFFN9OF0
Tiffany