Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2587] Android: Add lite mode to "ti.map" module

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2020-10-29T11:44:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMap
Labels2020-Q3, android, map
ReporterJoshua Quick
AssigneeAkansha Maheshwari
Created2020-03-18T00:59:23.000+0000
Updated2020-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's View type as a "liteMode" creation property. *Note:* There is no iOS equivalent of this feature. This is Android only.

Comments

  1. Joshua Quick 2020-03-18

    [~michael] has submitted the following PR: https://github.com/appcelerator-modules/ti.map/pull/268
  2. 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
  3. 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();
       

JSON Source