Have you considered enabling gzip compression on your server for that
page?

A 10KB page is likely to be mainly text content which compresses very
well - typically you can reduce text content by around 70%.

Take a look at this as an example:

http://www.whatsmyip.org/mod_gzip_test/?url=aHR0cDovL2dvb2dsZW1hcHNhcGkubWFydGlucGVhcm1hbi5jby51ay9yZWFkYXJ0aWNsZS5waHBcP2FydGljbGVfaWQ9NA==

( http://tinyurl.com/cqyz7u )

See how my (original) 23KB page served as compressed content has been
reduced to just 6KB - a reduction of 73%.

My site is hosted on an apache server and i edited my .htaccess file
to include this line:

php_value output_handler ob_gzhandler

That single line instructs apache to serve all text based files as
gzip compressed content.
Actually the compressed content is only served to clients whose
browsers support it, but it's 2009 and any modern browser supports
receiving and decompressing such content.
In fact any browser that supports the Google Maps API will also
support receiving compressed content so no problems there.

If your site is not hosted on an apache server or you can't edit your
site's .htaccess file then you can enable similar compression with
PHP.

If your page is an .htm or .html type then change it to a .php type.
Now you can insert this PHP at the very start of the page and that
page (or any other .php page that you include the code in) will be
served as gzip compressed content to compatible browsers:

<?php

ob_start("ob_gzhandler");

?>

See the documentation for more details:
http://uk.php.net/ob_gzhandler

Martin.


On 30 Mar, 03:37, Lai Shu Zhan <[email protected]> wrote:
> Hi, I want to plot 500 location into a map but the size of each page
> exceeds 10 kb. what can I do in order to get all the location and the
> speed of internet line is quite slow in my country.
>
> On 3/26/09, [email protected] <[email protected]> wrote:
>
>
>
> > On Mar 25, 8:08 pm, Lai Shu Zhan <[email protected]> wrote:
> >> is there any other better way to understand the java cos my computer
> >> background is not that good
>
> > Try some javascript tutorials (not java)
> >http://www.google.com/search?q=javascript+tutorials
>
> > Read through Mike Williams' tutorial, copy his examples and play with
> > them.
>
> >> On 3/25/09, Mike Williams <[email protected]> wrote:
>
> >> > Assuming that this is an API question:
>
> >> > You can use EGeoXml to process multiple KML files at once. Pass it an
> >> > array containing the URLs of the individual MyMaps KMLs. And EGeoXml
> >> > does have a {sortbyname:true} option for the sidebar.
>
> >> > The next problem is that a map with 500 locations is going to be rather
> >> > sluggish in most browser environments.
>
> >> > --
> >> >http://econym.org.uk/gmap
> >> > The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to