Hi , Please Define
var p1 = "" ; and then check it .... On Wed, May 30, 2012 at 11:56 AM, 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. > > 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/-/iuSt5TjOCxcJ. > 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. > -- Regards Rahul S.Ghige Cell: +91-9822503856 Email: [email protected] Development Team, E-Dreamztech Pvt Ltd., Pune -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
