Peter
Peter

Reputation: 1541

Google Map API 3: display marker within circle only?

Is that possible to display markers within the circle only? Those outside of the circle will be hidden to user, while the circle move, the markers show and hide.

Upvotes: 0

Views: 950

Answers (1)

Gregory A Beamer
Gregory A Beamer

Reputation: 17010

There is no automagic "only draw things here" method in the API, but you can create a routine that uses the center of the circle (lat/long) and the radius to determine if the markers are within the circle and only display those.

Upvotes: 1

Related Questions