Vendor MindTouch
Type Extension
Categories Communication, Maps
Requires MindTouch 1.8.2 or later
OS Restriction None
Status Stable
License Free/Open Source
SID (service id) sid://mindtouch.com/2007/07/windows.live
Assembly mindtouch.deki.services

 

Description

This extension contains functions for embedding Microsoft Windows Live Controls.

See also How to add an extension, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.

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

 

Tag page
Viewing 4 of 4 comments: view all
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?
Posted 02:11, 7 Sep 2007
ya this is incorrect syntax

the correct syntax is
{{live.directions("92024", "92101")}} edited 04:51, 3 Oct 2007
Posted 04:50, 3 Oct 2007
Thanks for pointing it out. I corrected it.
Posted 14:26, 3 Oct 2007
Does anyone know how to add a Bird's Eye view to Windows Live map in this extension?
Posted 17:38, 11 Sep 2008
Viewing 4 of 4 comments: view all
You must login to post a comment.