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

  • Home
  • SEARCH
  • 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 300777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:56:42+00:00 2026-05-12T06:56:42+00:00

I can currently place static points in the map window: var latlng = new

  • 0

I can currently place static points in the map window:

var latlng = new GLatLng(lat, lng);
map.addOverlay(new GMarker(latlng, markerOptions));

And I know how to get the bounds of the window. I can also code a page that will take the bounds and return the points that are inside them in any format.

The problems I have now:

  1. Does the moveend event capture all moves, including zoom changes? Or do I need to watch for that event separately?
  2. How should I call my external datasource? (should I just do a JQuery $.get request?)
  3. What should that datasource return?
  4. How do I display that data on the map?
  • 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-05-12T06:56:43+00:00Added an answer on May 12, 2026 at 6:56 am

    I’m using this in one of my sites. I think it’s exactly what you are looking for. But be warned “gmaps-utility-library” plugins have some buggy/bad code so it’s a good idea to go over it and double check if everything is working as it should (I haven’t encountered any bugs in marker manager but in some other plugins from that library).

    Here’s reference and examples.

    Even if you want to code your own this one is probably a good starting point.

    EDIT

    My answer for 3-4:

    It really depends on situation. If it’s static (you just need to manage a lot points on map > 300) then you could serve all points together with the page where the map is located in (as JavaScript array for example). If user interacts with data then probably it’s better to use AJAX. If you use jQuery (or any other JS library) in your site then use ajax function from that library if not then go with the one which comes from gmaps. It’s because it’s nice to use same AJAX function in whole site instead of using 2 which does the same job.

    If you are taking AJAX path you have 2 options:

    1. Load all markers for whole map in one request.
    2. Load markers that shows up on user screen + small margin.

    If you expect that user wants to see the big picture or that he will want to see all/most of the points then go for option 1 + marker manager (like the one I recommended or your own similar).

    If there’s really a lot of points and user will never be interested in most of them then go for option 2 + manager or just this simple algorithm: Clear map -> Request points for map window bounds + magin / (Cache) -> Draw points -> Repeat for each move/zoom.

    From personal experience (I’ve used both AJAX options) marker manager does quite nice job, can handle a lot points and overall user experience is a lot smoother then loading points for just viewport. Requesting new points and drawing them on map is quite laggy/choppy. Of course it depends on amount of points.

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

Sidebar

Related Questions

How can I send keyboard input messages to either the currently selected window or
Can anyone link me to a decent c++ tutorial that's actually currently in date?
I currently have a site where different users can login, and depending on their
I currently use a DataTable to get results from a database which I can
I am currently working with 2 sql 2000 servers one I can query but
How can I check the umask of a program which is currently running? [update:
I am currently writing a little bootstrap code for a service that can be
I am currently in the process of rewriting an application whereby teachers can plan
Can Silverlight apps be embedded into PowerPoint? We're currently weighing the pros and cons
How can I access Class object for Generics? Currently, I am doing it this

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.