Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Disappearing polyline?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
muirstravel@googlemail.co m  
View profile  
 More options Oct 23, 2:45 pm
From: "muirstra...@googlemail.com" <gor...@vehicletrackingdirect.com>
Date: Fri, 23 Oct 2009 11:45:31 -0700 (PDT)
Local: Fri, Oct 23 2009 2:45 pm
Subject: Disappearing polyline?
I wonder if anyone can help me find out why my polyline disappears
after zooming right out and back in again? The points remain but the
polyline disappears.

http://80.176.208.244/cycle/downloads/1/gmap.php

Thanks

Gordon


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcelo  
View profile  
 More options Oct 23, 3:02 pm
From: Marcelo <marcelo...@hotmail.com>
Date: Fri, 23 Oct 2009 12:02:24 -0700 (PDT)
Local: Fri, Oct 23 2009 3:02 pm
Subject: Re: Disappearing polyline?
I don't see the points disappear, (Firefox 2), but there is another
problem, and that is that you're asking the browser to do way more
work than necessary.

You're calling the function getAltitude() maxNodes times, and that is
100 times GDownloadUrl()!
You could send all points in one call, as POST data, and get back a
long comma separated string that you split() into an array.Then you're
done with just one GDownloadUrl call.

Other than that, maybe I looked too quickly, but why are you calling
altitude.php if you already have the altitude in the GPX file, in the
field <ele></ele>?

--
Marcelo - http://maps.forum.nu
--

On Oct 23, 8:45 pm, "muirstra...@googlemail.com"


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcelo  
View profile  
 More options Oct 23, 3:03 pm
From: Marcelo <marcelo...@hotmail.com>
Date: Fri, 23 Oct 2009 12:03:59 -0700 (PDT)
Local: Fri, Oct 23 2009 3:03 pm
Subject: Re: Disappearing polyline?
On Oct 23, 9:02 pm, Marcelo <marcelo...@hotmail.com> wrote:

> I don't see the points disappear, (Firefox 2),

Sorry, I meant I don't see the *polyline* disappear! :-)

--
Marcelo - http://maps.forum.nu
--

 but there is another


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
muirstravel@googlemail.co m  
View profile  
 More options Oct 23, 3:27 pm
From: "muirstra...@googlemail.com" <gor...@vehicletrackingdirect.com>
Date: Fri, 23 Oct 2009 12:27:25 -0700 (PDT)
Local: Fri, Oct 23 2009 3:27 pm
Subject: Re: Disappearing polyline?
Hi Marcelo

I am using FF 3.5.3 and one of my friends was getting the same problem
using safari, it's weird but if I zoom out and then pan out of view
but then come back the polyline has gone but the points are there (I
know its an issue which is never likely to happen in real life but
wanted to try to get it right)

The reason I don't use the altitude info in the gpx file is that it is
so far from correct it is useless unfortunately.

I'll have a look at my GDownloadUrl call and try to change it although
I am not particularly skilled in javascript but I am trying!

Thanks

Gordon

On Oct 23, 8:03 pm, Marcelo <marcelo...@hotmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcelo  
View profile  
 More options Oct 23, 4:23 pm
From: Marcelo <marcelo...@hotmail.com>
Date: Fri, 23 Oct 2009 13:23:09 -0700 (PDT)
Local: Fri, Oct 23 2009 4:23 pm
Subject: Re: Disappearing polyline?
Well, I still cannot get the line to disappear, but it could be
because you're making the browser do so much work.

Aside from the 100 calls to altitude.php you are also calling Google
Charts 100 times! That's 200 http requests before your map can render,
where you could be doing the same with just 2 calls.

Try reorganizing the strategy:
-- First read the GPX, and append each lat/lon's to a string with some
separator.
-- When that loop has completed call altitude.php once, with that long
string of lat/lon's as parameter. Use the POST method if the string is
too long.
-- Let PHP split the string into individual points, look up the
altitudes, wherever it does that, and return one long string of
altitudes.
-- Use plain text rather than XML to return results from PHP.
-- Then call Google Charts only once, with that long string of
altitudes.

That's just an overview of a strategy that should allow your page to
load about 100 times faster.
Give it a try and see if the polylines start behaving.

--
Marcelo - http://maps.forum.nu
--

On Oct 23, 9:27 pm, "muirstra...@googlemail.com"


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
muirstravel@googlemail.co m  
View profile  
 More options Oct 23, 4:35 pm
From: "muirstra...@googlemail.com" <gor...@vehicletrackingdirect.com>
Date: Fri, 23 Oct 2009 13:35:15 -0700 (PDT)
Local: Fri, Oct 23 2009 4:35 pm
Subject: Re: Disappearing polyline?
Hi Marcelo

I see your point on the altitude being requested 100 times and if I
get a string back then I will be able to send it without the loop to
get the values for google chart.

However I think I am just sending I call to chart as I really just
send this url

http://chart.apis.google.com/chart?cht=ls&chs=400x100&chco=000000&chm...

and I get the chart back as an image.

I'll certainly have a crack at changing the altitude request method.

Thanks for your time and help

Cheers

Gordon

On Oct 23, 9:23 pm, Marcelo <marcelo...@hotmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davepar  
View profile  
 More options Oct 30, 11:43 am
From: Davepar <dualrud...@gmail.com>
Date: Fri, 30 Oct 2009 08:43:16 -0700 (PDT)
Local: Fri, Oct 30 2009 11:43 am
Subject: Re: Disappearing polyline?
I'm getting a report of this same problem from one of my users who is
on IE7. He says the polyline is disappearing at every other level as
he zooms in or out. I can't reproduce the problem with Firefox or IE8,
but will try it on IE7 this weekend.

Did you find a solution Gordon?

This link will display a route polyline on my site:
http://www.runwayfinder.com/?loc=sea;pdx

Dave

On Oct 23, 1:35 pm, "muirstra...@googlemail.com"


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gordon Muir  
View profile  
 More options Oct 30, 1:22 pm
From: "Gordon Muir" <gor...@ruraldevtrust.co.uk>
Date: Fri, 30 Oct 2009 17:22:20 -0000
Local: Fri, Oct 30 2009 1:22 pm
Subject: RE: Disappearing polyline?
Dave

I never really tried for a solution I just took your advice and I am working
on cutting down the work the server has to do hoping that this will cure it.

I tried yours with FF and IE (latest versions) and couldn't get the line to
disappear.

Sorry I couldn't be of more help.

Gordon


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dennis  
View profile  
 More options Nov 5, 3:57 am
From: Dennis <d.goryac...@gmail.com>
Date: Thu, 5 Nov 2009 00:57:43 -0800 (PST)
Local: Thurs, Nov 5 2009 3:57 am
Subject: Re: Disappearing polyline?

Same problem, FF 3.5.4 on Linux :(

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian P  
View profile  
 More options Nov 6, 11:27 am
From: Brian P <brianpey...@gmail.com>
Date: Fri, 6 Nov 2009 08:27:49 -0800 (PST)
Local: Fri, Nov 6 2009 11:27 am
Subject: Re: Disappearing polyline?
Hmm I'm using FF 3.5.4 on Linux (Ubuntu Karmic Koala 9.10) and I don't
see any problem. Polyline and points stay visible for me. I wonder if
it's related to network performance--maybe it fails for those with
slower connections? Maybe Marcelo is on he right track here.

-Brian

On Nov 5, 3:57 am, Dennis <d.goryac...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davepar  
View profile  
 More options Nov 8, 10:21 pm
From: Davepar <dualrud...@gmail.com>
Date: Sun, 8 Nov 2009 19:21:41 -0800 (PST)
Local: Sun, Nov 8 2009 10:21 pm
Subject: Re: Disappearing polyline?
The problem is related to changes in the map script. I went back to
2.164, and the problem is fixed for me.

Dave


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Denis Goryachev  
View profile  
 More options Nov 9, 3:34 am
From: Denis Goryachev <d.goryac...@gmail.com>
Date: Mon, 9 Nov 2009 10:34:43 +0200
Local: Mon, Nov 9 2009 3:34 am
Subject: Re: Disappearing polyline?

There is relatively simple algorithm for link
http://80.176.208.244/cycle/downloads/1/gmap.php to see how polyline
disappear.
1) Zoom in map to maximum zoomlevel, to see only part of line.
2) Drag map along line, 5-6 times for me
3) Polyline disappears, but markers still visible
4) Zoom out map - no polyline at all :(

Tested in
1) Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
2) Mozilla/5.0 (X11; U; Linux i686 (x86_64); ru; rv:1.9.1.4) Gecko/20091016
Firefox/3.5.4
3) Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.3 (like Gecko)

I have same bug on my own pages, under certain conditions, but I can't make
test page now. Definitly it's not related with network performance, since i
see this bug only under certain conditions, and can bypass it, changing
scripts


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rossko  
View profile  
 More options Nov 9, 5:38 am
From: Rossko <ros...@culzean.clara.co.uk>
Date: Mon, 9 Nov 2009 02:38:18 -0800 (PST)
Local: Mon, Nov 9 2009 5:38 am
Subject: Re: Disappearing polyline?

> Tested in
> 1) Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
> 2) Mozilla/5.0 (X11; U; Linux i686 (x86_64); ru; rv:1.9.1.4) Gecko/20091016
> Firefox/3.5.4
> 3) Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.3 (like Gecko)

Unfortunately these aren't in the supported browser list
http://code.google.com/apis/maps/documentation/#Browser_Compatibility
that might even be because of rendering quirks.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google