This is a migrated thread and some comments may be shown as answers.

Bing map issue in IOS

3 Answers 184 Views
jQuery Mobile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Deepan
Top achievements
Rank 1
Deepan asked on 23 Jul 2014, 06:00 AM
Hi,
         In jquery mobile,  I am using Bing Map for My Mobile application.
         Its working fine in Android devices.
         But i am facing problem in IOS Devices.  Bing Map is not  properly displaying in map view full screen width, its showing only half of the map.
         here i attached screen shot

Html file

 <div  id="dashboardMap" style="width:90%;"></div>

js file

                         var myOptions = {
                         credentials: BING_MAP_KEY,
                         center: userposition,
                         mapTypeId: Microsoft.Maps.MapTypeId.collinsBart,
                         zoom: 18,
                         showScalebar: true,
                         }
                   
                      var $content = $("#EquipmentMap");
                      map = new Microsoft.Maps.Map($content[0], myOptions);

Thanks & Regards
        Deepan

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 25 Jul 2014, 04:08 PM
Hello Deepan,

I created a sample app using the code snippet you sent and I deployed it on a few iOS devices:
  • iPhone 4 with iOS 6.0.1
  • iPhone 5C with iOS 7.1.2
  • iPad with iOS 7.0.4

On all devices I manged to properly display the map and I did not detect the issue you reported. I also tested the app behavior in the AppBuilder Simulator and again the map was properly displayed while simulating the available iOS devices.

I attached the sample so that you can have a look at it on your side and let me know if there is anything I might be missing.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Deepan
Top achievements
Rank 1
answered on 28 Jul 2014, 05:38 AM
Hi,
       Problem get solved in my side, slightly changed bing map code now its working fine in IOS Device. But i don't know why old code is affected bing map in IOS device.

Html file

 <div  id="dashboardMap"></div>

js file

                         var myOptions = {

                         credentials: BING_MAP_KEY,

                         }

                      var $content = $("#dashboardMap");

                      map = new Microsoft.Maps.Map($content[0], myOptions);



Thanks & Regards

        Deepan
0
Tina Stancheva
Telerik team
answered on 30 Jul 2014, 02:35 PM
Hello Deepan,

I am not sure why these changes fixed the issue on your devices. It might be something coming from the width of the div object wrapping the map or from the settings of another element holding that div but as I was not able to reproduce it locally I cannot say for sure.

In any case I am happy to see that you've managed to resolve the issue.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
jQuery Mobile
Asked by
Deepan
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Deepan
Top achievements
Rank 1
Share this question
or