Code Monkey home page Code Monkey logo

Comments (14)

vbudilov avatar vbudilov commented on July 17, 2024

Also, I'm using GWT v2.5.0.

from gwt-maps-v3-api.

branflake2267 avatar branflake2267 commented on July 17, 2024

Just to confirm, I see the $wnd.google.maps.places is undefined. Do you have the places js loaded in the ajax loader?

from gwt-maps-v3-api.

vbudilov avatar vbudilov commented on July 17, 2024

You're right, I might have missed it. I'll check once I'm home. Thanks!

from gwt-maps-v3-api.

branflake2267 avatar branflake2267 commented on July 17, 2024

Sounds good. Let me know if that fixes it. :)

from gwt-maps-v3-api.

vbudilov avatar vbudilov commented on July 17, 2024

Fixed :) But I found a potential bug in the autocomplete functionality :) When I use autocomplete in a PopupPanel I cannot select any of the autocomplete options with the mouse, only with the keyboard. I've tested this thoroughly by putting the same exact code outside of the PopupPanel and mouse selections work. I also put your example in the PopupPanel and I get the same behavior -- mouse selections are unresponsive (putting it outside the PopupPanel works).

from gwt-maps-v3-api.

branflake2267 avatar branflake2267 commented on July 17, 2024

GWT has several issues open with popup panel, I wonder if one of them applies. Do you have modal enabled/disabled?

from gwt-maps-v3-api.

vbudilov avatar vbudilov commented on July 17, 2024

Yes, that was it! I just set 'modal' to false and it started working. I guess it's a GWT PopupPanel issue, rather than gwt-maps one.

from gwt-maps-v3-api.

branflake2267 avatar branflake2267 commented on July 17, 2024

Can I close this?

from gwt-maps-v3-api.

vbudilov avatar vbudilov commented on July 17, 2024

I'll close it. Thanks for your help! :)

from gwt-maps-v3-api.

branflake2267 avatar branflake2267 commented on July 17, 2024

Good job.

from gwt-maps-v3-api.

zoewangss avatar zoewangss commented on July 17, 2024

Hi odessutv,
How did you actually load the missing places library with ajax loader?
Thanks in advance!

from gwt-maps-v3-api.

branflake2267 avatar branflake2267 commented on July 17, 2024

This is how the Places is added to the loader.

https://github.com/branflake2267/GWT-Maps-V3-Api/blob/master/gwt-maps-showcase/src/main/java/com/google/gwt/maps/testing/client/Showcase.java#L76

from gwt-maps-v3-api.

zoewangss avatar zoewangss commented on July 17, 2024

Thank you!

from gwt-maps-v3-api.

aouskaroui avatar aouskaroui commented on July 17, 2024

Hello, thanks for all this great information.
I just have another request, is it possible to add manually the places library in the ajaxloader within the GoogleMap jar ?
Actually, I have a problem with the LoadMapApi() method. Strangely, I am able to load the map just with the draw method. Still, I can't make the Autocomplete feature work and I get the error
"com.google.gwt.core.client.JavaScriptException $wnd.google.maps.places is undefined"

Thanks for any help.

from gwt-maps-v3-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.