PHP Classes

File: site/demos/map.php

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   site/demos/map.php   Download  
File: site/demos/map.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Caelrik
Build Web user interface from PHP components
Author: By
Last change:
Date: 8 days ago
Size: 465 bytes
 

 

Contents

Class file image Download
<?php

use Caelrik\Ui\Components\Map;

return [
    Map::make('offices')->label('Our offices around Lake Kivu')
        ->marker(-1.6792, 29.2228, 'Goma', 'Head office, Avenue du Lac', url: '#goma')
        ->marker(-2.5083, 28.8608, 'Bukavu', 'Sales and support', url: '#bukavu', color: 'success')
        ->marker(-1.9441, 30.0619, 'Kigali', 'Partner office', color: 'warning')
        ->marker(-2.0700, 29.0400, 'Idjwi', 'Coffee cooperative', color: 'info'),
];