Inicio - Documentación - POM Theme - 09 Shortcodes - 09.1 Shortcodes reference - `web_gmap_dynamic_route` Shortcode

web_gmap_dynamic_route Shortcode

The web_gmap_dynamic_route shortcode renders the dynamic Route / Pointers component.

The attributes below match the current Page Builder controls and public output. Use raw syntax only for reviewed content that cannot be maintained through the visual controls.

Allowed parent shortcodes: web_gmap.

Usage

[web_gmap_dynamic_route]

Attributes

Attribute Default Accepted values Purpose
mode route route, pointers You can choose between displaying a route or just the pointers.
route_type single_route single_route, query Set the route type: Single route or query.
route another_post Set a route along the markers of a single post. Available when route_type is single_route.
another_post_location A value selected from WordPress Type post-name. Available when route is another_post.
query 1 String unless stated otherwise Set a route along the markers based on a query. Available when route_type is query.
travel_mode DRIVING DRIVING, WALKING, BICYCLING, TRANSIT Controls the travel mode. Available when mode is route.
route_color 1 String unless stated otherwise Controls the route color. Available when mode is route.

Google Maps requirement

Configure Google Maps under Settings → POM Theme → Integrations → Google Maps before using this component.

Output and safety

This element supplies dynamic route data to its parent map and does not render an independently visible frontend component, so device visibility does not apply.

Test the selected query or post with enough valid locations to form the requested route, and provide the essential itinerary outside the map when visitors need a text alternative.