Template:MapWithDirections

    Table of contents
    No headers
    This template takes the following arguments:
    • address: adress to highlight on map
    • title: title on map marker
    • description: description on map marker
    • label (optional): input box label

    {{ live.map{ address: args.address, title: args.title, description: args.description, kind: "road", publish: @directions, subscribe: @from, zoom: 15 } }}

    {{ dhtml.form{ inputs: [ { label: args.label ?? 'Driving from:', field: "from" },  { field: "to", value: args.address, hidden: true } ], button: "Get directions to " .. args.title, publish: @from } }}
    {{ dhtml.table{ columns: [ { label: "Directions", field: "text" }, { label: "Distance", field: "info" } ], subscribe: @directions } }}

    Tag page
    Viewing 2 of 2 comments: view all
    grgr
    Posted 05:31, 4 Feb 2008
    How does one make the button width dynamic to match the Title width?
    Posted 13:16, 18 Nov 2008
    Viewing 2 of 2 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by