[TIMOB-23784] Ti.Map (iOS): the map gives blank screen after zooming in several times
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2016-08-19T18:47:47.000+0000 |
Affected Version/s | Release 5.4.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | blank, ios, ti.map |
Reporter | Jebun Naher |
Assignee | Angel Petkov |
Created | 2016-08-17T10:22:18.000+0000 |
Updated | 2016-08-24T01:29:29.000+0000 |
Description
*Problem Description*:
I'm using ti.map module version which is shipped with the platform. The map loads correctly, but when I zoom it in, after some zooming it gives blank screen.
Please find the screen shot.
*Steps to reproduce the issue:*
1. Use the test case below and run the app.
2. Click on the annotation and keep zooming in until the screen goes blank.
*Test Case:*
var Map = require('ti.map');
var win = Titanium.UI.createWindow();
var mountainView = Map.createAnnotation({
latitude:37.390749,
longitude:-122.081651,
title:"Appcelerator Headquarters",
subtitle:'Mountain View, CA',
pincolor:Map.ANNOTATION_RED,
myid:1 // Custom property to uniquely identify this annotation.
});
var mapview = Map.createView({
mapType: Map.SATELLITE_TYPE,
region: {
latitude:37.390749,
longitude:-122.081651,
latitudeDelta:0.01,
longitudeDelta:0.01
},
animate:true,
regionFit:true,
userLocation:true,
annotations:[mountainView]
});
win.add(mapview);
win.open();
Thanks.
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2016-08-17 at 4.26.43 PM.png | 2016-08-17T10:26:11.000+0000 | 209867 |
Whicht i.map version? And did it work before? Nearly can't believe it's a ti.map issue (maybe ATS blocking something or the zoom-level is too huge for Apple Maps to render).
[~jnaher]: Angel will take a look. Beforehand, it would be good to know if leaving out certain properties (looking at
latitudeDelta
/longitudeDelta
andregionFit
) changes something.After looking around on apple forums seems that this is a known apple [issue](https://forums.developer.apple.com/thread/31064) with the maps. One fix could be if we restrict the zoom level if Map.SATELLITE_TYPE is set, however it wouldn't be the best practice.
As mentioned by [~apetkov], this is not a Titanium but an iOS issue. You need to watch the zoom-level and watch it's value manually so it doesn't overflow.