| 1 | <?php |
||
| 16 | trait PopupTrait |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string the HTML content of the popup to display when clicking on the marker. |
||
| 20 | */ |
||
| 21 | public $popupContent; |
||
| 22 | /** |
||
| 23 | * @var bool whether to open the popup dialog on display. |
||
| 24 | */ |
||
| 25 | public $openPopup = false; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Binds popup content (if any) to the js code to register |
||
| 29 | * |
||
| 30 | * @param string $js |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 108 | protected function bindPopupContent($js) |
|
| 45 | } |
||
| 46 |