- Posts: 5
- Home
- Forum
- Community Forum
- Questions
- Installation/Upgrade
- Solidres Site Slow Now Cannot Access WP Admin
Show map link - Google map integrated
- killerwhale
- Offline
Less
More
11 years 3 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?
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.
- vietvh
-
- Offline
Less
More
- Posts: 1553
11 years 3 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
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
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.
- killerwhale
- Offline
Less
More
- Posts: 5
11 years 3 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.
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