Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure why you want to go to a GIF/PNG overlay, you can do this directly in KML. I'm assuming that most of your performance problem was being caused by points outside the user's current view, i.e. the user is looking at New York but you have points in Los Angeles that are wasting memory because they aren't visible. If you really have 16,000 points that are all visible at once for a typical then yes you'll need to pursue a different strategy.</p> <p>If the above applies, the procedure would be as follows:</p> <ol> <li>Determine the center &amp; extent of the map</li> <li>Given that you should be able to calculate the lat/long of the upper left and lower right corners of the map.</li> <li>Iterate through your database of points and check each location against the two corners. Longitude needs to be greater (signed!) than the upper left longitude and less than the lower right longitude. Latitude needs to be less than the upper left latitude (signed!) and greater than the lower right latitude. Just simple comparisons, no fancy calculations required here.</li> <li>Output the matching points to a temporary KML for the user.</li> <li>You can feed <a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=http:%2F%2Fwhatstheharm.net%2Fmaps%2Fhomeopathy.kml&amp;ie=UTF8&amp;ll=9.031205,-128.873246&amp;spn=177.2351,360&amp;z=1" rel="nofollow noreferrer">KML directly into Google Maps</a> and let it map it, or you can use the <a href="http://googlemapsapi.blogspot.com/2007/03/kml-and-georss-support-added-to-google.html" rel="nofollow noreferrer">Javascript maps API</a> to load the points via KML.</li> </ol> <p>It might not solve your exact problem here, but for related issues you might also look into the <a href="http://code.google.com/apis/maps/documentation/staticmaps/" rel="nofollow noreferrer">Google Static Maps API</a>. This allows you to create a static image file with placemarkers on it that will load very quickly, but won't have the interactivity of a regular Google map. Because of the way the API is designed, however, it can't handle anywhere near 16,000 points either so you'd still have to filter down to the view.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload