• Resolved vivekse2m

    (@vivekse2m)


    I have WordPress 4.8.1 ver. installed and configured on client’s website.

    Now I have installed the mappress plugin along with working Google Maps API Key.

    I am trying to get a specific location marked in the google map area(in a popup, but using only wordpress already provided jquery, no extra jqueries) on frontend with the below code, but I am getting errors exactly as shown in the screenshot when page loads and when I click on map popup link.

    `<a class=”btn” data-popup-open=”popup-1″ href=”#”>(MAP)</a></p>
    <div class=”popup” data-popup=”popup-1″>
    <div class=”popup-inner”>
    <h2>Map of Primary Location</h2>
    <p>
    <?php
    $mapArr = last_two_elems_serialstr( $priLocationData[‘map_coordinates’] );
    $mapLat = $mapArr[‘lat’];
    $mapLng = $mapArr[‘lng’];
    $mymap = new Mappress_Map(array(“width” => 600));
    $mypoi_1 = new Mappress_Poi(array(“title” => null, “body” => null, “point” => array(“lat” => $mapLat, “lng” => $mapLng)));
    $mymap->pois = array($mypoi_1);
    echo $mymap->display();
    ?>
    </p>
    <p><a data-popup-close=”popup-1″ href=”#”>Close</a></p>
    <a class=”popup-close” data-popup-close=”popup-1″ href=”#”>x</a>
    </div>
    </div>`

    Errors that I am getting:

    View post on imgur.com

    Can somebody assist on what could be going wrong here ?

    • This topic was modified 7 years, 6 months ago by vivekse2m.

    The page I need help with: [log in to see the link]

  • The topic ‘WordPress/Mappress Google Maps not displaying on the frontend post detail page’ is closed to new replies.