Hi,
I'm trying to get the lat and long variables into the directions window. Since {$marker->get_marker_id()} and {$marker->get_title()} both work and show up in {$marker|print_r}, I also tried {$marker->get_lat()} and {$marker->get_long()}.
However, those don't give anything, while they seem filled in the {$marker|print_r}.
What is the proper syntax to get the lat and long from a marker?
CGGoogleMaps lat long for directions
Re: CGGoogleMaps lat long for directions
It's a bit outadated...but somebody can find it useful.
In order to get latitude and logitude of current marker inside CGGoogleMaps, you should use following methods:
{$marker->get_latitude()|number_format:6:".":","}
In order to get latitude and logitude of current marker inside CGGoogleMaps, you should use following methods:
- $marker->get_latitude() and
- $marker->get_longitude()
{$marker->get_latitude()|number_format:6:".":","}