| 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:
- live.aerialmap
- live.contacts
- live.directions
- live.findonmap
- live.hybridmap
- live.map
- 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") }} | |  |
| 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"} }} | | |
| 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") }}
| |  |
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) }} | | |
| 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) }} | | |
| 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") }} | |  |
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") }} | | |
| 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") }}
| | |
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") }}
| | |
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") }} | | |
| 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"} }} | |  |
| 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") }}
| |  |
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") }} | | |
| 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"} }} | | |
| 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") }}
| |  |
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") }} | | |
| 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"} }} | |  |
| 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") }}
| |  |
Anyone know anything about this?
the correct syntax is
{{live.directions("92024", "92101")}} edited 04:51, 3 Oct 2007