[MOD-2345] Ti.Map: Add "padding" API to MapView
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-02-11T10:18:38.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Ti.Map iOS 3.1.0, Ti.Map Android 4.2.0 |
| Components | Map |
| Labels | android, ios, ti.map |
| Reporter | Luc-Edmond Gaspard |
| Assignee | Gary Mathews |
| Created | 2017-07-04T14:41:08.000+0000 |
| Updated | 2018-08-06T17:49:26.000+0000 |
Description
Allows to set the padding around the map and place the controls in a smaller area.
https://github.com/appcelerator-modules/ti.map/pull/206
Example:
var Map = require('ti.map'); var mapView = Map.createView({ mapType: Map.NORMAL_TYPE, region: { latitude :33.74511, longitude: -84.38993 }, padding: { top: 20, right: 20, bottom: 20, left: 20 } }); var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); win.add(mapView); win.open();Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.