[ALOY-1558] Annotation doesn't work on Alloy
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-04-19T15:53:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | ILAY SENER |
Assignee | Feon Sua Xin Miao |
Created | 2017-04-19T03:00:37.000+0000 |
Updated | 2018-03-07T22:28:25.000+0000 |
Description
Unable to display the annotation when using Alloy to display a location on Android emulator as per the documentation examples at http://docs.appcelerator.com/platform/latest/#!/api/Modules.Map .
Even applying the Annotation parameters inside the tags doesn't fix this.
*index.xml*
*index.js*
*index.tss*
"#mapview": {
region: {
latitude: 33.74511,
longitude: -84.3899,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
regionFit:true,
}
},
"#appcHQ": {
latitude: 37.390749,
longitude: -122.081651,
title: "Appcelerator Headquarters",
subtitle: "Mountain View, CA",
pincolor: Alloy.Globals.Map.ANNOTATION_RED
}
However, if tag is used, instead of , seems to work fine.
*index.xml*
*index.tss*
"#mapView": {
region: {
latitude: -33.8688,
longitude: 151.2093,
latitudeDelta: 0.01,
longitudeDelta: 0.01
}
},
'#sydneyOH':{
latitude: -33.852222,
longitude: 151.210556,
title: "ILAY's Harbour Bridge",
subtitle: "Sydney, NSW",
pincolor: Alloy.Globals.Map.ANNOTATION_RED
},
Seems like the documentation also needs to be updated.
[~isener] looks like the documentation needs updating, could you please open a TIDOC ticket. Thanks!
Closing as invalid. If this is incorrect, please reopen.