I have built a website for car tours. There are multiple tours throughout the year, and new ones are added regularly. Here is a quick outline of the website...
Content type: "Tour Page", Fields: Field collection item, allows multiple tour steps to be added. Each field collection item has a Gmap find address on map location field.
On each tour page, I have a view Gmap using a contextual filter to get a default value of Content ID from URL. This displays the tour steps as single icons. This view is in a block, and set to display on all "Tour pages".
I would like to draw a line on the map from point to point. It can be a straight line, going from point to point.
Now, I can edit the view, go to gmap settings, and enter my own lines using the macro for the view, like this...
[gmap line=#0000ff/5/45:51.512099,-0.15169000000003052 + 51.20086,3.2629389999999603 + 50.654685,4.833983999999987 + 50.403266,6.240233999999987 + 49.966239,8.18481399999996 + 49.067118,8.10241700000006]
...but this will output the same lines for this view on every tour page. But of course, the route is different for every tour. Here is where I am so far...
http://www.dev.ducktoursinternational.com/tour/maranello-monaco-monza-grand-prix-tour-2009
...The line is on the map, following the points. But this same line is in the same place on every tour.
I have all of the latitude and longitude values for all of the points collection in the field collection location fields, is there a way to create a unique macro for every map using these values?
I can probably use a "master" view to assemble all of the lat and long values into the right format for a gmap macro, but how do I get that macro to apply to the different route on each page?
Some more information... 1. Here is the tour page with the current macro on it... http://www.dev.ducktoursinternational.com/tour/maranello-monaco-monza-grand-prix-tour-2009
Here is a screenshot of the gmap view...
Here is a screenshot of the views GMap Settings
So I have a block with a map, and a block with the correct macro for that page. How do I use that macro for that map?