Hi
I'm evaluating the product and I'm trying to figure out the following.
After doing this
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Map1.MapTools.Logo.Enabled = False
Map1.MapBackground.BackgroundBrush = New GeoSolidBrush(GeoColor.FromHtml("#B3C6D4"))
Map1.CurrentExtent = New RectangleShape(3552783.51957, -2927834.3764, 3563121.62765, -2933681.80906)
Map1.MapUnit = GeographyUnit.Meter
Map1.MapTools.OverlaySwitcher.Enabled = True
Map1.MapTools.PanZoomBar.Enabled = False
Map1.MapTools.MouseCoordinate.MouseCoordinateType = MouseCoordinateType.LongitudeLatitude
Map1.MapTools.MouseCoordinate.Enabled = True
Dim yahoo As New YahooOverlay("Yahoo Map")
yahoo.JavaScriptLibraryUri = New Uri(ConfigurationManager.AppSettings("YahooUri"))
yahoo.YahooMapType = YahooMapType.Regular
Map1.CustomOverlays.Add(yahoo)
''''''''''''''''''LoadAMapFromMsSQL2008()'''''''''''''''''
End If
End Sub
I want to draw a feauture layer over this yahoo map. data coming from sql, but this does not work
Private Sub LoadAMapFromMsSQL2008()
Dim connectString As String = "User ID=tdt_data;Password=tdt_data123;Data Source=GUSS-PC/TDT3_Data;"
Dim sql2008Layer As New MsSql2008FeatureLayer(connectString, "Table_1", "aaa")
' sql2008Layer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1
' sql2008Layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
Map1.StaticOverlay.Layers.Add(sql2008Layer)
End Sub
Can you give me an example of how to use the yahoo map as a base map, and then draw features over it from sql.
The idea is to use wgs84 features in a geomety field. Example: LINESTRING (31 -25, 26 32)