Bing maps in ionic-v1 framework is not working


#1

I have issue on bing maps as explained in below link:

Please help me with inputs to resolve this.Thanks.


#2

According to the latest v8 documentation, you need to refer to the latest JS Source file for Bing Maps

<script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?callback=loadMapScenario' async defer></script>

For Asynchronous calls, you have to create a callback function.
Reference: http://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk#loadMapWithOptions+HTML

Alternatively, you can still use v7 where zoom options are working

 <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>

#3

Only zoom works using
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
but toggling between map type i.e. road and aerial mode wont happen.That is also one of reason i used other script.
Please let me know if any other option works.


#4

have you looked here
https://www.bingmapsportal.com/isdk/ajaxv7


#5

same code has been referred.


#6

Any help on these guys ?? Stuck with these from couple of days.