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

mcabalaji’s picture

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);

i-sibbot’s picture

May I ask where you placed this code to produce the map?

mcabalaji’s picture

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.

konordo’s picture