Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23784] Ti.Map (iOS): the map gives blank screen after zooming in several times

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNot Our Bug
Resolution Date2016-08-19T18:47:47.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sn/a
ComponentsiOS
Labelsblank, ios, ti.map
ReporterJebun Naher
AssigneeAngel Petkov
Created2016-08-17T10:22:18.000+0000
Updated2016-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

FileDateSize
Screen Shot 2016-08-17 at 4.26.43 PM.png2016-08-17T10:26:11.000+0000209867

Comments

  1. Hans Knöchel 2016-08-17

    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).
  2. Hans Knöchel 2016-08-18

    [~jnaher]: Angel will take a look. Beforehand, it would be good to know if leaving out certain properties (looking at latitudeDelta / longitudeDelta and regionFit ) changes something.
  3. Angel Petkov 2016-08-19

    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.
  4. Hans Knöchel 2016-08-19

    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.

JSON Source