user1381815
user1381815

Reputation:

Google Maps Radius

I'd like to know if it's possible to put a radius delimiter in Google maps!? For example: I select a region or a city and I had a 5 mile radius and the delimiter increases, drawing it!

Please consider this example: I choose "Amsterdam" as the place, and then I add 5km to it and it will return the results from "Amsterdam" plus the 5km radius

http://www.funda.nl/koop/amsterdam/+5km/

My problem is I dont understand how to add 5km to "Amsterdam" since it cant be the center point - I think I need the delimiter for the region "Amsterdam". Does this exist on Google maps API or any other API?

Upvotes: 1

Views: 5025

Answers (1)

GoSmash
GoSmash

Reputation: 1108

Update:

Map Charts

as per your requirement, i think the above link will help you.

Try this,

// Create marker 
var marker = new google.maps.Marker({
  map: map,
  position: new google.maps.LatLng(39.7433,-104.9872),
  title: 'Some location'
});

// Add circle overlay and bind to marker
var circle = new google.maps.Circle({
  map: map,
  radius: 8047,    // 5 miles in metres
  fillColor: '#AA0000'
});
circle.bindTo('center', marker, 'position');

Reference: http://seriouscodage.blogspot.in/2010/11/visualizing-data-as-circles-in-google.html

Upvotes: 2

Related Questions