Channel9見てからVE余裕でした。

投稿日 : 2008年7月29日 22:16

 Windows Live Tools for Microsoft Visual Studio July 2008 CTP がリリースされました。これは、各種Liveサービス用のASP.NETコントロール群になってます。注目は新たに追加されたVirtual Earthのコントロールみたいですね。インストールして試してみたのですが、ASP.NETわからん……。

 マップをページの追加は、インストール後にツールボックスに現れた「Map」をドラッグ&ドロップすればOKなんですが、エクステンダというものがあるんですね(参考: VS 2008のASP.NET AJAX コントロール エクステンダの使用 - ScottGuさんのブログ翻訳)。たくさんVirtual Earth用のエクステンダがあるのだけど使い方が……。

 各サイトを見て回って、Windows Live Dev : New Virtual Earth ASP.NET Control Released にある動画を見ればわかりました。英語はほぼ理解してません。

Virtual Earth ASP.NET Control のエクステンダを試すまでの手順。

  1. Mapコントロールを追加
  2. ScriptManagerを追加
  3. Buttonを追加
  4. 追加したButtonのエクステンダに「ContinuousPan」を追加
  5. Buttonのプロパティ、ExtendersのButton1_ContinuousPanのMapControlIDを「Map1」に設定
  6. 実行してボタンをクリック!

LiveToolsSample - Microsoft Visual Studio

 動画ではプッシュピンを追加する方法も紹介してます。ただ、動画中ではVE.LatLongクラスを使っていた思うのだけど、VE.ShapeのコンストラクタにはVE.LattLongWithAltitudeクラス型のものしか引数が用意されていないと思う。

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    Map1.AddShape(New Microsoft.Live.ServerControls.VE.Shape(Microsoft.Live.ServerControls.VE.ShapeType.Pushpin, New Microsoft.Live.ServerControls.VE.LatLongWithAltitude(44, -122)))
End Sub

 

他 関連 Blog

フィードバック

# re: Channel9見てからVE余裕でした。

2009/03/18 22:05 by 通りすがり
ウメハラも有名になったもんだな

# ONludLvuAUbhv

2011/12/27 19:34 by http://castellohair.com/
Not bad post, but a lot of extra !!...

# CSFFXtZczmpW

2011/12/29 20:56 by http://www.healthinter.org/health/page/lumigan.php
Very amusing thoughts, well told, everything is in its place:D

# eiAcQKjvnrsgDohwa

2011/12/31 7:35 by http://www.thepetonline.com
Sometimes I also see something like this, but earlier I didn`t pay much attention to this!...

# lcMFRpwfBDmmQ

2012/01/07 9:24 by http://www.luckyvitamin.com/m-193-natural-factors
A unique note..!
コメントの入力
タイトル
名前
Url
コメント