On Nov 21, 11:07 am, Craig <[email protected]> wrote:
> Thanks for pointing that out. I'll switch over to v2.
>
> That didn't fix the problem however. I couldn't understand why yours
> worked but mine didn't, so I tried copying the script from your site
> to mine. That fixed it!!
>
> Not entirely sure why, as it's the same.
Look closer. I made at least 3 changes (I'm not sure which fixed it,
but I suspect the GXml.value):
1. GXml.value instead of the browser dependent nodeValue
var encodedPoints = GXml.value(pointsNode[0]);
var encodedPoints = pointsNode[0].childNodes[0].nodeValue;
2. called parseInt on encodedZoomFactor
var encodedZoomFactor = parseInt(encodedNode[0].getAttribute
("zoomFactor"));
3. called parseInt on encodedNumLevels
var encodedNumLevels = parseInt(encodedNode[0].getAttribute
("numLevels"));
-- Larry
> But i must have had some bad
> formatting in my script or something.
>
> it works though - thank you!
>
> On Nov 21, 12:15 am, "[email protected]" <[email protected]>
> wrote:
>
> > On Nov 20, 5:57 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Nov 20, 3:29 pm, Craig <[email protected]> wrote:
>
> > > > Anybody?
>
> > > > Why does this encoded polyline draw correctly in all browsers but
> > > > Firefox?http://tinyurl.com/yaadyub
>
> > > > I'm totally stumped...starting to think it might be a gmaps bug.
>
> > > Have you tried different API versions?
> > > Currently the page uses 2.x (the bleeding edge)
> > > 2 would be less likely to contain bugs
> > > 2.s is the "stable" version
> > > or you can hardcode a version
>
> > >http://code.google.com/apis/maps/documentation/index.html#API_Updates
>
> >http://www.geocodezip.com/freshsnow_info_road_conditionsE_g.html
>
> > -- Larry
>
> > > > Thanks
--
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=.