このページは2007年 10月 24日, 21:51に更新されました by BrigetteK

WindowsLive

From $1

This library contains functions for embedding Microsoft Windows Live Controls.  関連リンク: Extension Overview, DekiScript Overview, Extension Demos.

Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/d...7/windows.live

Functions:

  1. live.aerialmap
  2. live.contacts
  3. live.directions
  4. live.findonmap
  5. live.hybridmap
  6. live.map
  7. live.roadmap

live.aerialmap(address : str, zoom : num, width : num, height : num, description : str, title : str, publish : str, subscribe : str) : xml

Embed Virtual Earth map in aerial-only mode with optional description.

Parameters:

Name Type Description
address
str
Optional.  Street address to center map on (default: nil)
zoom
num
Optional.  Map zoom level (1-19; default: 14)
width
num
Optional.  Map width (default: 450)
height
num
Optional.  Map height (default: 300)
description
str
Optional.  Map marker description (default: nil)
title
str
Optional.  Map marker title (default: "Address")
publish
str
Optional.  Publish on channel (default: "default")
subscribe
str
Optional.  Subscribe to channel (default: nil)

Publish Format:

Name Type Description
text
str
Map directions.
info
str
Distance.

Subscribe Formats:

Name Type Description
from
str
From address.
to
str
To address.
Name Type Description
address
str
Street address.
label
str
Map marker title.
info
str
Map marker description.

Samples:


Output

To embed a 200 by 200 aerial map of San Diego:

{{  live.aerialmap("San Diego, California, United States", 11, 200, 200, "This is an aerial map of San Diego", "San Deigo")  }}

./WindowsLiveAerial1.JPG

To prompt for an address and display the aerial map:

{{  dhtml.inputbox{ length: 50, label: "Address: ", field: "address", publish: "inputbox1"}  }}
{{  live.aerialmap{zoom: 11, subscribe: "inputbox1"}  }}

./WindowsLiveAerial2.JPG

To prompt for to/from locations and display the aerial map with directions:

{{ dhtml.form{ publish: "form1", length: 50, inputs: [ { label: "From: ", field: "from", hidden: false }, { label: "To: ", field: "to", hidden: false } ] } }} 
{{ live.aerialmap{zoom: 11, subscribe: "form1", publish: "directions"} }} 
{{ dhtml.table([{ label: "Directions", field: "text" }, { label: "Distance", field: "info" }] , "directions") }}



./WindowsLiveAerial3.JPG


live.contacts(width : num, height : num, border : str, language : str, location : str, publish : str) : xml

Embed Windows Live Contacts control.

Parameters:

Name Type Description
width
num
Optional.  Control width (default: 250)
height
num
Optional.  Control height (default: 350)
border
str
Optional.  Control border style (default: "solid 1px black")
language
str
Optional.  Control language (default: "en")
location
str
Optional.  Control location (default: "right")
publish
str
Optional.  Publish on channel (default: "default")

Publish Format:

Name Type Description
name
str
Contact name.
email
str
Contact email.
phone
str
Contact phone.
address
str
Contact address.
uri
str
Contact uri.

Samples:


Output

To embed a 200 by 200 Windows Live Contacts control:

{{  live.contacts(200, 200)  }} 

./WindowsLiveContacts1.JPG

To embed a Windows Live Contacts control that uses a non-default border and the wiki's site language:

{{ live.contacts(200, 200, "dotted 5px green", site.language) }} 

./WindowsLiveContacts2.JPG

To embed a Windows Live Contacts control and display a map of a contact address:

{{ live.contacts{width: 200, height: 200, location: "left", publish: "contactinfo"} }}
{{ live.aerialmap{zoom: 11, subscribe: "contactinfo") }}


./WindowsLiveContacts3.JPG


live.directions(from : str, to : str, width : num, height : num, kind : str, publish : str, subscribe : str) : xml

Embed Virtual Earth map showing directions from one address to another.

Parameters:

Name Type Description
from
str
Optional.  From address (default: nil)
to
str
Optional.  To address (default: nil)
width
num
Optional.  Map width (default: 450)
height
num
Optional.  Map height (default: 300)
kind
str
Optional.  Map kind (either "aerial", "road", or "hybrid"; default: nil)
publish
str
Optional.  Publish on channel (default: "default")
subscribe
str
Optional.  Subscribe to channel (default: nil)

Publish Formats:
Name Type Description
text
str
Map directions.
info
str
Distance.

Subscribe Formats:

Name Type Description
from
str
From address.
to
str
To address.
Name Type Description
address
str
Street address.
label
str
Map marker title.
info
str
Map marker description.

Samples:

Output

To embed a 200 by 200 road map with directions:

{{ live.directions("San Diego, CA", "La Jolla, CA", 200, 200, "road") }}

./WindowsLiveDirections1.JPG

To prompt for to/from locations and display the road map with directions:

{{ dhtml.form{ publish: "form1", length: 50, inputs: [ { label: "From: ", field: "from", hidden: false }, { label: "To: ", field: "to", hidden: false } ] } }} 
{{ live.directions{kind: "road", subscribe: "form1", publish: "directions"} }} 
{{ dhtml.table([{ label: "Directions", field: "text" }, { label: "Distance", field: "info" }] , "directions") }}

./WindowsLiveDirections2.JPG



live.findonmap(where : str, what : str, zoom : num, width : num, height : num, max : num, kind : str, publish : str, subscribe : str) : xml

Embed Virtual Earth map showing places of interest near an address.

Parameters:

Name Type Description
where
str
Street address to center map on.
what
str
What to find.
zoom
num
Optional.  Map zoom level (1-19; default: 14)
width
num
Optional.  Map width (default: 450)
height
num
Optional.  Map height (default: 300)
max
num
Optional.  Max results to display (1-20; default: 10)
kind
str
Optional.  Map kind (either "aerial", "road", or "hybrid"; default: nil)
publish
str
Optional.  Publish on channel (default: "default")
subscribe
str
Optional.  Subscribe to channel (default: nil)

Publish Format:
Name Type Description
text
str
Map directions.
info
str
Distance.

Subscribe Formats:

Name Type Description
from
str
From address.
to
str
To address.
Name Type Description
address
str
Street address.
label
str
Map marker title.
info
str
Map marker description.

Samples:

Output

To embed a 200 by 200 road map that displays video rentals:

{{ live.findonmap("San Diego, CA", "video rental", 11, 200, 200, _, "road") }}

./WindowsLiveFindOnMap1.JPG


live.hybridmap(address : str, zoom : num, width : num, height : num, description : str, title : str, publish : str, subscribe : str) : xml

Embed Virtual Earth map in hybrid-only mode with optional description.

Parameters:

Name Type Description
address
str
Optional.  Street address to center map on (default: nil)
zoom
num
Optional.  Map zoom level (1-19; default: 14)
width
num
Optional.  Map width (default: 450)
height
num
Optional.  Map height (default: 300)
description
str
Optional.  Map marker description (default: nil)
title
str
Optional.  Map marker title (default: "Address")
publish
str
Optional.  Publish on channel (default: "default")
subscribe
str
Optional.  Subscribe to channel (default: nil)

Publish Format:
Name Type Description
text
str
Map directions.
info
str
Distance.

Subscribe Formats:

Name Type Description
from
str
From address.
to
str
To address.
Name Type Description
address
str
Street address.
label
str
Map marker title.
info
str
Map marker description.

Samples:

Output

To embed a 200 by 200 hybrid map of San Diego:

{{  live.hybridmap("San Diego, CA", 11, 200, 200, "This is a hybrid map of San Diego", "San Diego")  }} 

./WindowsLiveHybridMap1.JPG

To prompt for an address and display the hybrid map:

{{  dhtml.inputbox{ length: 50, label: "Address: ", field: "address", publish: "inputbox1"}  }}
{{  live.hybridmap{zoom: 11, subscribe: "inputbox1"}  }}

./WindowsLiveHybridMap2.JPG

To prompt for to/from locations and display the hybrid map with directions:

{{ dhtml.form{ publish: "form1", length: 50, inputs: [ { label: "From: ", field: "from", hidden: false }, { label: "To: ", field: "to", hidden: false } ] } }} 
{{ live.hybridmap{zoom: 11, subscribe: "form1", publish: "directions"} }} 
{{ dhtml.table([{ label: "Directions", field: "text" }, { label: "Distance", field: "info" }] , "directions") }}


./WindowsLiveHybridMap3.JPG


live.map(address : str, zoom : num, width : num, height : num, description : str, title : str, kind : str, publish : str, subscribe : str) : xml

Embed Virtual Earth map with optional description.

Parameters:

Name Type Description
address
str
Optional.  Street address to center map on (default: nil)
zoom
num
Optional.  Map zoom level (1-19; default: 14)
width
num
Optional.  Map width (default: 450)
height
num
Optional.  Map height (default: 300)
description
str
Optional.  Map marker description (default: nil)
title
str
Optional.  Map marker title (default: "Address")
publish
str
Optional.  Publish on channel (default: "default")
subscribe
str
Optional.  Subscribe to channel (default: nil)

Publish Format:
Name Type Description
text
str
Map directions.
info
str
Distance.

Subscribe Formats:

Name Type Description
from
str
From address.
to
str
To address.
Name Type Description
address
str
Street address.
label
str
Map marker title.
info
str
Map marker description.

Samples:

Output

To embed a 200 by 200 map of San Diego:

{{ live.map("San Diego, CA", 11, 200, 200, "This is a map of San Diego", "San Diego") }} 

./WindowsLiveMap1.JPG

To prompt for an address and display the map:

{{ dhtml.inputbox{ length: 50, label: "Address: ", field: "address", publish: "inputbox1"} }}
{{ live.map{zoom: 11, subscribe: "inputbox1"} }}

./WindowsLiveMap2.JPG

To prompt for to/from locations and display the map with directions:

{{ dhtml.form{ publish: "form1", length: 50, inputs: [ { label: "From: ", field: "from", hidden: false }, { label: "To: ", field: "to", hidden: false } ] } }} 
{{ live.map{zoom: 11, subscribe: "form1", publish: "directions"} }} 
{{ dhtml.table([{ label: "Directions", field: "text" }, { label: "Distance", field: "info" }] , "directions") }}


./WindowsLiveMap3.JPG


live.roadmap(address : str, zoom : num, width : num, height : num, description : str, title : str, publish : str, subscribe : str) : xml

Embed Virtual Earth map in road-only mode with optional description.

Parameters:

Name Type Description
address
str
Optional.  Street address to center map on (default: nil)
zoom
num
Optional.  Map zoom level (1-19; default: 14)
width
num
Optional.  Map width (default: 450)
height
num
Optional.  Map height (default: 300)
description
str
Optional.  Map marker description (default: nil)
title
str
Optional.  Map marker title (default: "Address")
publish
str
Optional.  Publish on channel (default: "default")
subscribe
str
Optional.  Subscribe to channel (default: nil)

Publish Format:
Name Type Description
text
str
Map directions.
info
str
Distance.

Subscribe Formats:

Name Type Description
from
str
From address.
to
str
To address.
Name Type Description
address
str
Street address.
label
str
Map marker title.
info
str
Map marker description.

Samples:

Output

To embed a 200 by 200 road map of San Diego:

{{ live.roadmap("San Diego, CA", 11, 200, 200, "This is a map of San Diego", "San Diego") }} 

./WindowsLiveRoadMap1.JPG

To prompt for an address and display the road map:

{{ dhtml.inputbox{ length: 50, label: "Address: ", field: "address", publish: "inputbox1"} }}
{{ live.roadmap{zoom: 11, subscribe: "inputbox1"} }}


./WindowsLiveRoadMap2.JPG

To prompt for to/from locations and display the road map with directions:

{{ dhtml.form{ publish: "form1", length: 50, inputs: [ { label: "From: ", field: "from", hidden: false }, { label: "To: ", field: "to", hidden: false } ] } }} 
{{ live.roadmap{zoom: 11, subscribe: "form1", publish: "directions"} }} 
{{ dhtml.table([{ label: "Directions", field: "text" }, { label: "Distance", field: "info" }] , "directions") }}


./WindowsLiveRoadMap3.JPG
ファイルサイズ日付添付したユーザ 
WindowsLiveAerial1.JPG
説明なし
16.2 kB2007年 10月 24日, 21:31BrigetteKアクション
 WindowsLiveAerial2.JPG
説明なし
45.78 kB2007年 10月 24日, 00:45BrigetteKアクション
WindowsLiveAerial3.JPG
説明なし
87.96 kB2007年 10月 24日, 21:33BrigetteKアクション
 WindowsLiveContacts1.JPG
説明なし
11.3 kB2007年 10月 24日, 01:30BrigetteKアクション
 WindowsLiveContacts2.JPG
説明なし
15.17 kB2007年 10月 24日, 01:39BrigetteKアクション
 WindowsLiveContacts3.JPG
説明なし
58.71 kB2007年 10月 24日, 19:14BrigetteKアクション
 WindowsLiveDirections1.JPG
説明なし
14.37 kB2007年 10月 24日, 19:30BrigetteKアクション
 WindowsLiveDirections2.JPG
説明なし
75.29 kB2007年 10月 24日, 19:34BrigetteKアクション
 WindowsLiveFindOnMap1.JPG
説明なし
16.14 kB2007年 10月 24日, 19:51BrigetteKアクション
 WindowsLiveHybridMap1.JPG
説明なし
18.53 kB2007年 10月 24日, 21:24BrigetteKアクション
 WindowsLiveHybridMap2.JPG
説明なし
48.37 kB2007年 10月 24日, 21:24BrigetteKアクション
 WindowsLiveHybridMap3.JPG
説明なし
90.23 kB2007年 10月 24日, 21:24BrigetteKアクション
 WindowsLiveMap1.JPG
説明なし
14.46 kB2007年 10月 24日, 21:41BrigetteKアクション
 WindowsLiveMap2.JPG
説明なし
38.42 kB2007年 10月 24日, 21:41BrigetteKアクション
 WindowsLiveMap3.JPG
説明なし
77.35 kB2007年 10月 24日, 21:41BrigetteKアクション
 WindowsLiveRoadMap1.JPG
説明なし
15.58 kB2007年 10月 24日, 21:46BrigetteKアクション
 WindowsLiveRoadMap2.JPG
説明なし
38.46 kB2007年 10月 24日, 21:46BrigetteKアクション
 WindowsLiveRoadMap3.JPG
説明なし
77.6 kB2007年 10月 24日, 21:46BrigetteKアクション
コメント(3)
全3件のうち3件のコメントを表示: 全て見る
There seems to be an error with this, I had to disable the Live sevice in order for the page to load.

Anyone know anything about this?
投稿日:2007年 9月 7日, 02:11 ()
ya this is incorrect syntax

the correct syntax is
{{live.directions("92024", "92101")}} 2007年 10月 3日, 04:51に編集
投稿日:2007年 10月 3日, 04:50 ()
Thanks for pointing it out. I corrected it.
投稿日:2007年 10月 3日, 14:26 ()
全3件のうち3件のコメントを表示: 全て見る
あなたはコメントを投稿するには ログイン しなければなりません。