Renders a Google Maps embed that plots delivery route stops from self.data_list as numbered markers, with an optional driving-directions route overlay.
RouteMap — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
No parameters are used. Point data is read from self.data_list using FieldLookup to resolve column indices for latitude/lat, longitude/lng/lon, label/name/customer_name, and sequence/seq/order. Points are sorted by sequence if that column is present.
Returns an HTML <div> map container followed by a <script> that initialises the Google Maps API and places markers.
Options read from self._Options JSON.
| Key | Effect |
|---|---|
google_api_key |
Google Maps JavaScript API key; if absent the Maps script is not loaded |
zoom |
Initial map zoom level (default: 11) |
height |
CSS height of the map container (default: "420px") |
show_route |
If true, uses DirectionsService to draw a driving route between the first and last points with intermediate waypoints (default: true) |
self.add_resource_script only when an API key is provided.sequence value when present.setInterval poll until window.google.maps is ready, supporting pages that load the Maps script asynchronously.