Filter: gfpdf_gv_static_map_markers
Filter the marker list before a Static Map URL is built.
Each marker is [ 'lat' => float, 'long' => float, 'icon_url' => string ]. Use this to inject coordinates when the Maps add-on cannot resolve them (e.g. offline geocoding in test environments) or to override marker placement programmatically.
Parameters
| Name | Type | Description |
|---|---|---|
| $markers | array | |
| $view | \View | |
| $entry | array | |
| $field | \GV\Field|\GV\Widget|null | The entry_map field being rendered — or, on a map drawn over a whole result set, the Map widget it is drawn for. Fired once per entry either way, so a filter written for one reaches the other unchanged. |
Since
- 2.0
Source
Defined in src/Pdf/Maps/StaticMapRenderer.php at line 656