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 370031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:58:43+00:00 2026-05-12T13:58:43+00:00

Ever noticed that when you go to maps.google.com and do a search (say, car

  • 0

Ever noticed that when you go to maps.google.com and do a search (say, car wash), it renders a lot of results (represented by small circles) and a few prominent ones (seen as regular-size pins)?

Notice how quickly it does this?

From what I can tell from analyzing this in Firebug, much of this is generated on the server and sent to the client as a static image.

However, it’s still dynamic. You can still zoom in and out, or click on a result and see a dynamic InfoWindow rendered.

Google have made the map quick and smooth using static images, while still making it flexible.

Is there a way to do this kind of ‘pre-loading’ with my own Google Map (implemented with the Google Maps API)?

  • 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-12T13:58:43+00:00Added an answer on May 12, 2026 at 1:58 pm

    The technology that maps.google.com uses is similar to that used in a GLayer. The server dynamically builds tiles and “hotspot” info. The GLayer tiles are also constructed dynamically (and possibly cached) even though the underlying data is fairly static. From the client side, the searched dots technology is identical to the Wikipedia or Panoramio GLayer. The only new trick is that the dot information is generated dynamically on Google’s big fast servers.

    The API does not (yet) provide any tools for creating custom GLayers. If you want to do the same sort of thing yourself, using your own database of locations, there are three steps that you need to code:

    1. Create your own custom tileserver
      which searches your database for
      items in the tile area and uses a
      graphics library like gd or
      imagemagic to place dots on the
      tile. Use those tiles to create a
      GTileLayerOverlay on the client.

    2. When the user clicks on the map,
      send the location of that click to a
      second server. That server should
      check your database and return the
      infowindow text for the dot at that
      location, if any. Returning all the infowindow contents from all the dots imaged by the tileserver would be unacceptably slow, so you have to fetch them one by one, as needed.

    3. Changing the cursor when the mouse
      is over a dot is more tricky. What Google
      do is return a list of hotspot
      coordinates for all the dots on each
      tile. Whenever the mouse moves, the
      API determines which tile the
      pointer is over and uses a quadtree
      algorithm to see if the pointer is
      over a hotspot, and change the
      cursor if necessary. If you only
      have a modest number of hotspots per
      tile, then a linear search would
      probably be acceptably fast. If you might have thousands of dots per tile, then you’ll probably need to write your own quadtree algorithm. The Google quadtree code is not exposed, so you can’t use it.

    Here’s a page where somebody has done all that. In this case the hotspots are calculated as circles, by comparing the distance from the centre point, even though the dots are square. On maps.google.com the hotspots are calculated as rectangles, by using GBounds.containsPoint(), even though the dots are round.

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

Sidebar

Related Questions

No related questions found

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.