cmb_field_map icon indicating copy to clipboard operation
cmb_field_map copied to clipboard

Set default map location

Open dappi opened this issue 10 years ago • 9 comments

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?

dappi avatar May 24 '15 08:05 dappi

Great idea. I'll add this in.

mustardBees avatar May 24 '15 08:05 mustardBees

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

mgratch avatar Jul 03 '15 19:07 mgratch

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

biggmouf avatar Jul 21 '15 05:07 biggmouf

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

eriktelepovsky avatar Apr 07 '16 20:04 eriktelepovsky

@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.

shaynesanderson-zz avatar Nov 03 '16 21:11 shaynesanderson-zz

@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.

eriktelepovsky avatar Nov 03 '16 21:11 eriktelepovsky

@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).

shaynesanderson-zz avatar Nov 03 '16 21:11 shaynesanderson-zz

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 avatar Jun 30 '19 13:06 drawcard

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.

drawcard avatar Jun 30 '19 13:06 drawcard