Forum Replies Created
-
AuthorPosts
-
Thanks Chris,
About Directions do you have a circuit displayed exactly with the road ?
Got it working with “width” => ‘100%’,
It seems Mappress_Map does not take in account percentage value but only pixel values.
I have almost finished the integration but I have a little issue:
I used the following code to display the map:
$coord = appthemes_get_coordinates( $post->ID );
$mymap = new Mappress_Map( array(
“width” => 750,
“center”=> array(“lat” => $coord->lat, “lng” => $coord->lng),”zoom” => 19 )
);
echo $pro;
$mypoi_1 = new Mappress_Poi(array(
“title” => $pro,
“body” => $pro,
“point” => array(“lat” => $coord->lat, “lng” => $coord->lng)
));
$mymap->pois = array($mypoi_1);
echo $mymap->display();But $pro that is retrieved with:
<?php $pro = the_title(); ?>
Does not show the title in the map,
Any idea?
Hello,
I have disable automatic display in MapPress settings and I have added this in my listing.php page:
<section id=”overview”>
<?php the_content(); ?>
<?php $maps = Mappress_Map::get_post_map_list($post->ID);if (!empty($maps)) {
$mapid = $maps[0]->mapid;
do_shortcode(‘[mappress mapid="$mapid"]‘);
} ?></section>
Unfortunately no map is displayed
Any idea?
Thanks,
Is there a way to directly get the mapid by filtering, giving the name of the map in argument ?
exemple: a map id 2 has the name [2] Couleur du Lagon
The last one I guess:
Version:2.38.6 PRO -
AuthorPosts
