Click Here


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


 
Parse error: syntax error, unexpected '=' in /home/fann/kksou.com/php-gtk2/components/com_sef/cache/shCacheContent.php on line 27087