iraychen / jquery-bing-maps

Automatically exported from code.google.com/p/jquery-bing-maps
0 stars 1 forks source link

Map is not zoomed after successful route plotted on Windows Phone #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Windows Phone Emulator from the Windows Phone SDK 7.1, or a Windows 7/7.5 
Device
2. Go to 
http://jquery-bing-maps.googlecode.com/svn/trunk/examples/jquery-bing-maps-mobil
e.html#directions_map
3. Allow device to get your location.
4. Enter RG1 in the from and OX9 in the to field, click 'Get directions' (both 
UK postcodes but you could route any valid waypoints).

What is the expected output? What do you see instead?
1.
Expected result after step 3: All tiles are correctly rendered. 
Actual: Not all tiles are clearly downloaded

2.
Expected result after step 4: Polyline and waypoints are plotted on the map and 
then the map both centers and zooms to the polyline boundaries.
Actual: The map stays zoomed out at the maximum zoom level.

What version of the product are you using? On what operating system?
1. Windows Phone Emulator
2. Windows Phone Device: Samsung Omnia: Mozilla/5.0 (compatible; MSIE 9.0; 
Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; SAMSUNG; OMNIA7)

Please provide any additional information below.
1. There is a similar issue described on Stackoverflow, but the issue relates 
to polylines spanning the 180th meridian, which is not the case here, so it 
might be an internal Bing bug: http://stackoverflow.com/a/9529126/119624
2. Contradicting this, is the Bing Maps SDK, which does work successfully in 
the emulator: http://www.bingmapsportal.com/isdk/ajaxv7#DirectionsModule2

Original issue reported on code.google.com by benmorga...@gmail.com on 24 Apr 2012 at 8:03

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
More specifically it would appear to be a timing issue. The following delay 
resolves the issue:

$('#RoutePlanner').on('pageinit', function (event, ui) {
    setTimeout(initMap, 3000);
});

Original comment by benmorga...@gmail.com on 25 Apr 2012 at 12:17