-
Notifications
You must be signed in to change notification settings - Fork 63
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
Display place details #182
Comments
Hi, @jkwening, I'd like to try to implement this, can I work on it? |
@turisap certainly, go for it. It's assigned to you. Thanks. |
@jkwening, I'm experiencing problems with the application, could you please help me out? As I new to this project, I set up everything in accordance with instructions and then run |
@turisap we have a service worker implemented, so its probably caching the main bundle.js module where the primary code logic is embedded. You probably just need to set the service worker tool to "update on reload" to allow it to automatically sync new changes via dev tools. Else, have your tried clearing out all site data via "Application" and then "Clear Storarge" in dev tools? |
@jkwening, your advice did help! So it's working now. Thank you) I've got a couple of questions regarding how to make this component, can you answer them?
and, according to the docs in order to get an image I need to make another request with
I guess it would not work if I store file in component's state. Probably I don't need to do that and image will be obtained through back-end somehow and I don't need to do everything I've done? |
@turisap sorry for just getting back to you - completely missed this in my inbox. Here's my response in order of your questions:
Additional notes:
@motosharpley I see a branch called "gmap-places" - I assume we want to use that for this feature or is that for something else? I can make a new branch if that is the case. |
@jkwening we should make a new branch I just created that gmap-places branch to preserve the code from the google implementation before refactoring it out for leaflet in case someone wanted it |
@turisap I've create a feature branch called "place-details" that we will use for this issue until its complete and ready to be merged into "development" branch. Did my response answer your questions? |
@jkwening, yes, thank you for the exhaustive answer, it is much clearer now. I'll proceed then with full-screen mode component in my PR soon. |
@jkwening, sorry, it looks like I need to ask a couple of more questions.. I followed your advice and went to The second question is that for obtaining place info from back-end I need a |
@turisap regarding requests to the backend server, you're heading in the right direction; please utilize The example you provided is slightly off, the
You got the method correct but are passing incorrect "baseEndPoint" arguments. For getting place details, the base endpoint is "/search/places" or you could use For getting google specific place_id string, you've hit on an upcoming issue we need to resolve. For locations identified via search, the place_id value is returned as part of the result and is stored as part of the search result prediction list (see declared state values in constructor of: |
@jkwening, thank you for the explicit answer, it helped me a lot :-) |
…ails/TheDevPath#182 mergin master to place-details
Create a component for displaying details about a place.
It should have two view modes:
The text was updated successfully, but these errors were encountered: