Displays a map with layers of content above it.
Namespace:
C1.Silverlight.MapsAssembly: C1.Silverlight.Maps (in C1.Silverlight.Maps.dll)
Syntax
| C# |
|---|
[ContentPropertyAttribute("Layers")] [TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")] [TemplatePartAttribute(Name = "Tiles", Type = typeof(C1MapTilesLayer))] [TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")] [TemplatePartAttribute(Name = "Layers", Type = typeof(Panel))] [TemplatePartAttribute(Name = "Tools", Type = typeof(C1MapToolsLayer))] [TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")] public class C1Maps : Control |
| Visual Basic |
|---|
<ContentPropertyAttribute("Layers")> _ <TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _ <TemplatePartAttribute(Name := "Tiles", Type := GetType(C1MapTilesLayer))> _ <TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _ <TemplatePartAttribute(Name := "Layers", Type := GetType(Panel))> _ <TemplatePartAttribute(Name := "Tools", Type := GetType(C1MapToolsLayer))> _ <TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _ Public Class C1Maps _ Inherits Control |
Remarks
In order for C1Maps to be able to access tiles over the internet, the Silverlight application must be hosted in a Web server. If the Silverlight application is run directly from the local disk, the Silverlight runtime prevents it from accessing internet resources.
Note that geographic coordinates are represented using Point structures. The X property of Point is the longitude and the Y property is the latitude.
Inheritance Hierarchy
System..::..Object
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight.Maps..::..C1Maps
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight.Maps..::..C1Maps