-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Names of nations not recognized in autosearch #2186
Comments
Hi, this is part of our Leaflet plugin leaflet-blurred-location:
https://github.com/publiclab/leaflet-blurred-location
we're using Google geocoding so this may be a limitation or setting of
Google's API:
https://github.com/publiclab/leaflet-blurred-location/blob/e802cdf2cd4d8c7be69cca69f96327f4bc9a1346/src/blurredLocation.js#L73
Here's the raw request:
https://maps.googleapis.com/maps/api/geocode/json?address=Germany
It seems to return a location. Can anyone confirm that the form is making
this exact request when "Germany" is typed in?
It's probably worth copying this into a new issue on
leaflet-blurred-location instead of here. Thanks!
…On Jan 31, 2018 11:39 AM, "Liz Barry" ***@***.***> wrote:
Please describe the problem
What happened just before the problem occurred?
My goal was to location tag someone's profile with the nation that they
specified in their bio, this case, Germany.
What did you expect to see that you didn't?
I typed Germany into the search box, and nothing happened. Are nations not
searchable?
Next i tried to zoom in to manually choose the country, and i can't figure
out which box to choose, but that's a different problem!
[image: geographic-tagging-zoom-levels]
<https://user-images.githubusercontent.com/161439/35643450-4b593b0a-0694-11e8-8041-a589403a03a7.gif>
Please show us where to look
any profile page, for instance, you can test on mine
publiclab.org/people/liz
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2186>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJw8HqbD5FQVtAm8ESJINcP36vh9dks5tQMFggaJpZM4R0iDE>
.
|
@jywarren @ebarry Yesterday I have also encountered the same problem. When you type in the country or state, the map does not automatically shows that typed in location. |
Thank you again for all your work @mridulnagpal ! This feature is elegant, and i love using it. I'm wondering about typing place names, and if we should expect that any placename that has a search result in Google Maps would also have a search result in our location tagging system? I found that when i type in |
It also seems like there's an issue with the dropdown autocompletion - the demo properly shows suggestions: https://publiclab.github.io/leaflet-blurred-location/examples/ But i see errors on the PublicLab.org implementation:
|
And no dropdown. |
@Souravirus did I see you potentially found a solution to this? We're a bit stuck on it -- maybe we need to compare the exact HTML from the original example: https://publiclab.github.io/leaflet-blurred-location/examples/ to the DOM in PublicLab.org: https://github.com/publiclab/plots2/blob/master/app/views/locations/_form.html.erb to see if there's something missing. Or maybe it's that the Google geocoding div is loaded with the page, but when a modal is asynchronously loaded, it happens /after/ the google library? |
I think this is 2 separate issues. One is an API rate overage:
The second is that the auto-suggest system is not displaying a list of suggested places the way I screenshotted above. for that, i'm not sure but maybe it does have to do with the load order of the Google API code and the modal dialog. |
These lines set up the autocomplete: |
I think it should be possible to figure this one out ahead of then, to be optimistic! Possibly if one of our new contributors or @publiclab/reviewers with some JavaScript experience would be able to tackle this one? |
Hi jeff , i would love to see this one also...will ping you if i need help
:)
…On 22 Feb 2018 3:11 am, "Jeffrey Warren" ***@***.***> wrote:
I think it should be possible to figure this one out ahead of then, to be
optimistic! Possibly if one of our new contributors or
@publiclab/reviewers <https://github.com/orgs/publiclab/teams/reviewers>
with some JavaScript experience would be able to tackle this one?
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#2186 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOQoxc7WR9scDwqAVUT_dvuDBE7yAhTJks5tXI2BgaJpZM4R0iDE>
.
|
Finally found the problem here ❤️ 😄 ! |
After hours of experimenting with code ! |
This is awesome. :-) 👍 🎈 🚄 |
This was indeed a tricky one ! Thank you 😄 :) |
Related to the Geographic Features project #1416
Please describe the problem
My goal was to location tag someone's profile with the nation that they specified in their bio, this case, Germany.
I typed Germany into the search box, and nothing happened. Are nations not searchable?
Next i tried to zoom in to manually choose the country, and i can't figure out which box to choose, but that's a different problem!
Please show us where to look
any profile page, for instance, you can test on mine publiclab.org/people/liz
The text was updated successfully, but these errors were encountered: