Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7888625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:52:47+00:00 2026-06-03T05:52:47+00:00

I have a gmap with direction line displayed on it (2 or more points).

  • 0

I have a gmap with direction line displayed on it (2 or more points). Is there any way to get all points from map depending viewport (zoom level), only those that user can see ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:52:48+00:00Added an answer on June 3, 2026 at 5:52 am

    I won’t give you the tea spoon version, but here is how you do it. First of all, make sure you have all your markers available in an array.

    1. Get the bounds from your map: map.getBounds(). This will return a LatLngBounds object, which contains the coordinates of the bottom left point of your viewport as well as the top right part.
    2. Iterate through all your markers. Get their positions: marker.getPosition() and check if they are above and to the right of the map bounds south west point, as well as below and to the left of the map bounds north east point.
    3. If they are, add these points to an array.

    That array now contains all the points in your viewport. Repeat as necessary.

    More information can be found in the Google Maps API v3 reference

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have noticed that, from Google Maps page, you can get an embed link
I'm using the gMap plugin for jQuery. On my map I have several markers.
From the author's website, let's say we have multiple markers: $(#map1).gMap({ markers: [{ latitude:
I want to trigger jQuery from a GMap info window. I have these code
Have someone tried out DeCAL in Delphi 2009? I'm thinking about upgrading from 2007,
Have you ever obfuscated your code before? Are there ever legitimate reasons to do
have not tested on windows. but in ubuntu when u disconnect from the network,
I have a gmap balloon. var marker = createMarker(point, '<div style=width:240px id=mapsball><h2>Splash of London</h2><img
I have a Javascript object that I want to pass in more parameters, but
If you go here: http://econym.org.uk/gmap/snap.htm there are some examples of the kind of stuff

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.