Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24852] Android: no touch doesn't work for maps module

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterILAY SENER
AssigneeUnknown
Created2017-06-20T00:03:44.000+0000
Updated2018-02-28T19:55:46.000+0000

Description

When putting maps module inside a view, where it is not full screen, the 'touchenabled=false' option doesn't work. Map still scrolls horizontally. index.js
var args = $.args;
index.xml
<Alloy>
	<Window >
		<ActionBar displayHomeAsUp="true" />
		<Menu>
			<MenuItem id="logout" />
			<MenuItem id="menuSearch" />
		</Menu>
		<ScrollView layout="vertical" >
			<View height="100" width="300"></View>
			<View width="300" height="300" bubbleParent="false">
				<Module id="mapview" method="createView" module="ti.map" platform="android, ios" width="300" height="300"  touchenabled="false">
					<Annotation id="appcHQ" />
				</Module>
			</View>
		</ScrollView>
	</Window>
</Alloy>
index.tss
'#mapview':{
    mapType: Alloy.Globals.Map.NORMAL_TYPE,
    region: { 
        latitude: -33.8588, 
        longitude: 151.2103, 
        latitudeDelta: 2, 
        longitudeDelta: 2, 
        zoom: 5, 
        tilt: 45 
    }
},
'#appcHQ': { 
    latitude: -33.852222, 
    longitude: 151.210556, 
    title: "ILAY's Harbour Bridge", 
    subtitle: "Sydney, NSW", 
    pincolor: Alloy.Globals.Map.ANNOTATION_RED 
}

Comments

  1. Hans Knöchel 2017-06-20

    Hey Ilay, so no touch doesn't work means that all touches work? :)
  2. ILAY SENER 2017-06-20

    Haha, yes.

JSON Source