Page 1 of 1

CGGoogleMaps w/ Dynpoint

Posted: Sat Mar 31, 2012 11:35 pm
by kpurcell
On CGGoogleMaps I'm having a problem with dynamically generated marker points. Anything passed in reverts to lat: 1.0 long 1.0 and if I echo that to the info window is shows the real points here is the code:

Template: GA_Neighborhoods

{foreach from=$itemlist item="item"}
{assign var='name' value=$item->name}
{assign var='lat' value=$item->Latitude}
{assign var='long' value=$item->Longitude}
{assign var='description' value="Name=$name<br />Lat=$lat<br />Long=$long"}
{cggm_add_dynpoint map=1 name=$name description=$description lat=$lat long=$long category=Neighborhoods icon=house}
{/foreach}


Page: Community Map

{cms_module module="Neighborhoods" what="Neighborhoods" template="GA_Neighborhoods"}
{CGGoogleMaps map=1}

Output:

<div id="cggm_map_data_1" style="display: none;">
<div class="cggm_map_markers" style="display: none;">
<div class="cggm_marker" id="map_1_marker_Boling_Ranch">
<input type="hidden" name="name" value="Boling_Ranch">
<input type="hidden" name="title" value="Boling Ranch">
<input type="hidden" name="latitude" value="1.000000">
<input type="hidden" name="longitude" value="1.000000">
<input type="hidden" name="icon" value="dd-end">
<input type="hidden" name="categories" value="Neighborhoods">
<input type="hidden" name="meta" value="0">
<div class="cggm_infowindow_contents">
<div class="cggm_infowindow" id="cggm_map_infowindow_1_Boling_Ranch">
<div class="cggm_infowindow_item">Name=Boling Ranch<br>Lat=32.8363<br>Long=-97.5638</div>
</div>
</div><!-- cggm_infowindow_contents -->
</div><!-- cggm_marker -->
</div><!-- cggm_infowindow_contents -->
</div><!-- cggm_marker -->
</div><!-- cggm_map_markers -->

Re: CGGoogleMaps w/ Dynpoint

Posted: Sun Apr 01, 2012 4:28 pm
by kpurcell
Forgot to point out the detailed issue I'm having:

if you notice the field values are 1.000000

<input type="hidden" name="latitude" value="1.000000">
<input type="hidden" name="longitude" value="1.000000">

Yet if I use the same data in the info window the values are correct

<div class="cggm_infowindow_item">Name=Boling Ranch<br>Lat=32.8363<br>Long=-97.5638</div>

SOLVED - Re: CGGoogleMaps w/ Dynpoint

Posted: Sun Apr 15, 2012 7:51 pm
by kpurcell
when using data from CTLModuleMaker, you need to specify the full reference to the data $item->latitude->value, not just $item->latitude