web_gmap_route Shortcode

The web_gmap_route shortcode renders the route 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_route]

Attributes

Attribute Default Accepted values Purpose
travel_mode DRIVING DRIVING, WALKING, BICYCLING, TRANSIT Controls the travel mode.
route_color 1 String unless stated otherwise Controls the route color.
markers — Encoded Page Builder repeater Ordered title, latitude, longitude, address, marker-image and content values.

Google Maps requirement

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

Output and safety

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

Keep the route inside web_gmap, verify the marker order and travel mode, and make essential directions available as text.

Routes wait for address-only points to resolve. A failed point prevents drawing an incomplete route. Transit uses consecutive pairs; other long routes split at the provider's 25-intermediate-waypoint limit. Each map processes at most 200 points and makes at most 20 directions requests. Google controls service availability, quota and billing.