Titanium

[MOD-2345] Ti.Map: Add "padding" API to MapView

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-02-11T10:18:38.000+0000
Affected Version/sn/a
Fix Version/sTi.Map iOS 3.1.0, Ti.Map Android 4.2.0
ComponentsMap
Labelsandroid, ios, ti.map
ReporterLuc-Edmond Gaspard
AssigneeGary Mathews
Created2017-07-04T14:41:08.000+0000
Updated2018-08-06T17:49:26.000+0000

Description

Allows to set the padding around the map and place the controls in a smaller area.

Comments

  1. Luc-Edmond Gaspard 2017-07-04 https://github.com/appcelerator-modules/ti.map/pull/206
  2. Hans Knöchel 2018-02-11 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();
       
  3. Eric Merriman 2018-08-06 Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source