mustardBees / cmb_field_map

Google Maps field type for Custom Metaboxes and Fields for WordPress
120 stars 49 forks source link

Setting the starting point #39

Open Julianoe opened 8 years ago

Julianoe commented 8 years ago

I wish i had time and knowledge to fork this to add a setting page or something like that to provide the possibility to define the starting point of the map (currently UK). For now i'll just modify the file ^^

webdados commented 7 years ago

+1

gareth-gillman commented 7 years ago

I didn't set a starting point but I did fork it to add the api keys, if you want I can update my fork to include the starting point.

https://github.com/gareth-gillman/cmb_field_map

webdados commented 7 years ago

@gareth-gillman Yes, you should please.

Because the starting point is on a JS file, I guess you should use wp_localize_script to pass the starting point coordinates from php to JS.

gareth-gillman commented 7 years ago

Yes I am aware as I do that with the api keys, I will sort that this evening :)