Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to create PlacesService object - /example/10-places/place-search failing #32

Closed
alextekartik opened this issue Jun 15, 2015 · 3 comments

Comments

@alextekartik
Copy link

I was getting "Uncaught TypeError: undefined is not a function" in my after creating a PlacesService object. After looking carefully on my side, I noticed the same happen in some code examples.
If you take a look at /example/10-places/place-search/page.dart, you'll see that the example is no longer working and the error is thrown (final service = new PlacesService(map); is causing the error asynchronously)

@alextekartik
Copy link
Author

Reverting to google map 2.0.7 works fine in my code (minus some minor API change in textSearch)

@a14n
Copy link
Owner

a14n commented Jun 16, 2015

Thanks for the report.

That seems to be a problem with objects having a constructor accepting union types. PlacesService(dynamic /*HTMLDivElement|GMap*/ attrContainer) here.

I will try to publish a fix quickly.

@a14n
Copy link
Owner

a14n commented Jun 16, 2015

Fixed by e5cbfc5.

Published in version 3.0.2

@a14n a14n closed this as completed Jun 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants