- 浏览: 1539014 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (525)
- SEO (16)
- JAVA-EE-Hibernate (6)
- JAVA-EE-Struts (29)
- JAVA-EE-Spring (15)
- Linux (37)
- JAVA-SE (29)
- NetWork (1)
- CMS (14)
- Semantic Research (3)
- RIA-Flex (0)
- Ajax-Extjs (4)
- Ajax-Jquery (1)
- www.godaddy.com (0)
- SSH (34)
- JavaScript (6)
- SoftwareEngineer (9)
- CMMI (0)
- IDE-Myeclipse (3)
- PHP (1)
- Algorithm (3)
- C/C++ (18)
- Concept&Items (2)
- Useful WebSite (1)
- ApacheServer (2)
- CodeReading (1)
- Socket (2)
- UML (10)
- PowerDesigner (1)
- Repository (19)
- MySQL (3)
- SqlServer (0)
- Society (1)
- Tomcat (7)
- WebService (5)
- JBoss (1)
- FCKeditor (1)
- PS/DW/CD/FW (0)
- DesignPattern (11)
- WebSite_Security (1)
- WordPress (5)
- WebConstruction (3)
- XML|XSD (7)
- Android (0)
- Project-In-Action (9)
- DatabaseDesign (3)
- taglib (7)
- DIV+CSS (10)
- Silverlight (52)
- JSON (7)
- VC++ (8)
- C# (8)
- LINQ (1)
- WCF&SOA (5)
- .NET (20)
- SOA (1)
- Mashup (2)
- RegEx (6)
- Psychology (5)
- Stock (1)
- Google (2)
- Interview (4)
- HTML5 (1)
- Marketing (4)
- Vaadin (2)
- Agile (2)
- Apache-common (6)
- ANTLR (0)
- REST (1)
- HtmlAnalysis (18)
- csv-export (3)
- Nucth (3)
- Xpath (1)
- Velocity (6)
- ASP.NET (9)
- Product (2)
- CSS (1)
最新评论
-
lt26w:
理解成门面模式应该比较容易明白吧
FacadePattern-Java代码实例讲解 -
lt26w:
看下面的例子比较明白.
FacadePattern-Java代码实例讲解 -
javaloverkehui:
这也叫文档,别逗我行吗,也就自己看看。
HtmlCleaner API -
SE_XiaoFeng:
至少也应该写个注释吧。
HtmlCleaner API -
jfzshandong:
...
org.springframework.web.filter.CharacterEncodingFilter 配置
必应地图SilverLight控件入门讲座之六:显示街景(Streetside)
<UserControl x:Class="SilverlightApplication1.MainPage"
xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d=" http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc=" http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"><Grid x:Name="LayoutRoot" Background="White">
<m:Map x:Name="myMap" Center="25.858531, -80.119744" CredentialsProvider="[BINGMAPSKEY]" ZoomLevel="19" Mode="AerialWithLabels"></m:Map>
</Grid>
</UserControl>
有两种方法可以添加增强版鸟瞰图及街景(Streetside):(1) 在导航栏增加按钮 (2) 使用地图控件中的map mode扩展类。
在导航栏增加增强版鸟瞰图及街景(Streetdide)
如果你只是希望在地图导航栏增加鸟瞰图和街景按钮,只需要增加1-2行代码。首先在MainPage.xaml.cs文件的申明(declaration)中增加ExtendedModes。然后在初始化地图的代码中增加鸟瞰图和街景图模式:
using System;
using System.Windows.Controls;
using Microsoft.Maps.MapControl.ExtendedModes;
using Microsoft.Maps.MapControl.Core;namespace SilverlightApplication1
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();//Add Bird's Eye to Navigation
BirdseyeMode.AddModeToNavigationBar(myMap);//Add Streetside to Navigation
StreetsideMode.AddModeToNavigationBar(myMap);
}
}
}
自定义控制增加增强版鸟瞰图及街景(Streetside)
如果你希望自定义控制显示鸟瞰图及街景,你可以使用Map.Mode类。此处,你需要增加一个申明:using Microsoft.Maps.MapControl.Core
以下的代码在加载地图时显示鸟瞰图:
using System;
using System.Windows.Controls;
using Microsoft.Maps.MapControl.ExtendedModes;
using Microsoft.Maps.MapControl.Core;namespace SilverlightApplication1
{
public partial class MainPage : UserControl
{
public MainPage()
{InitializeComponent();
myMap.Mode = new BirdseyeMode();
myMap.Mode.Center = new Microsoft.Maps.MapControl.Location(25.859768, -80.119764);
myMap.Mode.ZoomLevel = 17;}
}
}
以下代码在加载地图时显示街景:
using System;
using System.Windows.Controls;
using Microsoft.Maps.MapControl.ExtendedModes;
using Microsoft.Maps.MapControl.Core;namespace SilverlightApplication1
{
public partial class MainPage : UserControl
{
public MainPage()
{InitializeComponent();
myMap.Mode.Center = new Microsoft.Maps.MapControl.Location(47.615594, -122.20136);
myMap.Mode = new StreetsideMode();
myMap.Heading = 20.3;
myMap.Pitch = 12.3;}
}
}
此处用到了Heading和Pitch属性,其中Heading属性是指街景视图下罗盘的方向,Pitch属性控制浏览角度。以下是关于Heading和Pitch的官方定义:
Heading is the compass direction, expressed as a double. A value of 0 is true north, and a value of 180 is true south. Values less than 0 and greater than 360 are valid and are calculated as compass directions. The pitch direction, expressed as a double. A value of 0 is level and a value of -90 is straight down. Values less than -90 or greater than 0 are ignored, and the pitch is set to -90
原文参考:Chris Pendleton的博客 .
发表评论
-
SilverLight异步调用WebService出错!
2010-01-19 12:58 5399SilverLight异步调用WebService出错! ... -
Silverlight播放器 C#语言
2010-01-13 13:30 3302这段时间研究Silverlight中的MediaElement ... -
使用Silverlight,制作简单播放器的一点点心得。
2010-01-13 13:28 3658首先介绍什么是Silverligh ... -
初探silverlight--简易播放器
2010-01-13 13:28 1518<UserControl xmlns=" ... -
新开发的silverlight视频播放器,
2010-01-13 13:21 4480http://www.chenjiliang.com/Arti ... -
Silverlight教程第四部分:使用 Style 元素更好地封装观感
2010-01-12 22:11 1265Silverlight教程第四部分 ... -
Silverlight Carousel: Creating a Silverlight Control Displays Picture in an Inte
2010-01-12 18:18 1896http://www.codeproject.com/KB/s ... -
Using projection to build a 3D carousel in Silverlight 3
2010-01-12 18:14 2330http://ww ... -
CoverFlow – built using Silverlight 3's 'Projection' feature
2010-01-12 18:11 1888CoverFlow – built using Silver ... -
silverlight动画播放停止重播等控制
2010-01-06 12:38 1382ani.begin() ani.stop(); ani. ... -
silverlight速学范例100
2010-01-06 12:37 1275silverlight速学范例100 ... -
Silverlight 中的 HTTP 通信和安全
2010-01-04 23:43 2007Silverlight 中的 HTTP 通信和安全 < ... -
Visual Studio的 诡异bug(mscorlib无法引用)引发的对话 and Silverlight XAML 构造出错
2010-01-04 09:25 4125... -
Silverlight常见问题及解决方法
2009-12-22 14:06 1277Silverlight常见问题及解决方法 ... -
网上常用免费webservice 查询
2009-12-22 12:47 4598网上常用免费webservice 查询 2008-11 ... -
必应 Bing 新特性之最新文章, Wolfram|Alpha 整合, 天气搜索等已推出
2009-12-21 23:33 1530必应 Bing 增加了一项“最新文章”的搜索结果特性,例如下图 ... -
下载silverlight官网的全部视频教程
2009-12-21 23:30 14856Silverlight官网提供了许 ... -
Silverlight客户端和WCF服务器端共享类库
2009-12-21 23:21 1832在Silverlight企业级项目开发中,访问数据库是很常见的 ... -
Create a Silverlight Europe weather map
2009-12-21 22:55 1593I don’t generally fi ... -
必应地图图片系统(Tile System)之二
2009-12-21 22:53 2322【坐标系和地图图片编 ...
相关推荐
必应地图 微软街景(Streetside)和鸟瞰图 Dll
现有的街景浏览系统,如Google Street View和Bing Maps Streetside,通常采用360度全景视图(即所谓的“泡泡”),用户可以在这些视图之间移动,但这种离散的移动方式并不利于对更大范围区域的整体感知,比如整个...
标题中的“streetside”似乎是一个专门为解决城市街道停车位问题设计的Web应用程序。它利用了现代技术,特别是JavaScript,来实现一个创新的功能:通过发送文本(短信)消息通知用户何时需要移动他们的汽车以遵循...
**StreetSide Constants(街道侧边常量)** - **moLeftSide** (0): 左侧。 - **moRightSide** (1): 右侧。 #### 三、对象定义(Object Definitions) **LocationasPoint(位置作为点)** - 用于表示地图上的一个点...
This revised edition of Microsoft Mapping includes the latest details about SQL Server 2014 and the new 3D and Streetside-capable map control for Windows 10 applications. It contains updated chapters ...