Support

  1. Cruise
  2. General
  3. Thursday, May 15 2014, 02:42 PM
Hi

I have a problem with the Google Map "Search within radius of...".

Let's say I live appr. 60 km from a users address. If I plot in my address and make the search with a radius of 30 km, then the user (located 60 km from me) is shown in the search result.

It looks like the radius is doubled and that 30 km actually is 60 km.

I hope that you can verify and fix this :)

Regards
Accepted Answer
admin Accepted Answer
Admin
ok,
There is a problem in search radius query.

in file /administrator/components/com_jsn/helpers/fields/gmap.php
replace at line 221 this
if($field->params->get('gmap_unit','Km')=='Km') $radius=$radius*1.60934;

with this
if($field->params->get('gmap_unit','Km')=='Km') $const=6371; else $const=3959;


and at line 223 replace this
3959

with this
'.$const.'


we will fix in the next release.
  1. more than a month ago
  2. General
  3. # Permalink
sebbe Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. General
  3. # 1
admin Accepted Answer
Admin
this parameter is called "Search Radius", this set default radius value on search form.
  1. more than a month ago
  2. General
  3. # 2
sebbe Accepted Answer
Pro
Ok. But the radius is still not changing if a edit the radius in de backend.
  1. more than a month ago
  2. General
  3. # 3
admin Accepted Answer
Admin
Hi,
sebbe for now it's not possible, we will add this on your TODO list.
  1. more than a month ago
  2. General
  3. # 4
sebbe Accepted Answer
Pro
No in the component as a field
  1. more than a month ago
  2. General
  3. # 5
admin Accepted Answer
Admin
Hi Sebbe,
in a module?
  1. more than a month ago
  2. General
  3. # 6
sebbe Accepted Answer
Pro
If i change the radius, the new radius is not shown on the website. It's stille the same.
Is it possible to change the size of the Map?

Sebbe
  1. more than a month ago
  2. General
  3. # 7
Cruise Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 8
Cruise Accepted Answer
Sure, you can use the previous test site. See Site Details with example of address.

Regards
  1. more than a month ago
  2. General
  3. # 9
admin Accepted Answer
Admin
Hi,
can you please post me your site url?
  1. more than a month ago
  2. General
  3. # 10
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.