[MOD-2587] Android: Add lite mode to "ti.map" module
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-10-29T11:44:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Map |
Labels | 2020-Q3, android, map |
Reporter | Joshua Quick |
Assignee | Akansha Maheshwari |
Created | 2020-03-18T00:59:23.000+0000 |
Updated | 2020-10-29T11:44:31.000+0000 |
Description
*Summary:* Google's Maps feature supports a "lite mode" which loads faster by only showing a single map image with limited end-user interaction support. https://developers.google.com/maps/documentation/android-sdk/lite *To-Do:* Add support to our "ti.map" module'sView
type as a "liteMode" creation property.
*Note:*
There is no iOS equivalent of this feature. This is Android only.
Comments
- Joshua Quick 2020-03-18 [~michael] has submitted the following PR: https://github.com/appcelerator-modules/ti.map/pull/268
- Akansha Maheshwari 2020-05-06 I have submitted the PR : https://github.com/appcelerator-modules/ti.map/pull/295 which includes the changes of https://github.com/appcelerator-modules/ti.map/commit/3ba7c7fd4f087919e6bd171ca7d1b7ec21eabffb and update example according to the liteMode
- Saumya Rai 2020-10-29
Validate with below sample code. It looks fine.
var win = Titanium.UI.createWindow({ layout:"vertical" }); var Map = require('ti.map'); function createMap(liteMode) { var map = Map.createView({ top: 10, right: 0, width: Ti.UI.FILL, height: 200, liteMode: liteMode, region: { zoom: 10, latitude: 46.893234, longitude: 1.346569, } }); var an = Map.createAnnotation({ title: 'Title', latitude: 46.893234, longitude: 1.346569, }) map.addAnnotation(an); win.add(map); } createMap(true); // liteMode map createMap(false); // normal map win.open();