Hi, i've some problem adding multiple maps on a single node, i've many itineraries of a city and each one should have its own map.
Once i add this code below to the first itinerary it works

<?php
$latlons=array('41.896200,12.485559','41.893200,12.487100','41.890200,12.492300');
$locs=array();
$mappa=getdirections_locations_via($locs,$latlons);
echo $mappa;
?>

if i add the same code with different latlons to another itinerary all the maps disappear.

Can't find a solution

CommentFileSizeAuthor
explanation.jpg370.11 KBvaleriiio

Comments

valeriiio’s picture

Title: Multiple Maps on a single node » Multiple Maps on a single page
Component: Documentation » Code
hutch’s picture

Getdirections can only show one map at a time, to make it do otherwise would be a major rewrite. What you could do is write a View that makes a list of links to those maps and display the list in a block.