Andrew,

Thanks for your reply, when adding the cut polylines via
GMap2.addOverlay() it defiantly doesn't seem to clean up the Points
(Points/Pixels not LatLngs). I managed to write a method that cycled
through the LatLngs converted them to Points through the current
Projection/Zoom and compare it to the previous point, if not the same
add the LatLng to the simplified Polyline. Reduced Polylines from
~4000 vertexes to ~140 points (vertexes when converted back), which
sped things up by a few seconds under IE. Also cleaned a couple of
other methods, not perfect but getting there. Only issue is I have to
update it when the user zooms.

> Everyone is able to. Get some free hosting like Ralph's 
> athttp://www.easypagez.com
> and put up an anonymised page which demonstrates the problem. You
> might like to review this 
> page:http://groups.google.com/group/google-maps-api/web/why-including-a-li...

Sorry, it wasn't a matter of hosting and I couldn't anonymise the code
in the current time restraints (tomorrow morning and current Class is
around ~1200 lines).

Regards,
Mark W

On Apr 6, 6:56 pm, Andrew Leach <[email protected]> wrote:
> On Apr 6, 5:36 am, Mark W <[email protected]> wrote:
>
>
>
> > The problem occurs under IE when I try and add the Overlay, it takes
> > x10 as long as FF/Chrome to render the Polyline segments to the Map. I
> > have been trying to optimise my Javascript all day as I thought that
> > may be the issue, but I came across the SVG data in Firefox and saw a
> > lot of duplicate data, eg. Maps was duplicating the same SVG point
> > multiple times (10 - 20 times in fact).
>
> > Any chance under IE that the VML code would be the same, duplicate
> > points which aren't required which would cause the performance hit
> > when trying to render the polyline?
>
> Possibly -- even probably -- but no-one else has reported this. There
> would seem to be no reason for directions to duplicate points; what
> are you doing?
>
> > I know one of the rules is I need to post code, but I am painted into
> > a corner here as I am unable to.
>
> Everyone is able to. Get some free hosting like Ralph's 
> athttp://www.easypagez.com
> and put up an anonymised page which demonstrates the problem. You
> might like to review this 
> page:http://groups.google.com/group/google-maps-api/web/why-including-a-li...

-- 
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