Support

Account

Home Forums Front-end Issues Location Plugin

Solving

Location Plugin

  • Hi
    I tried the location plugin but can’t get it to show the map on the frontend.
    All I get is the coordinates.
    Is there anything else to inputting the field in the page?
    <?php the_field('my_map') ?>

    Thanks
    Dan

    • Elliot

    • July 16, 2013 at 12:31 pm

    Hi @danstramer

    Using the_field on the location field will not create a map. Perhaps you should read over the documentation of how to use this field:

    https://github.com/elliotcondon/acf-location-field/blob/master/readme.txt

    Looks like it returns an array containing co-ordinates. You will need to create the google MAP JS yourself using these values.

  • Thanks Elliot,
    I have read that guide and it doesn’t show how to actually implement the field with the map API.
    I have read some more confused responses about this plugin.
    Do you think you (ot the plugin author) can post a demo showing how to implement this plugin on the front-end?
    Thanks
    Dan

  • I found this documentation:
    https://developers.google.com/maps/documentation/javascript/examples/map-simple

    I’ll give it a try

    Dan

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.