Support

Home Forums Event Espresso Premium Google maps integration

Google maps integration

Posted: September 4, 2013 at 9:03 am

Viewing 1 reply thread


Nick Putman

September 4, 2013 at 9:03 am

Am I right in thinking that Google maps integration in Event Espresso is limited to building a map from the address entered in the Venue Manager? I have a venue I am using that doesn’t have a number in the street address (just the name of the building), and the point on the map generated is someway from the actual venue.

Nick


Sidney Harrell

September 4, 2013 at 12:21 pm

There are two ways you could get the map to point to a lat long pair, an easy way and a hard way. The easy way is to put in “loc:38.9419+-78.3020” (put in your own lat long pair, obviously) into the address field. Of course, you then couldn’t use the address in the event description, etc, but it will center the map on the point you choose. The harder way would be to write a custom version of the function espresso_google_map_link and place it in the custom files add-on so that it will accept an attribute of latlong and use it instead of the address if it is present. You would then need to modify the registration_page.php template file in order to pass the latlong to your custom function and to pull the latlong from the event meta data, if it is present. It’s not a terribly difficult proposition, but would require several hours of custom coding.

Viewing 1 reply thread

The support post ‘Google maps integration’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso