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
admin Accepted Answer
Admin
Hi,
can you please post me your site url?
  1. more than a month ago
  2. General
  3. # 1
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. # 2
Cruise Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 3
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. # 4
admin Accepted Answer
Admin
Hi Sebbe,
in a module?
  1. more than a month ago
  2. General
  3. # 5
sebbe Accepted Answer
Pro
No in the component as a field
  1. more than a month ago
  2. General
  3. # 6
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. # 7
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. # 8
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. # 9
sebbe Accepted Answer
Pro
Content Protected
  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.