-
Notifications
You must be signed in to change notification settings - Fork 187
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
Problem with using Autocomplete and Map on same page #87
Comments
Do you use both as async? |
yes
|
Unfortunately, this is a known limitation which will be fixed in the next major release... I have explained a workaround (pretty complicated) in egeloen/IvoryGoogleMapBundle#96 |
Hey egeloen, do you have an timing for the next major release? |
@caramba1337 Basically, I have created egeloen/ivory-http-adapter in order to replace widop/http-adapter for the google map library in the middle of my refacto. This is mainly why it takes some more time to refactor. Anyway, It is well advanced but not fully finished (I have one part to refactor/finish and obviously, I have to rewrite the doc). It should not take me a long time to finish, so I hope in the next weeks, it will be available in a dedicated branch, then you can try it and give me some feedbacks :) Btw, this issue is already fixed in my refacto (You will be able to use as many maps/autocompletes you want in a single page) |
@egeloen Thank you for the information. |
Your issue has been fixed by #134 but will only be part of the 2.x version. |
Is there a way to have both a map with markers etc as well as an autocomplete places form on the same page? I can get either one to work but not together.
I get "Uncaught TypeError: undefined is not a function" which is probably due to a collision. I see the '<script type="text/javascript" src="//www.google.com/jsapi?callback=load_ivory_google_map_api"></script>' is in there twice and a function "function load_ivory_google_map_api ()" is declared twice with different content.
I am using the following on the page:
{{}} are Laravel's blade echo statements.
I am using this in a Laravel project via composer ("egeloen/google-map": "1.4.*@dev")
The text was updated successfully, but these errors were encountered: