Appearance
add_route Tag
With this tag you can add a route directly to a map. You can use it just like the {map:add_marker}
tag, just put in inside the {exp:reinos_maps:map}...{/exp:reinos_maps:map}
tag
The tag
{maps:add_route}
Tag parameters
Below are the Tag Parameters. Those parameters can be used in the tag described above.
address:from
A from address name, can also a name like 'reichenbach im vogtland or amsterdam or america'.
address:from="" [REQUIRED] if latlng:from is empty
latlng:from
latitude longitude coordinates
latlng:from="" [REQUIRED] if address:from is empty
address:to
A to address name, can also a name like 'reichenbach im vogtland or amsterdam or america'.
address:to="" [REQUIRED] if latlng:to is empty
latlng:to
latitude longitude coordinates
latlng:to="" [REQUIRED] if address:to is empty
address:waypoints
stops between the from and to point. addresses seperated with a pipline '|'
address:stops="" [OPTIONAL] if latlng:stops is empty
latlng:waypoints
stops between the from and to point. latitude longitude coordinates seperated with a pipline '|'
latlng:stops="" [OPTIONAL] if address:stops is empty
travel_mode
set the travel mode.
values: driving
transit
walking
travel_mode="driving" [OPTIONAL]
stroke:color
set the stroke color.
stroke:color="#131540" [OPTIONAL]
stroke:opacity
set the stroke opacity.
stroke:opacity="0.6" [OPTIONAL]
stroke:weight
set the stroke weight.
stroke:weight="6" [OPTIONAL]
Fit tag
To fit the routes on the map, the route module add the following tag to the {exp:maps:map}
fit_map:routes
Fit the map based on the routes
{exp:reinos_maps:map
fit_map:routes="no" [OPTIONAL]
}