3

I need to generate a link to Google Maps, containing a location and a circle around it. I found several questions/answers related on generating URLs (e.g. this one). I'm able to display a location, use zoom factors, etc. so far (see link below).

https://maps.google.com/maps?q=39.211374,-82.978277+%28You+Were+Here%29&z=14&ll=39.211374,-82.978277

(clickable)

But is it possible to add a circle with a certain radius arount the specified location? (I know it is with javascript but this is not an option).

On a related note: is there a description of all the GET parameters available? Many answers link to http://mapki.com/wiki/Google_Map_Parameters, which is not available anymore.

Community
  • 1
  • 1
rob
  • 2,904
  • 5
  • 25
  • 38

2 Answers2

1

After some hours of research I think i can say that it is not possible to draw a circle around a location as is possible with the JavaScript API. It is, however, possible to draw a polygon around a location and since a circle can (almost) be modeled as a polygon this is a possible solution to the problem. A possible implementation in PHP is described here

rob
  • 2,904
  • 5
  • 25
  • 38
0

I'm not sure if this is it:

circle = new google.maps.Circle({

map: map,
radius: XXX,
position: xxxx,
visible: boolean
})

marker = new google.maps.Marker(markerOptions); 
// binds radius(circle) to marker
circle.bindTo('center', marker, 'position');
Jdenison
  • 1
  • 4