Skip to main content

Support Policy

We only provide official support for Solidres's subscribers, all subscribers can request support by using forum or support ticket system. For more information please check our Support Policy at www.solidres.com/support-policy

Show map link - Google map integrated

More
12 years 10 months ago #3783 by killerwhale
Replied by killerwhale on topic Show map link - Google map integrated
Hello, Vietvh.
I am using 0.5.4 but the show map link does not work.
Actually, show map link is working with sample data however when I set up another asset and make it default, it does not work even if I enter correct address.
How can I solve it?

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #3796 by vietvh
Replied by vietvh on topic Show map link - Google map integrated
Hi,

Prior to 0.6.0, the process of translating from physical address to longitude and latitude run only 1 time, it is fixed in 0.6.0.

You can fix it by removing the first IF condition in those lines of the file /administrator/components/com_solidres/tables/reservationasset.php
Code:
if(!isset($array['lat']) && !isset($array['lng'])) { $options = array(0 => $array['address_1'], 1 => $array['city'], 2 => isset($array['geo_state_id'])? $array['geo_state_id'] : null, 3 => $array['country_id']); $coords = SRFactory::getGeoCoder($options)->process(); if(is_array($coords)) { $array['lat'] = $coords['lat']; $array['lng'] = $coords['lng']; } }

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #3803 by killerwhale
Replied by killerwhale on topic Show map link - Google map integrated
Thanks for the prompt reply.
However, the show map link still does not work even if I removed the first IF condition[if(!isset($array) && !isset($array))] in the above lines.
Would you please clarify what lines I need to remove?

Thanks & Best Regards,
Killerwhale.

Please Log in or Create an account to join the conversation.

Moderators: solidres

All the things you need to make your work easier. Did you like Solidres?