Map loads very slowly, KML layers even slower, some not at all or sporadically.

508 views
Skip to first unread message

daviscounty

unread,
May 16, 2011, 3:25:24 PM5/16/11
to Google Maps JavaScript API v3
I am using Google maps to trail data and am loading routes exported
out of ArcMap using' Export to KML'. I've had this
working for 6 months, but last week I noticed that the maps was
loading really slowly and the kml overlays even slower. Some were not
showing at all. I double checked that the my map links were correct
and up to date, and double checked that the code hadn't changed.

I looked on friday and one of the KMLs that wasn't loading seemed to
work, and just checked
again, now it doesn work. Here are a couple of links:

- http://daviscountyutah.gov/trails/

Is there something going on with Google's servers that I am unaware
of? Was there an update that I need to take into account to handle
things differently when loading kml overlays?

Thanks for your help!

geoco...@gmail.com

unread,
May 16, 2011, 4:15:40 PM5/16/11
to Google Maps JavaScript API v3
On May 16, 12:25 pm, daviscounty <rtaus...@gmail.com> wrote:
> I am using Google maps to trail data and am loading routes exported
> out of ArcMap using' Export to KML'.  I've had this
> working for 6 months, but last week I noticed that the maps was
> loading really slowly and the kml overlays even slower. Some were not
> showing at all.  I double checked that the my map links were correct
> and up to date, and double checked that the code hadn't changed.
>
> I looked on friday and one of the KMLs that wasn't loading seemed to
> work, and just checked
> again, now it doesn work.  Here are a couple of links:
>
> -http://daviscountyutah.gov/trails/

That seems to be working for me, I was going to suggest you try v3.4
rather than the "nightly" development version (add v=3.4 to the URL
that includes the API), but I see you are doing that. Is that what
fixed it?

Larry

daviscounty

unread,
May 16, 2011, 5:23:56 PM5/16/11
to Google Maps JavaScript API v3
Thanks Larry for checking on this. Actually its still not working. I
should have been more specific about which KMLs aren't working. The
Hiking and the Equestrian KMLs aren't loading. Last week on Friday
Hiking magically started working, but now it is not. They all worked
fine up until last week. I've tried changing between the different
versions 3.2 --> 3.5. It wouldn't even load the map using 3.2 and I
didn't notice a difference between 3.3, 3.4 and 3.5.

Here are the KML locations --
http://daviscountyutah.gov/trails/trailheads17.kml
http://daviscountyutah.gov/trails/trails_proposed4.kml
http://daviscountyutah.gov/trails/trails_equestrian.kml
http://daviscountyutah.gov/trails/trails_hiking.kml
http://daviscountyutah.gov/trails/trails_motorized.kml
http://daviscountyutah.gov/trails/trails_class1d.kml
http://daviscountyutah.gov/trails/trails_class2.kml
http://daviscountyutah.gov/trails/trails_class3.kml

Larry was it taking a long time for the Overlays to load? They used to
load almost immediately now it takes 20 seconds or so.

Thanks for your help!

On May 16, 2:15 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:

en4ce

unread,
May 16, 2011, 6:00:53 PM5/16/11
to Google Maps JavaScript API v3
wow, that was slow...i thought there is nothing in the map for quite a
minute or so...did you use a debugger?

On 16 Mai, 23:23, daviscounty <rtaus...@gmail.com> wrote:
> Thanks Larry for checking on this. Actually its still not working. I
> should have been more specific about which KMLs aren't working. The
> Hiking and the Equestrian KMLs aren't loading. Last week on Friday
> Hiking magically started working, but now it is not. They all worked
> fine up until last week. I've tried changing between the different
> versions 3.2 --> 3.5. It wouldn't even load the map using 3.2 and I
> didn't notice a difference between 3.3, 3.4 and 3.5.
>
> Here are the KML locations --http://daviscountyutah.gov/trails/trailheads17.kmlhttp://daviscountyutah.gov/trails/trails_proposed4.kmlhttp://daviscountyutah.gov/trails/trails_equestrian.kmlhttp://daviscountyutah.gov/trails/trails_hiking.kmlhttp://daviscountyutah.gov/trails/trails_motorized.kmlhttp://daviscountyutah.gov/trails/trails_class1d.kmlhttp://daviscountyutah.gov/trails/trails_class2.kmlhttp://daviscountyutah.gov/trails/trails_class3.kml

geoco...@gmail.com

unread,
May 16, 2011, 6:16:12 PM5/16/11
to Google Maps JavaScript API v3
On May 16, 2:23 pm, daviscounty <rtaus...@gmail.com> wrote:
> Thanks Larry for checking on this. Actually its still not working. I
> should have been more specific about which KMLs aren't working. The
> Hiking and the Equestrian KMLs aren't loading. Last week on Friday
> Hiking magically started working, but now it is not. They all worked
> fine up until last week. I've tried changing between the different
> versions 3.2 --> 3.5. It wouldn't even load the map using 3.2 and I
> didn't notice a difference between 3.3, 3.4 and 3.5.
>
> Here are the KML locations --

[works] http://daviscountyutah.gov/trails/trailheads17.kml
[doesn't] http://daviscountyutah.gov/trails/trails_proposed4.kml
[doesn't] http://daviscountyutah.gov/trails/trails_equestrian.kml
[doesn't] http://daviscountyutah.gov/trails/trails_hiking.kml
[doesn't] http://daviscountyutah.gov/trails/trails_motorized.kml
[doesn't] http://daviscountyutah.gov/trails/trails_class1d.kml
[works] http://daviscountyutah.gov/trails/trails_class2.kml
[works] http://daviscountyutah.gov/trails/trails_class3.kml

Some of them work, most don't. Seems to be the ones that contain lots
of polylines that have issues. Hiding and showing and loading again, I
was able to see the "motorized" layer, but seemed pretty sporadic.

The kml processing is done server side, and if the API version doesn't
affect the issue, it is probably a change in the server side kml
processing (we have no insight into when that changes).



>
> Larry was it taking a long time for the Overlays to load? They used to
> load almost immediately now it takes 20 seconds or so.

Not that I noticed.

-- Larry

daviscounty

unread,
May 16, 2011, 6:19:04 PM5/16/11
to Google Maps JavaScript API v3
I haven't used anything. Do you have any recommendations? I'm not
certain where to start or what types of things to look for.

On May 16, 4:00 pm, en4ce <djen...@googlemail.com> wrote:
> wow, that was slow...i thought there is nothing in the map for quite a
> minute or so...did you use a debugger?
>
> On 16 Mai, 23:23, daviscounty <rtaus...@gmail.com> wrote:
>
> > Thanks Larry for checking on this. Actually its still not working. I
> > should have been more specific about which KMLs aren't working. The
> > Hiking and the Equestrian KMLs aren't loading. Last week on Friday
> > Hiking magically started working, but now it is not. They all worked
> > fine up until last week. I've tried changing between the different
> > versions 3.2 --> 3.5. It wouldn't even load the map using 3.2 and I
> > didn't notice a difference between 3.3, 3.4 and 3.5.
>
> > Here are the KML locations --http://daviscountyutah.gov/trails/trailheads17.kmlhttp://daviscountyu...

geoco...@gmail.com

unread,
May 16, 2011, 6:26:04 PM5/16/11
to Google Maps JavaScript API v3
On May 16, 3:00 pm, en4ce <djen...@googlemail.com> wrote:
> wow, that was slow...i thought there is nothing in the map for quite a
> minute or so...did you use a debugger?

I just tried it again, and this time it did take a really long time to
show the markers (opening the map in a new tab in Firefox).

-- Larry

>
> On 16 Mai, 23:23, daviscounty <rtaus...@gmail.com> wrote:
>
> > Thanks Larry for checking on this. Actually its still not working. I
> > should have been more specific about which KMLs aren't working. The
> > Hiking and the Equestrian KMLs aren't loading. Last week on Friday
> > Hiking magically started working, but now it is not. They all worked
> > fine up until last week. I've tried changing between the different
> > versions 3.2 --> 3.5. It wouldn't even load the map using 3.2 and I
> > didn't notice a difference between 3.3, 3.4 and 3.5.
>
> > Here are the KML locations --http://daviscountyutah.gov/trails/trailheads17.kmlhttp://daviscountyu...

Chris Broadfoot

unread,
May 17, 2011, 12:26:42 AM5/17/11
to google-map...@googlegroups.com
We haven't changed anything on the server side.

The problem here is that your KML loads too slowly:

real 0m39.879s

I gather that there's some slowdown on your web host that's causing these issues.

Chris

--
http://twitter.com/broady

Joseph Elfelt

unread,
May 17, 2011, 8:23:40 AM5/17/11
to Google Maps JavaScript API v3
I tried to use my map viewer to display your file
trails_proposed4.kml by reading that file from your server.
http://www.mappingsupport.com/p/gmap4.php?q=http://daviscountyutah.gov/trails/trails_proposed4.kml
The map failed to display.

I then loaded that kml file onto my server and the map displayed fine:
http://www.mappingsupport.com/p/gmap4.php?q=http://www.mappingsupport.com/test/trails_proposed4.kml

daviscounty

unread,
May 17, 2011, 9:34:25 AM5/17/11
to Google Maps JavaScript API v3
Joseph thanks for testing that out. Does the equestrian kml pull up
fine in your site? http://daviscountyutah.gov/trails/trails_equestrian.kml
That was the one that wouldn't even show up for me.

On May 17, 6:23 am, Joseph Elfelt <josephelf...@gmail.com> wrote:
> I tried to use my map viewer to display your file
> trails_proposed4.kml  by reading that file from your server.http://www.mappingsupport.com/p/gmap4.php?q=http://daviscountyutah.go...
> The map failed to display.
>
> I then loaded that kml file onto my server and the map displayed fine:http://www.mappingsupport.com/p/gmap4.php?q=http://www.mappingsupport...

Joseph Elfelt

unread,
May 17, 2011, 10:44:03 AM5/17/11
to Google Maps JavaScript API v3
You can use my app (Gmap4) and test any kml/kmz file yourself (plus
some other file formats)

Gmap4 is a general purpose map viewer.
It can display any valid KML file that is (1) online, (2) does not
exceed the size limits imposed by Google and (3) has a proper path.
By "proper path" I mean no spaces, special characters, etc.

Here's the basic syntax:
http://www.mappingsupport.com/p/gmap4.php?q=url_to_your_file

Stick in your file url and then paste that string into a browser bar.

Homepage: http://www.mappingsupport.com/p/gmap4.html

And just for fun, here's a map I made using the super simple file
syntax I recently developed.
This map tells part of the story about flooding on the lower
Mississippi.
http://www.mappingsupport.com/p/gmap4.php?q=https://sites.google.com/site/gmap4files/p/news/mississippi_course_change.txt&ll=30.417887,-91.201416&t=h&z=9&label=on

daviscounty

unread,
May 17, 2011, 11:09:30 AM5/17/11
to Google Maps JavaScript API v3
The site is magically working this morning...no changes to the
code...all the KMLs load and quickly to.

Thanks internet Gods!

On May 17, 8:44 am, Joseph Elfelt <josephelf...@gmail.com> wrote:
> You can use my app (Gmap4) and test any kml/kmz file yourself (plus
> some other file formats)
>
> Gmap4 is a general purpose map viewer.
> It can display any valid KML file that is (1) online, (2) does not
> exceed the size limits imposed by Google and  (3) has a proper path.
> By "proper path" I mean no spaces, special characters, etc.
>
> Here's the basic syntax:http://www.mappingsupport.com/p/gmap4.php?q=url_to_your_file
>
> Stick in your file url and then paste that string into a browser bar.
>
> Homepage:  http://www.mappingsupport.com/p/gmap4.html
>
> And just for fun, here's a map I made using the super simple file
> syntax I recently developed.
> This map tells part of the story about flooding on the lower
> Mississippi.http://www.mappingsupport.com/p/gmap4.php?q=https://sites.google.com/...
Reply all
Reply to author
Forward
0 new messages