Start a new topic
Answered

Map longitude and latitude [widget=contact_details_map_directions] on Profile pag

I have followed the steps to add Map longitude and latitude on the contact details form, and it does not show in the map but if I click the link "Get Direction" it opens the correct map on google map.


this is the forum link i used add Map longitude and latitude manually.



Bellow is the code which used to show the map, and "Get direction" link.


 

<td class="one">Map View</td>
<td>
    <?php
        echo "<img src='http://maps.google.com/maps/api/staticmap?center=" . $user[gmap] . "&zoom=" . $user[gmap_zoom] . "&size=300x185&sensor=false&markers=size:large|color:blue|" . $user[gmap] ."' alt='Location of " . $user[full_name] . ucwords($w[trade]) . "' />";
    ?>
    <br>
    
    <?php if ($user[gmap] != "") { ?>
        <p style="margin-bottom:10px;">
            <a style="font-size:11px;" target="_blank" href="http://maps.google.com/maps?daddr=<?php if ($user[lat] != '' && $user[lon]!=''){ echo $user[lat] . ',' . $user[lon] . '&saddr=' . $_SESSION[vdisplay]; }else{ echo $user[gmap] . '&saddr=' . $_SESSION[vdisplay]; } ?>" title="Click for directions to this event">
                Get Directions &raquo;
            </a>
        </p>
    <?php } ?>
</td>

   


should I any special code to replace $user[gmap] or should I use [widget=contact_details_map_directions] and how should I use it.


Thanks




Best Answer

Hi John, 


Thank you for this information. I just talked to the Development Team and we will update the map with a different variables. We will let you know as soon as is completed. 


Thanks! :) 


Answer

Hi John, 


Thank you for this information. I just talked to the Development Team and we will update the map with a different variables. We will let you know as soon as is completed. 


Thanks! :) 

Thank you,


Waiting for the update.