List Poi single map

Home Forums MapPress Support List Poi single map

Tagged: , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11954
    arcanto
    Participant

      Hello Chris.
      Can add a ‘list poi’ to a single map without activating the main function?

      Thanks
      Sorry for my english

      Luciano

      #11958
      Chris
      Keymaster

        Hi, do you mean add a poi list for one map?  If so:

        [mappress poilist="true"]

        The parameters are in the documentation:

        http://mappresspro.com/mappress-documentation

         

        #15109
        DanielB
        Participant

          How can I set the poiList to true in php???
          I have a custom map

          	$mymap = new Mappress_Map(array("width" => 222, "height" =>290,"poiList" => "true"));
          	$args = 'cat=773&post_status=publish&posts_per_page=3&orderby=rand';
          	$query = new WP_Query( $args );
          	$i=0;
          	$mypoi_1=array();
          	if ( $query->have_posts() ) {
          		while ( $query->have_posts() ) {
          			$query->the_post();
          			$vars = explode(",",get_post_meta(get_the_ID(),"vol_work_loc",true));
          			if($vars[0]!=NULL){
          			$mypoi_1[$i] = new Mappress_Poi(array("title" => get_the_title(), "body" => the_excerpt_max_charlength(90)." <a href=\"". get_permalink()."\">Read More</a>", "point" => array("lat" => $vars[0], "lng" => $vars[1])));
          			$i++;
          			}
          		}
          	}
          	
          	$mymap->pois = $mypoi_1; 
          	echo $mymap->display(array("directions"=>"none", "zoom"));
          #15112
          Chris
          Keymaster

            Hi,

            It may be the quotes around ‘true’. Try:

            $mymap = new Mappress_Map(array("width" => 222, "height" =>290,"poilist" => true, "directions" => "none"));
            ...
            echo $mymap->display();
            
          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.