Skip to content
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

Can't get full location address #128

Open
jonalxh opened this issue Feb 13, 2018 · 6 comments
Open

Can't get full location address #128

jonalxh opened this issue Feb 13, 2018 · 6 comments

Comments

@jonalxh
Copy link

jonalxh commented Feb 13, 2018

Hi.
First of all congratulations for this amazing plugin, has saved me a lot of time.
I found your plugin in JQueryScript.net in the Binding UI with the widget example,
and what surprised me was that It showed me the correct location address when I picked my working place, look at the picture:

location

But When I downloaded the source code It just showed me the City and Country (not the full address with streets), I tried the same location (latitude: 4.709065169438229, longitude: -74.05234146118164) in your Github repository and it didn't work too, look at the second picture:

location2

I wanna know how to put it towork like the link I referenced before, cause it was the only one place where it worked.

Thanks a lot for your help.

@corvis
Copy link
Member

corvis commented Feb 13, 2018

Hi jonalxh,

Thank you for the kind words. The first thing which comes to mind is that it was broken some time. The page you're referring uses version 0.1.12 while the recent one is 0.1.16. I may suggest to downgrade and try it again.

@jonalxh
Copy link
Author

jonalxh commented Feb 13, 2018 via email

@jonalxh
Copy link
Author

jonalxh commented Feb 13, 2018 via email

@corvis
Copy link
Member

corvis commented Feb 13, 2018 via email

@jonalxh
Copy link
Author

jonalxh commented Feb 15, 2018

Hi again, i need a little of your help.

I wanna move the marker programatically enabling a Find Me button with HTML5 Geolocation, the idea is that by pressing the button, the map automatically moves to my current location, but I'm not able to move it, I've tried creating the map again and setting the container div to empty and creating the map again, but it doesn't work.
Looking your documentation I've seen that I can create a MapContext object, using the setCenter setting I've relocated the map, and with the setPosition setting I've moved the marker, but I dont know how to write the new position value in the address input.

Could you explain me, please, what's the correct way to do it?

@jonalxh
Copy link
Author

jonalxh commented Feb 15, 2018

According to the problem I was experiencing with the full address text, I can confirm that It was caused due the setting addressFormat: "postal_code", deleting or commenting this setting in .js file fixed the problem.

Im waiting your answer for the last question to incorporate HTML5 Geolocation and make a pull request and improve this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants