July 24, 2008
Extension of the Week: Windows Live Map
coreyg @ 9:02 am
The extension I’m focusing on this week is Windows Live Map. This allows you to embed maps within
your MindTouch Deki for pinpointing locations and even documenting directions. First install Windows Live Map by following the instructions.
Once you have installed the Microsoft Live extension then try pasting the following code into a MindTouch Deki page:
{{ live.aerialmap("San Diego, California, United States", 11, 200, 200,
"This is an aerial map of San Diego", "San Deigo") }}
This will give you an aerial map of San Diego, CA that looks like this:
Now that you see how easy it is to add a map to a MindTouch Deki page, let’s take it one step further and allow a user to map out directions to a specified location. (In order to do the following example you need to have the DHTML extension enabled in your MindTouch Deki install. To confirm take a look at your list of extensions)
Paste the following into a MindTouch Deki page:
{{ 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") }}
This will result in a form that allows a user to enter their starting point and the end point and not only have it map it out for them but also provide written directions as seen in the following image:
This is a great extension for enhancing the contents of your wiki. If you have any questions please feel free to contact us.
categories: MindTouch





No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL
Leave a comment