Changeset 887 for trunk/Modules/Map/MapAPI.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Map/MapAPI.php
r874 r887 3 3 class MapMarker 4 4 { 5 var$Position;6 var$Text;5 public array $Position; 6 public string $Text; 7 7 } 8 8 9 9 class MapPolyLine 10 10 { 11 var$Points = array();12 var$Color = 'black';11 public array $Points = array(); 12 public string $Color = 'black'; 13 13 } 14 14 15 15 class Map extends Model 16 16 { 17 var$Position;18 var$Zoom;19 var$Key;17 public array $Position; 18 public int $Zoom; 19 public string $Key; 20 20 var $OnClickObject; 21 var$MarkerText;22 var$Markers;23 var$PolyLines;21 public string $MarkerText; 22 public array $Markers; 23 public array $PolyLines; 24 24 25 function __construct( $System)25 function __construct(System $System) 26 26 { 27 27 parent::__construct($System); … … 35 35 } 36 36 37 function Show() 37 function Show(): string 38 38 { 39 39 return ''; … … 43 43 class MapGoogle extends Map 44 44 { 45 function ShowPage( $Page)45 function ShowPage(Page $Page): string 46 46 { 47 47 $Page->Load = 'initialize()'; … … 113 113 class MapOpenStreetMaps extends Map 114 114 { 115 function GetPageHeader() 115 function GetPageHeader(): string 116 116 { 117 117 $Output = '<link rel="stylesheet" href="https://unpkg.com/leaflet@1.5.1/dist/leaflet.css" … … 124 124 } 125 125 126 function ShowPage( $Page)126 function ShowPage(Page $Page): string 127 127 { 128 128 $this->System->PageHeaders[] = array($this, 'GetPageHeader');
Note:
See TracChangeset
for help on using the changeset viewer.