search

Home  >  Q&A  >  body text

angular.js - Under ionic, use javascript to import Baidu map, which can be displayed on the PC but not on the mobile terminal.

Use javascript to import Baidu map under ionic. The Baidu map can be displayed normally on PC but cannot be displayed on mobile terminal

http://www.bubuko.com/infodetail-807176.html这是我参照的demo

習慣沉默習慣沉默2776 days ago1068

reply all(2)I'll reply

  • 某草草

    某草草2017-05-15 16:56:02

    If you are using http://api.map.baidu.com/api?v=2.0&ak=, please be sure to change this interface to http://api.map.baidu.com/getscript?v=2.0&ak= This one, damn, the one in front uses document.write to write the real SDK file behind it! ! ! ! ionic seems to have issues using document.write.

    reply
    0
  • 怪我咯

    怪我咯2017-05-15 16:56:02

    I used Gaode to achieve it

    reply
    0
  • Cancelreply