googleDirections - To Here - plugin Tutorial 02: Adding Label to Home Address

This is part 2 of a series of tutorial for the googleDirections - To Here - plugin.

You can add a label to the Home Address with the keyword home_label. The label will be displayed when you hover the mouse over the red marker, or when you click on the red marker.

Note:

  • The label with the red marker will only be shown when the map is displayed initially with nothing entered in the "Coming From" field.
  • The moment the directions are displayed, the red marker will be replaced by the end point (usually Point B which corresponds to the directions given in the Directions Panel)
  • You can re-display the original map with the red marker by entering an empty field (i.e. clearing the "Coming From" field) and click the submit button.

Adding Home Label

  1. Single line label
    • Use the keyword home_label
    • Make sure you enclose the label in double quotes, not single quote.

    {googleDir_tohere width=320 height=360 dir_width=275
    home_addr="1600 Amphitheatre Parkway, Mountain View CA 94043"
    home_label="Google Inc."}
    

    Coming from:

  2. Multiple-lines label
    • Use ~ to indicate new lines.

    {googleDir_tohere width=320 height=360 dir_width=275
    home_addr="1600 Amphitheatre Parkway, Mountain View CA 94043"
    home_label="Google Inc.~1600 Amphitheatre Parkway~Mountain View, CA 94043"}
    

    Coming from:

Tutorials for the googleMaps plugin

Tutorials for the googleDirections plugin

Tutorials for the googleDirections_to_here plugin

Comments   

0 # G.v.d.Tuuk 2012-07-19 15:51
Please help,

some of my dir_width's are exactly the size I want them. And some of them just go their own way.
Reply | Reply with quote | Quote
0 # kksou 2012-07-20 01:42
Hi,

1) Can show some sample pages so that I can do a view source?

2) What are the tags that you've used to produce the result?

You need to help us to help you. So please provide a bit more information so that we have more clues.

Regards,
/kksou
Reply | Reply with quote | Quote
0 # herrycandi 2012-08-03 01:15
Thank you, very nice plagin.
Reply | Reply with quote | Quote
0 # tm_1605 2012-11-16 01:43
is there any possibility to integrate a print-button?
Reply | Reply with quote | Quote

Add comment


Security code
Refresh