Baidu API Script URL:
Baidu JS online reference:
Http://api.map.baidu.com/api? V = 1.3 output:
Document. write ('<LINK rel = "stylesheet" type = "text/CSS" href = "http://api.map.baidu.com/res/13/bmap.css"/>'); document. write ('< Script Type = "text/JavaScript" src = "http://api.map.baidu.com/getscript? V = 1.3 & aK = & Services = & t = 20130131111149 "> </SCRIPT> ');
Actually read the js api url:
Http://api.map.baidu.com/getscript? V = 1.3
Baidu module URL:
Http://api.map.baidu.com/getmodules? V = 1.3 & mod = map, oppc, tile, marker, control
Http://api.map.baidu.com/getmodules? V = 1.3 & mod = map, oppc, tile, control
Http://api.map.baidu.com/getmodules? V = 1.3 & mod = marker
Modify the script file apiv1.3.min. JS:
(1) rows 1689th
Config :{
_ Baseurl: W + "getmodules? Vs = 1.3 ",
_ Timeout: 5000
},
Changed to the following:
Config :{
_ Baseurl: "JS /",
_ Timeout: 5000
},
(2) rows 1,447th
VaR cb = {
Imgpath: W + "images /",
Changed:
VaR cb = {
Imgpath: "images /",
(3) 1710th rows
Load: function (in
VaR Cn = Cl. config. _ baseurl + "& mod =" + Cl. Module. _ arrmdls. Join (",");
Changed:
VaR CH = Cf. config. _ baseurl + "/" + Cf. Module. _ arrmdls. Join (",") + ". js ";
Module script:
Based on the debugging result, the module obtains the information from the server based on the call. There are several situations:
(1) The marker added during page loading.
Http://api.map.baidu.com/getmodules? V = 1.3 & mod = map, oppc, tile, marker, control
(2) The marker that is not added when the page is loaded.
Http://api.map.baidu.com/getmodules? V = 1.3 & mod = map, oppc, tile, control
(3) The marker added in the page button event.
Http://api.map.baidu.com/getmodules? V = 1.3 & mod = marker