ug, how embarrassing... sometimes its a wonder I get out of bed in the 
morning...

Funny that localhost didn't complain though?

Thanks for all your help!


On Saturday, June 2, 2012 12:48:48 PM UTC-7, [email protected] wrote:
>
> On Jun 2, 12:25 pm, "[email protected]" <[email protected]> 
> wrote: 
> > On Jun 2, 11:52 am, Mapper99 <[email protected]> wrote: 
> > 
> > > Ahh...I see.  I actually ran into the same problem on another project! 
>  I 
> > > added the var before the variable and, all works well on localhost. 
>  The 
> > > minute I try on the server, it still crashes! 
> > 
> > >http://laudontech.com/temp2/papapumpfinal/papapump-planner.html 
> > 
> > > Mind boggling. 
> > 
> > If you want my guess, you didn't fix the "dangling comma" in your 
> > array: 
> > 
> >                 var connectTheDots = [ 
> >                         marker1.getPosition(), 
> >                         marker2.getPosition(), 
> >                         marker3.getPosition(),  // <------- "dangling 
> comma", bad in IE 
> > 
> >                 ]; 
>
> http://www.geocodezip.com/laudontech_com_papapump-planner_20120602a.html 
>
>    -- Larry 
>
>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > M 
> > 
> > > On Thursday, May 31, 2012 10:55:51 PM UTC-7, [email protected]: 
> > 
> > > > On May 31, 5:30 am, "[email protected]" <[email protected]> 
> > > > wrote: 
> > > > > On May 30, 11:42 pm, Mapper99 <[email protected]> wrote: 
> > 
> > > > > > Any idea why this code does not work in IE? 
> > 
> > > > > Not with the error messages I have seen: 
> > 
> > > > > Message: Object doesn't support this property or method 
> > > > > Line: 293 
> > > > > Char: 3 
> > > > > Code: 0 
> > > > > URI:
> http://www.geocodezip.com/laudontech_com_papapump-plannerA.html 
> > 
> > > > > I haven't had a chance to look at the problem on a computer that 
> has a 
> > > > > debugger for IE.  I will when I can, but it might be a while (the 
> > > > > weekend). 
> > 
> > > > Fixed. It was the element/variable "staticMapURL".  In IE if you 
> don't 
> > > > declare javascript variables that have the same name as HTML element 
> > > > ids, IE creates a variable for you with the element id, that 
> variable 
> > > > can't be a string. 
> > 
> > > > See: 
> > > >http://www.geocodezip.com/laudontech_com_papapump-plannerA.html 
> > 
> > > >   -- Larry 
> > 
> > > > >   -- Larry 
> > 
> > > > > > On Wednesday, May 30, 2012 10:15:06 PM UTC-7, 
> [email protected]: 
> > 
> > > > > > > On May 30, 10:05 pm, "[email protected]" <
> [email protected]> 
> > > > > > > wrote: 
> > > > > > > > On May 30, 7:30 pm, Mapper99 <[email protected]> wrote: 
> > 
> > > > > > > > > Hmmm..I did listen to the map projection event and indeed 
> it is 
> > > > > > > defined. 
> > > > > > > > >  The code that is failing I think has to do with the 
> point... 
> > 
> > > > > > > > > I uploaded a sample here: 
> > 
> > > > > > > > >http://laudontech.com/temp2/badcode/papapump-planner.html 
> > 
> > > > > > > > > You need to click on each of the icons on the right of the 
> map 
> > > > > > > > > then click the done button at the very bottom of the page 
> > > > > > > > > Click done once, error occurs.  Click done again, and all 
> is 
> > > > well 
> > 
> > > > > > > > > Very strange! 
> > 
> > > > > > > > Reading the documentation: 
> > 
> > > >
> https://developers.google.com/maps/documentation/javascript/reference... 
> > 
> > > > > > > > google.maps.MapCanvasProjection object 
> > 
> > > > > > > > This object is made available to the OverlayView from within 
> the 
> > > > draw 
> > > > > > > > method. It is not guaranteed to be initialized until draw is 
> > > > called. 
> > 
> > > > > > > > looks you need to call draw before you use the projection. 
> > 
> > > > > > > This seems to work: 
> > > > > > >http://www.geocodezip.com/laudontech_com_papapump-plannerA.html 
> > > > > > > (except in IE) 
> > 
> > > > > > >    -- Larry 
> > 
> > > > > > > > > On Wednesday, May 30, 2012 5:08:16 AM UTC-7, 
> > > > [email protected]: 
> > 
> > > > > > > > > > On May 29, 11:26 pm, Mapper99 <[email protected]> 
> wrote: 
> > > > > > > > > > > I am using some wonderful code to draw arrow on line 
> > > > segments 
> > > > > > > thanks to 
> > > > > > > > > > > this code from Bill Chadwick: 
> > 
> > > > > > > > > > >http://wtp2.appspot.com/ArrowLine.htm 
> > 
> > > > > > > > > > > The problem is I need to call the function twice for 
> the 
> > > > arrows to 
> > > > > > > > > > appear. 
> > > > > > > > > > >  The first time I call the code I get this error: 
> > 
> > > > > > > > > > > this.prj is undefined 
> > 
> > > > > > > > > > > var p1 = 
> > > > > > > this.prj.fromLatLngToContainerPixel(this.points[0]);//first 
> > > > > > > > > > point 
> > 
> > > > > > > > > > > This is the code I am using to call the function: 
> > 
> > > > > > > > > > > var connectTheDots = [ 
> > > > > > > > > > > marker1.getPosition(), 
> > > > > > > > > > > marker2.getPosition(), 
> > > > > > > > > > > marker3.getPosition(), 
> > > > > > > > > > > ]; 
> > 
> > > > > > > > > > > var poly1 = new 
> > 
> > > > 
> BDCCArrowedPolyline(connectTheDots,"blue",4,0.3,null,30,7,"#0000FF",2,0.5); 
> > 
> > > > > > > > > > > Any idea why this code fails the first time? 
>  this.points[0] 
> > > > > > > indeed is a 
> > > > > > > > > > > valid object. 
> > 
> > > > > > > > > > The v3 API is event driven. 
> > 
> > > > > > > > > > Has the projection been initialized the first time it is 
> used? 
> > > >  You 
> > > > > > > > > > may have to wait for an event that tells you it has been 
> > > > initialized 
> > > > > > > > > > before using it. 
> > 
> > > > > > > > > > From the documentation: 
> > > > > > > > > > getProjection() 
> > > > > > > > > > Projection 
> > > > > > > > > > Returns the current Projection. 
> > > > > > > > > > If the map is not yet initialized (i.e. the mapType is 
> still 
> > > > null) 
> > > > > > > > > > then the result is null. Listen to projection_changed 
> and 
> > > > check its 
> > > > > > > > > > value to ensure it is not null. 
> > 
> > > > > > > > > >   -- Larry 
> > 
> > > > > > > > > > > Thanks in advance, 
> > 
> > > > > > > > > > > Mapper99 
> > > > > > > > > On Wednesday, May 30, 2012 5:08:16 AM UTC-7, 
> > > > [email protected]: 
> > 
> > > > > > > > > > On May 29, 11:26 pm, Mapper99 <[email protected]> 
> wrote: 
> > > > > > > > > > > I am using some wonderful code to draw arrow on line 
> > > > segments 
> > > > > > > thanks to 
> > > > > > > > > > > this code from Bill Chadwick: 
> > 
> > > > > > > > > > >http://wtp2.appspot.com/ArrowLine.htm 
> > 
> > > > > > > > > > > The problem is I need to call the function twice for 
> the 
> > > > arrows to 
> > > > > > > > > > appear. 
> > > > > > > > > > >  The first time I call the code I get this error: 
> > 
> > > > > > > > > > > this.prj is undefined 
> > 
> > > > > > > > > > > var p1 = 
> > > > > > > this.prj.fromLatLngToContainerPixel(this.points[0]);//first 
> > > > > > > > > > point 
> > 
> > > > > > > > > > > This is the code I am using to call the function: 
> > 
> > > > > > > > > > > var connectTheDots = [ 
> > > > > > > > > > > marker1.getPosition(), 
> > > > > > > > > > > marker2.getPosition(), 
> > > > > > > > > > > marker3.getPosition(), 
> > > > > > > > > > > ]; 
> > 
> > > > > > > > > > > var poly1 = new 
> > 
> > > > 
> BDCCArrowedPolyline(connectTheDots,"blue",4,0.3,null,30,7,"#0000FF",2,0.5); 
> > 
> > > > > > > > > > > Any idea why this code fails the first time? 
>  this.points[0] 
> > > > > > > indeed is a 
> > > > > > > > > > > valid object. 
> > 
> > > > > > > > > > The v3 API is event driven. 
> > 
> > > > > > > > > > Has the projection been initialized the first time it is 
> used? 
> > > >  You 
> > > > > > > > > > may have to wait for an event that tells you it has been 
> > > > initialized 
> > > > > > > > > > before using it. 
> > 
> > > > > > > > > > From the documentation: 
> > > > > > > > > > getProjection() 
> > > > > > > > > > Projection 
> > > > > > > > > > Returns the current Projection. 
> > > > > > > > > > If the map is not yet initialized (i.e. the mapType is 
> still 
> > > > null) 
> > > > > > > > > > then the result is null. Listen to projection_changed 
> and 
> > > > check its 
> > > > > > > > > > value to ensure it is not null. 
> > 
> > > > > > > > > >   -- Larry 
> > 
> > > > > > > > > > > Thanks in advance, 
> > 
> > > > > > > > > > > Mapper99

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/Bwm6v3IivDUJ.
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-js-api-v3?hl=en.

Reply via email to