OS Property support center

RealHomes mapsearch my location radius incorrect

  • theladynull
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 months ago #65861 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:
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.

More
10 years 1 month ago #65968 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic RealHomes mapsearch my location radius incorrect
Thank you for your report.
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan