Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2370] Ti.map : Add a getZoom method for Android

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusResolved
ResolutionFixed
Resolution Date2018-02-11T09:16:18.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMap
Labelsn/a
ReporterJeroen van Dijk
AssigneeUnknown
Created2017-10-13T09:03:36.000+0000
Updated2018-03-14T18:49:53.000+0000

Description

On iOS zooming is very well handled using the Camera object. On Android this is done differently. The zoom method allows to set the zoom level, but when using the setLocation method and not providing a zoom level the level is reset. This is not what you want when a user has set a specific zoom level. Because of this, the zoom level should be exposed to JS to be able to use it like:
$.mapview.setLocation({
    zoom: $.mapview.zoom,
    bearing: heading,
    latitude: latitude,
    longitude: longitude,
    animate: true
});

Comments

  1. Jeroen van Dijk 2017-10-13

    Added this functionality in this PR: https://github.com/appcelerator-modules/ti.map/pull/218

JSON Source