By mcabalaji on
Hi all
Is it possible to create a circle overlay around a radius in the Gmap ,I searched around it and couldn't find any , If anyone has done it before with Gmap , Please help me out
Hi all
Is it possible to create a circle overlay around a radius in the Gmap ,I searched around it and couldn't find any , If anyone has done it before with Gmap , Please help me out
Comments
Fixed it by Adding Shapes
Fixed it by adding the shapes to the map object like below and sending it to the gmap theme
$shapes[0]['type'] = 'circle'; // type of shape
$shapes[0]['radius'] = '100'; // radius
$shapes[0]['center'][0] = '29.2'; // latitude
$shapes[0]['center'][1]= '-81.95'; //longitude
$map['shapes'] = $shapes;
print gmap_multi_marker_map($markerlist,'auto','306px', '300px',TRUE,$map);
May i ask
May I ask where you placed this code to produce the map?
Added in the Listing Page
Hi
I have a search listing page in which I need to show the Gmap with the radius circle overlay . In the listing page I list 10 nodes per page and I take the information's from the list of nodes and send it across to the function gmap_multi_marker with the center Point latitude and Longitude , which you can see in my previous post.
This might be interesting
http://www.konordo.com/blog/draw-circle-overlay-all-points-gmap-radius-c...
--------------------------------------------
Konordo Ltd
http://www.konordo.com