- Posts: 8
- Thank you received: 4
OS Property support center
RealHomes mapsearch my location radius incorrect
- theladynull
-
Topic Author
- Offline
- New Member
-
Less
More
9 years 10 months ago #65861
by theladynull
RealHomes mapsearch my location radius incorrect was created by theladynull
I noticed the following which might help other users.
When user clicks on 'My location', it shows a circle around location and states it as 500m radius. This distance is incorrect as the radius is only 50m NOT 500m.
File: templates/osprealhomes/html/mod_osmapsearch/default.php
Look for codes:
change 'radius': 50, to 'radius': 500
R
When user clicks on 'My location', it shows a circle around location and states it as 500m radius. This distance is incorrect as the radius is only 50m NOT 500m.
File: templates/osprealhomes/html/mod_osmapsearch/default.php
Look for codes:
Code:
mylocation = jQuery('#map_canvas_mapsearch').gmap('addMarker', {icon:'<?php echo Juri::root()?>modules/mod_osmapsearch/asset/images/userpin.png',id:'mylocation','position': clientPosition, 'bounds': true,'zoom': 15,'shape':shape,'radius': 15});
var zoom = jQuery('#map_canvas_mapsearch').gmap('option', 'zoom');
if( zoom <16 ){
jQuery('#map_canvas_mapsearch').gmap('option','zoom',16);
}
jQuery('#map_canvas_mapsearch').gmap('get','map').setOptions({'center':clientPosition});
myShape = jQuery('#map_canvas_mapsearch').gmap('addShape', 'Circle', {
'strokeWeight': 0,
'fillColor': "#008595",
'fillOpacity': 0.25,
'center': clientPosition,
'radius': 50,
'clickable': false
});
// add label
var labelText = '<div style="color: #CCC">500m radius</div>';
change 'radius': 50, to 'radius': 500
R
The following user(s) said Thank You: Marc
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 10 months ago #65968
by Mr. Dam
Replied by Mr. Dam on topic RealHomes mapsearch my location radius incorrect
Thank you for your report.
Dam
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.