Formatting and Google Maps
Author | Posts |
---|---|
September 13, 2014 at 2:47 am 26733 | |
Sekander Badsha | Hi there, Just bought the Pro version for use on a client site (for some reason, I can't post in the pro forum), and I have a few minor issues. 1. If I check 'Show custom fields on post content area' in Settings, all of the custom fields show up as bulleted list items, with labels. I wasn't expecting this at all. It doesn't make sense to have them display as li's by default, with labels (or at least to have no control over whether the labels display). Yes, I can fiddle with CSS to fix this, but it's a bit of a pain especially when I need all of the custom fields to display inline together. So, I unchecked that option and am instead using the meta keys to display the information... and ran into my second issue. 2. Google Maps aren't showing up when calling them via meta key - only the long. and lat. show up, which isn't helpful! All other fields show up, just not the actual, visual map. Any ideas? |
September 14, 2014 at 6:37 pm 26784 | |
Sekander Badsha | Hello Tracy, 2. As you’re getting tha lat and long, you have to take the iframe code of google maps and echo the lat and long inside that. |
September 18, 2014 at 2:20 am 26959 | |
Tracy Bradley |
Just want to make sure I’m clear on what you’re saying. I have to get iframe code for google maps – like generic iframe code? We have users using a form to enter and update venues (places), and they will be adding a google map via the form (you have a great google maps address lookup on the forms!). I need the actual map to display. What i think you’re telling me is that I need to use the google maps api to generate an embed code, and grab the lat and long from the forms and have it insert into the embed code? Yes or no? Is this typical functionality, or is there a bug or something preventing google maps from displaying correctly? |
September 21, 2014 at 9:15 pm 27134 | |
Sekander Badsha | If you normally show the Google Maps, it displays correctly, just as it was showing while creating the post. But if you want to do some custom styling in the Map or want to call via the meta_key, you must use the maps API or generic iframe code. |
September 22, 2014 at 7:44 pm 27197 | |
Tracy Bradley | Thanks Sekander – I am calling the map via the meta key, so I’ll look into using the API. |
September 24, 2014 at 6:21 pm 27428 | |
Sekander Badsha | Let me know if you need any help 🙂 |