googleDirections - To Here - plugin Tutorial 02: Adding Label to Home Address
Written by kksou   
Wednesday, 08 February 2012

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."}
    

    MapDirections
    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"}
    

    MapDirections
    Coming from:

Tutorials for the googleMaps plugin

Tutorials for the googleDirections plugin

Tutorials for the googleDirections_to_here plugin


 

Comments  

 
# 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.
 
 
# 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
 
 
# herrycandi 2012-08-03 01:15
Thank you, very nice plagin.
 
 
# tm_1605 2012-11-16 01:43
is there any possibility to integrate a print-button?
 
< Prev   Next >

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2015. kksou.com. All Rights Reserved