GroundOverlayOptions interface
September 29, 2018 ยท View on GitHub
let bounds: ILatLng[] = [
{"lat": 40.712216, "lng": -74.22655},
{"lat": 40.773941, "lng": -74.12544}
];
let options: GroundOverlayOptions = {
'url': 'assets/imgs/newark_nj_1922.jpg',
'bounds': bounds,
'opacity': 0.5,
'clickable': true
};
this.map.addGroundOverlay(options).then((groundOverlay: GroundOverlay) => {
});
Interface members
| Params | Type | Details |
|---|---|---|
| url | string | URL of overlay |
| bounds | ILatLng[] | You need to specify south-west, and north-east points |
| clickable | boolean | (optional)Set to true to receive the GROUND_OVERLAY_CLICK event(default: false) |
| visible | boolean | (optional)Set false if you want to hide. (Default: true) |
| opacity | number | (optional)From 0.0 to 1.0 . |
| zIndex | number | (optional)Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays. |
| bearing | number | (optional)Bearing |