my map so slow? what is the poblem?

2,607 views
Skip to first unread message

gunk

unread,
Jan 19, 2011, 2:00:10 AM1/19/11
to google-map...@googlegroups.com
hi, i ve problem in my map http://gunkm.brinkster.net/revisi.aspx
please check how can correct why my map so slow when zoom, load first ??

thanks,..
regards

N.Aleksandrenko

unread,
Jan 19, 2011, 2:06:10 AM1/19/11
to google-map...@googlegroups.com
url?


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

gunk mahendra

unread,
Jan 19, 2011, 2:11:14 AM1/19/11
to google-map...@googlegroups.com
i dont i understand what mean url?
this http://gunkm.brinkster.net/revisi.aspx my map in upload when zoom slow and load first the map so slow,..espcialy in ie 8 so slow you can check,..
can you know whats wrong?
and can you coorect if my code not good?
thanks, regards,..

en4ce

unread,
Jan 19, 2011, 4:54:14 AM1/19/11
to Google Maps JavaScript API v3
use clusters! this will speed up your map significantly

On 19 Jan., 08:11, gunk mahendra <gnkmahendr...@gmail.com> wrote:
> i dont i understand what mean url?
> thishttp://gunkm.brinkster.net/revisi.aspxmy map in upload when zoom slow
> and load first the map so slow,..espcialy in ie 8 so slow you can check,..
> can you know whats wrong?
> and can you coorect if my code not good?
> thanks, regards,..
>
> On Wed, Jan 19, 2011 at 3:06 PM, N.Aleksandrenko <aleksandre...@gmail.com>wrote:
>
>
>
>
>
>
>
> > url?
>
> > On Wed, Jan 19, 2011 at 9:00 AM, gunk <gnkmahendr...@gmail.com> wrote:
>
> >> hi, i ve problem in my maphttp://gunkm.brinkster.net/revisi.aspx
> >> please check how can correct why my map so slow when zoom, load first ??
>
> >> thanks,..
> >> regards
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Maps JavaScript API v3" group.
> >> To post to this group, send email to
> >> google-map...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > google-map...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com>
> > .

Rossko

unread,
Jan 19, 2011, 2:59:21 PM1/19/11
to Google Maps JavaScript API v3
> i dont i understand what mean url?
> this http://gunkm.brinkster.net/revisi.aspx my map

That is the url asked for.

> in upload when zoom slow
> and load first the map so slow,..espcialy in ie 8 so slow you can check,..

500 markers in view is too many.
MarkerManager adds overhead when all 500 are in view, it only helps
when there is just a subset in view.
Clustering aggregates markers together so that there are less markers
on the map.

You are creating 500 infowindows, most of which will never be looked
at. As you are already saving the content as a custom property on
your marker, you might change your click listener to only create the
infowindow when requested.

Martin Matysiak

unread,
Jan 20, 2011, 10:55:28 AM1/20/11
to google-map...@googlegroups.com
You might also consider lightweight markers, as described e.g. here: http://viswaug.wordpress.com/2008/12/18/creating-a-lean-and-fast-custom-marker-overlay-for-google-maps/

gunk mahendra

unread,
Jan 21, 2011, 1:34:35 AM1/21/11
to google-map...@googlegroups.com
>>You are creating 500 infowindows, most of which will never be looked
>>at.  As you are already saving the content as a custom property on
>>your marker, you might change your click listener to only create the
>>infowindow when requested.


i already try the cluster marker, how to create infowondow in markers??
this sample map cluster : http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/examples/simple_example.html

thanks,
regards

N.Aleksandrenko

unread,
Jan 21, 2011, 6:07:38 AM1/21/11
to google-map...@googlegroups.com
you don't need infowindows IN markers. You need to create infowindows only when needed. This mean you don't create any at start and create one on marker click, and on infowindow close button click - remove the infowindows (not just hide it). And yes, use light markers.

I thing there is even a way to make markers only divs with no event listeners. Attach just 1 event listener to the map dom element and on click see what dom element is under the mouse point. If it is a marker - go do your stuff. That way you will have only 1 listener instead of many and light markers as they can get.
I will try to make this in the future :) i don't have the time now. If anyone likes the idea ... send me a copy ;)


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.

gunk mahendra

unread,
Jan 21, 2011, 8:56:29 PM1/21/11
to google-map...@googlegroups.com
but i need use infowindow when im using markerclusterer,.
im not interest use light marker, this my sample map danish http://gunkm.brinkster.net/test/
please your clue,..
thanks,..
regards,..

en4ce

unread,
Jan 21, 2011, 9:31:45 PM1/21/11
to Google Maps JavaScript API v3
this topic get quite entertaining

Ralph Ames

unread,
Jan 21, 2011, 9:50:39 PM1/21/11
to google-map...@googlegroups.com
>this topic get quite entertaining

Maybe it's because there are 3 external files?

On a page with 32 lines.

gunk

unread,
Jan 21, 2011, 10:06:07 PM1/21/11
to google-map...@googlegroups.com
oke thats fixs, new all im upload,..
thanks,.
thats perfek!

gunk mahendra

unread,
Jan 21, 2011, 11:59:25 PM1/21/11
to google-map...@googlegroups.com

bratliff

unread,
Jan 22, 2011, 11:41:06 AM1/22/11
to Google Maps JavaScript API v3
On Jan 21, 11:07 am, "N.Aleksandrenko" <aleksandre...@gmail.com>
wrote:
> you don't need infowindows IN markers. You need to create infowindows only
> when needed. This mean you don't create any at start and create one on
> marker click, and on infowindow close button click - remove the infowindows
> (not just hide it). And yes, use light markers.
>
> I thing there is even a way to make markers only divs with no event
> listeners. Attach just 1 event listener to the map dom element and on click
> see what dom element is under the mouse point. If it is a marker - go do
> your stuff. That way you will have only 1 listener instead of many and light
> markers as they can get.
> I will try to make this in the future :) i don't have the time now. If
> anyone likes the idea ... send me a copy ;)

I am developing a "light weight" marker facility with CANVAS.

http://www.polylib.us/polycluster/airports

It still has many rough edges.

A pair of event listeners ("click" & "mousemove") can support ten
thousand markers. Unfortunately, Internet Explorer is out of luck.
VML places a heavy burden on the DOM. Every marker requires an "oval"
element. Every "oval" element requires "fill" & "stroke" sub-elements
in order to control opacity. I may be able to use "shape" elements
with a lot of hops but I have not tried. I believe DIVs will run out
of gas at several hundred. I have not tested the limits.

If anyone knows another way to do it using VML, please let me know.

N.Aleksandrenko

unread,
Jan 22, 2011, 2:23:00 PM1/22/11
to google-map...@googlegroups.com
The application is holding very well :) But isn't CANVAS in the new HTML5 specs. and old browsers just don't get it?

I'm far from trying to make my app faster, it's not even ready yet. I will make it work and  then go for optimizing.

bratliff

unread,
Jan 22, 2011, 5:50:36 PM1/22/11
to Google Maps JavaScript API v3
On Jan 22, 7:23 pm, "N.Aleksandrenko" <aleksandre...@gmail.com> wrote:
> The application is holding very well :) But isn't CANVAS in the new HTML5
> specs. and old browsers just don't get it?
>
> I'm far from trying to make my app faster, it's not even ready yet. I will
> make it work and then go for optimizing.

IE9 may support CANVAS or SVG or both but it is not even out of beta.
IE8, IE7 & IE6 will not diasppear anytime soon.

I choose CANVAS because one CANVAS element can contain an unlimited
number of markers. It is just pixels. With DIVs, each marker
requires its own DIV. Eventually, it may be too many DIVs for the
browser. Also, DIVs are essentially rectangular. Rounded corners are
an option in some browsers. Perhaps Internet Explorer could use DIVS
for small markers & VML for large markers.

N.Aleksandrenko

unread,
Jan 22, 2011, 6:50:15 PM1/22/11
to google-map...@googlegroups.com
Agree on all points :). When the time come for optimizations i will post my solution :) (i am and i will use image-sprite for my markers, i will have around 30 different icons with 3-4 different size each. I have done the code, but have not tried it yet with real-world data).



--

The Gilliams

unread,
May 27, 2019, 1:51:08 AM5/27/19
to [deprecated] Google Maps JavaScript API v3. Please use the latest post.
I'm having trouble teleporting ahead. It used to be that I could click and it would teleport me far ahead, but now when i click, it only teleport a bit. How do i fix that?
Reply all
Reply to author
Forward
0 new messages