angular.js - Under ionic, use javascript to import Baidu map, which can be displayed on the PC but not on the mobile terminal.
習慣沉默
習慣沉默 2017-05-15 16:54:02
0
2
1064

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

習慣沉默
習慣沉默

reply all(2)
某草草

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.

刘奇

I used Gaode to achieve it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template