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

Set default map location #24

Open
dappi opened this issue May 24, 2015 · 9 comments
Open

Set default map location #24

dappi opened this issue May 24, 2015 · 9 comments

Comments

@dappi
Copy link

dappi commented May 24, 2015

Would it possible to add that it's possible to set default map location my wordpress filters or something? Now the default view is UK. I looked the code and if I understood correctly now it just set in js file, right?

@mustardBees
Copy link
Owner

Great idea. I'll add this in.

@mgratch
Copy link

mgratch commented Jul 3, 2015

I am pretty sure with the PR I suggested this would be possible.

@biggmouf
Copy link

How do I get the map to show United States and my listing become searchable?? http://6c5.69c.myftpupload.com/

@eriktelepovsky
Copy link

Any update with this? How can I set default map location without touching plugin source code?

@shaynesanderson-zz
Copy link

@eriktelepovsky In "cmb_field_map/js/script.js" you can adjust the latitude/longitude on line 15. That worked for me in order to set a default map view.

@eriktelepovsky
Copy link

@shaynesanderson I know where it is defined. But I don't want to modify original source code. I would like to change it dynamically for example using field settings.

@shaynesanderson-zz
Copy link

@eriktelepovsky Gotcha. I'd like the same, but just wanted to pass over the info that worked for me (at least for now, until something else gets put in place).

@drawcard
Copy link

Are there any plans to update this @mustardBees? I'm based in Australia and it would be wonderful to have my clients see a map of down under by default.

@drawcard
Copy link

Actually the other thing I noticed is that if the default is set to the UK, then suggestions also orient around that location (many suburbs here share the same names as regions in the UK, eg Brighton) and often a full address has to be typed out to properly match.

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

7 participants