var Map = require('ti.map');
var win = Titanium.UI.createWindow();
var mapview = Map.createView({
mapType: Map.NORMAL_TYPE,
region: {
latitude: 37.368122,
longitude: -121.913653,
}
});
mapview.addPolyline(Map.createPolyline({
points: [{
latitude: 37.368122,
longitude: -121.913653,
},
{
latitude: 37.368122,
longitude: -121.713653,
},
{
latitude: 37.268122,
longitude: -121.713653,
}
],
strokeColor: 'red',
strokeWidth: 3,
pattern: {
type: Map.POLYLINE_PATTERN_DOTTED,
dashLength: 2,
gapLength: 5
}
}))
win.add(mapview);
win.open();
Produces:
!Simulator Screen Shot - iPhone X - 2018-03-08 at 20.04.12.png|thumbnail!
It's just depending on your configuration; and in your case, you ware missing the