How to use properties from CGGoogleMaps marker

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Mantlet
Forum Members
Forum Members
Posts: 114
Joined: Fri Apr 28, 2006 9:42 am
Location: Haarlem - Netherlands

How to use properties from CGGoogleMaps marker

Post by Mantlet »

Hello all,

I'm trying to access the properties from a marker in CGGoogleMaps to display them in the popup baloon in the map. To see which values are available, I added this to my template:

{$marker|print_r}

That gives me the following result:

cggm_marker Object ( [_marker_id:cggm_marker:private] => 1 [_map_id:cggm_marker:private] => 1 [_title:cggm_marker:private] => Roschmarine [_description:cggm_marker:private] => [_address:cggm_marker:private] => [_lat:cggm_marker:private] => 52,4548536 [_long:cggm_marker:private] => 4,8142318 [_icon:cggm_marker:private] => marina [_categories:cggm_marker:private] => [_meta_description:cggm_marker:private] => [_no_sv:cggm_marker:private] => ) 1

What code do I have to use in my template now to access the _lat value for instance?

My Smarty skills are not brilliant, so I've only tried the suggestions from the smarty site to access properties of an object. I've tried {$marker->_lat}, but that doesn't give me anything.

Any help would be appreciated.
Post Reply

Return to “Modules/Add-Ons”