this.draw is not a function

1,185 views
Skip to first unread message

Georg Chernyshov

unread,
Jul 14, 2011, 5:14:08 AM7/14/11
to google-map...@googlegroups.com
Hello.

I've made a page, that uses google maps api and contain a map element.

Under firefox (5.0) and firebug I got error "this.draw is not a function" in main.js at lines 10 and 30.

As result of the error, changing scale and map movement (by mouse) is working only once.

What I am doing wrong?

Regards,
Georg.

geoco...@gmail.com

unread,
Jul 14, 2011, 7:42:59 AM7/14/11
to Google Maps JavaScript API v3
1. What is this?
2. Where is your map?
3. Have you read the posting guidelines?

-- Larry

>
> Regards,
> Georg.

Georg Chernyshov

unread,
Aug 10, 2011, 2:53:03 AM8/10/11
to Google Maps JavaScript API v3


On Jul 14, 3:42 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
Hello again.

I am sorry for not reading the rules first.

I am using v3 api.
Here is the link.
http://software.scanex.ru/ScanMagic/MapGoogleShortTest.htm
I am trying to work with Google Map through Active-X object but now
all this code is commented.
To repeat the problem you should double click on the map to increase
zoom. And then click again, but other clicks will do nothing.

In firebug I got error: this.draw is not a function in main.js file.

So, what I am doing wrong?

geoco...@gmail.com

unread,
Aug 10, 2011, 12:48:29 PM8/10/11
to Google Maps JavaScript API v3
On Aug 9, 11:53 pm, Georg Chernyshov <georgthegr...@gmail.com> wrote:
> On Jul 14, 3:42 pm, "geocode...@gmail.com" <geocode...@gmail.com>
> wrote:
>
>
>
> > On Jul 14, 2:14 am,GeorgChernyshov<georgthegr...@gmail.com> wrote:
>
> > > Hello.
>
> > > I've made a page, that uses google maps api and contain a map element.
>
> > > Under firefox (5.0) and firebug I got error "this.draw is not a function" in
> > > main.js at lines 10 and 30.
>
> > > As result of the error, changing scale and map movement (by mouse) is
> > > working only once.
>
> > > What I am doing wrong?
>
> > 1. What is this?
> > 2. Where is your map?
> > 3. Have you read the posting guidelines?
>
> >   -- Larry
>
> > > Regards,
> > >Georg.
>
> Hello again.
>
> I am sorry for not reading the rules first.
>
> I am using v3 api.
> Here is the link.http://software.scanex.ru/ScanMagic/MapGoogleShortTest.htm
> I am trying to work with Google Map through Active-X object but now
> all this code is commented.
> To repeat the problem you should double click on the map to increase
> zoom. And then click again, but other clicks will do nothing.
>
> In firebug I got error: this.draw is not a function in main.js file.
>
> So, what I am doing wrong?

What is this supposed to do?
overlayView = new google.maps.OverlayView();

The documentation says you need to implement a .draw method for it:

http://code.google.com/apis/maps/documentation/javascript/reference.html#OverlayView

I don't see that anywhere in your code.

-- Larry

Georg Chernyshov

unread,
Aug 12, 2011, 8:52:01 AM8/12/11
to Google Maps JavaScript API v3
Reply all
Reply to author
Forward
0 new messages