MapPress Easy Google Maps
Call to undefined method stdClass::display() (2 posts)

  1. bpnorth
    Posted 3 years ago #

    I'm trying to use Mappress along with Shortcode Exec PHP to create a map and then populate poi's from some records I have in a data table. However, when I try to display a map, I get the "Call to undefined method stdClass::display()" error message. As a test, I used the code from the example in the documentation:

    $mypoi_1 = new Mappress_Poi(array("title" => "DC", "body" => "Beautiful Washington, DC", "point" => array("lat" => 38.90279, "lng" => -77.037849)));
    $mypoi_2 = new Mappress_Poi(array("address" => "500 chestnut st, phildelphia"));
    $mymap->pois = array($mypoi_1, $mypoi_2);
    echo $mymap->display(array("directions"=>"none"));

    Everything works fine until I hit that last line of code. Can anyone help me figure out what I am doing wrong? thanks.

  2. chrisvrichardson
    Plugin Author

    Posted 3 years ago #


    I just saw your post on the official forum:

    I'll answer you there!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MapPress Easy Google Maps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic