-
Notifications
You must be signed in to change notification settings - Fork 113
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
PlacesService:radarSearch() added #179
base: master
Are you sure you want to change the base?
Conversation
* @param handler | ||
*/ | ||
public final native void radarSearch(PlaceSearchRequest request, PlaceSearchHandler handler) /*-{ | ||
var callback = function(results, status, pagination) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
Good job! Could you add a test case for he radar search? Is there other benefits to interfacing the layers? |
Please include only the commit about radarSearch() (commit b4d264b ). I will try to include use cases in your test for that. The other commit about Layer super type s wrong and it won't compile in GWT (an interface can be implemented only by ONE overlay type). I?m trying to revert it in my cloned repo - i'm just starting with git/github. IMHO it was a good idea because you can reference all the layers using the same supertype (for example putting several layer objects in the same collection and access them using the same interface). But unfortunately it seems we cannot "do polymorphism" with JSOs.More info https://groups.google.com/d/msg/google-web-toolkit/iu3GHi4nWK4/bVE-agIAe-kJ |
Could create a new branch and cherry pick that commit to it and ask for another pull? My first thought with the interface is it's a little overkill and I don't see the need for it other than code boil down. Thats why I asked if there was some other benefit other than making it easier to write the library. :) I like the idea. This api is already has a heavy inheritance structure with the MVC class wrapper. I tried to keep the wrapping to minimum and pass along some of it. :) |
Hi Brandon, while I'm looking information about how to "create a new branch and cherry pick that commit" (because I'm just starting with git), I added another commit to this pull request that
|
What I might do is create a new branch using egit with no merge off the master, be sure to fetch all changes first. Then copy and paste in the changes to it and pull a new request. I'm not a pro at git, so I haven't done a cherry pick yet, but I see others talking about it like its easy all the time. :) Or just delete the layer interface from your code and commit. #2 sounds like a good idea overloading the constructor. |
This looks good so far. Could you format the radar search? |
I'm on it, thanks for the patience ;) |
I don't mind at all... Great job! :) |
I've finally taken on conversion from maps 1.1 to 3.X, and am pretty tickled I'm curious, is it possible to remove a control from the map once you have If that's just a question of implementation, I might clone the repo and try to help. On 9 Apr,13, at 12:30, Brandon Donnelson wrote:
|
Thanks. Good question. It's been a while since I've done that but removing it should be like adding. |
radarSearch() and textSearch() in showcase's testing.maps.PlaceSearchMapWidget
as you can see I keep fixing some details I'm finding when developing my app based on this project. Hope this is not too untidy for you :) |
Looks good to me :) good job! |
Do you think you could catch this up so I could merge? |
Short of time these days but I will do it in the next 2 weeks - regards! |
added missing method radarSearch() in PlacesService