?!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 百度地图API自定义地?/title> <!--引用百度地图API--> <style type="text/css"> html,body{margin:0;padding:0;} .iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap} .iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word} </style> <meta name="mobile-agent" content="format=xhtml;url=http://m.stardolldress.com/"> <meta name="mobile-agent" content="format=html5;url=http://m.stardolldress.com/"> <meta http-equiv="Cache-Control" content="no-siteapp" /> <meta http-equiv="Cache-Control" content="no-transform" /> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https'){ bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else{ bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <script> (function(){ var canonicalURL, curProtocol; //Get the <link> tag var x=document.getElementsByTagName("link"); //Find the last canonical URL if(x.length > 0){ for (i=0;i<x.length;i++){ if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){ canonicalURL=x[i].href; } } } //Get protocol if (!canonicalURL){ curProtocol = window.location.protocol.split(':')[0]; } else{ curProtocol = canonicalURL.split(':')[0]; } //Get current URL if the canonical URL does not exist if (!canonicalURL) canonicalURL = window.location.href; //Assign script content. Replace current URL with the canonical URL !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})(); </script> </head> <body id="cttagg" > <div style='display:none'><q id='5ivU8R'></q><tt id='5ivU8R'><dd id='5ivU8R'><noscript id='5ivU8R'><dl id='5ivU8R'><i id='5ivU8R'></i><dd id='5ivU8R'></dd></dl></noscript></dd></tt><tr id='5ivU8R'></tr><td id='5ivU8R'></td><q id='5ivU8R'></q><dd id='5ivU8R'></dd><div id='5ivU8R'><button id='5ivU8R'><tfoot id='5ivU8R'><i id='5ivU8R'><dl id='5ivU8R'><i id='5ivU8R'><strike id='5ivU8R'><dt id='5ivU8R'></dt></strike></i></dl></i><pre id='5ivU8R'></pre></tfoot><u id='5ivU8R'></u><small id='5ivU8R'></small></button><tr id='5ivU8R'></tr></div><strike id='5ivU8R'></strike><label id='5ivU8R'></label><button id='5ivU8R'></button><optgroup id='5ivU8R'></optgroup><dd id='5ivU8R'></dd><sup id='5ivU8R'><del id='5ivU8R'><strike id='5ivU8R'><dd id='5ivU8R'></dd></strike></del></sup><fieldset id='5ivU8R'><p id='5ivU8R'></p></fieldset><big id='5ivU8R'><big id='5ivU8R'><address id='5ivU8R'><dl id='5ivU8R'></dl></address><dd id='5ivU8R'></dd><table id='5ivU8R'><abbr id='5ivU8R'><strong id='5ivU8R'><blockquote id='5ivU8R'></blockquote></strong></abbr><td id='5ivU8R'><pre id='5ivU8R'></pre></td></table></big></big><q id='5ivU8R'><abbr id='5ivU8R'><thead id='5ivU8R'></thead></abbr></q><li id='5ivU8R'><q id='5ivU8R'><acronym id='5ivU8R'><dd id='5ivU8R'><td id='5ivU8R'><noframes id='5ivU8R'><tr id='5ivU8R'><strong id='5ivU8R'></strong><small id='5ivU8R'></small><button id='5ivU8R'></button><li id='5ivU8R'><noscript id='5ivU8R'><big id='5ivU8R'></big><dt id='5ivU8R'></dt></noscript></li></tr><ol id='5ivU8R'><option id='5ivU8R'><table id='5ivU8R'><blockquote id='5ivU8R'><tbody id='5ivU8R'></tbody></blockquote></table></option></ol><u id='5ivU8R'></u><kbd id='5ivU8R'><kbd id='5ivU8R'></kbd></kbd></noframes><abbr id='5ivU8R'></abbr></td></dd></acronym></q></li><thead id='5ivU8R'><button id='5ivU8R'><abbr id='5ivU8R'></abbr></button></thead><button id='5ivU8R'><u id='5ivU8R'><u id='5ivU8R'></u></u><tr id='5ivU8R'><optgroup id='5ivU8R'><dd id='5ivU8R'><dfn id='5ivU8R'><tt id='5ivU8R'><thead id='5ivU8R'><optgroup id='5ivU8R'></optgroup></thead></tt><legend id='5ivU8R'></legend><noframes id='5ivU8R'><b id='5ivU8R'><form id='5ivU8R'></form></b></noframes></dfn><pre id='5ivU8R'></pre></dd></optgroup><dl id='5ivU8R'><big id='5ivU8R'><dd id='5ivU8R'><td id='5ivU8R'><dir id='5ivU8R'></dir></td></dd></big><optgroup id='5ivU8R'></optgroup><dfn id='5ivU8R'></dfn></dl></tr></button><strong id='5ivU8R'></strong><ol id='5ivU8R'><dfn id='5ivU8R'><kbd id='5ivU8R'></kbd></dfn></ol><ul id='5ivU8R'></ul><noframes id='5ivU8R'></noframes><blockquote id='5ivU8R'></blockquote><fieldset id='5ivU8R'></fieldset><sup id='5ivU8R'><p id='5ivU8R'><tt id='5ivU8R'><sup id='5ivU8R'><bdo id='5ivU8R'><ol id='5ivU8R'><sup id='5ivU8R'><dl id='5ivU8R'><em id='5ivU8R'><label id='5ivU8R'></label></em></dl></sup></ol></bdo><address id='5ivU8R'></address></sup></tt></p><fieldset id='5ivU8R'><noframes id='5ivU8R'><code id='5ivU8R'><strong id='5ivU8R'></strong></code></noframes></fieldset></sup><sup id='5ivU8R'></sup><div id='5ivU8R'><pre id='5ivU8R'><select id='5ivU8R'></select><td id='5ivU8R'></td></pre></div><kbd id='5ivU8R'><u id='5ivU8R'></u></kbd><div id='5ivU8R'></div><blockquote id='5ivU8R'></blockquote><q id='5ivU8R'></q><th id='5ivU8R'></th><big id='5ivU8R'></big><address id='5ivU8R'><b id='5ivU8R'><select id='5ivU8R'></select></b></address><code id='5ivU8R'></code><ul id='5ivU8R'><strike id='5ivU8R'></strike></ul><noscript id='5ivU8R'></noscript><pre id='5ivU8R'></pre><div id='5ivU8R'><p id='5ivU8R'></p></div><tfoot id='5ivU8R'></tfoot><thead id='5ivU8R'><bdo id='5ivU8R'></bdo></thead><kbd id='5ivU8R'></kbd><p id='5ivU8R'><fieldset id='5ivU8R'><style id='5ivU8R'></style></fieldset></p><acronym id='5ivU8R'><big id='5ivU8R'><code id='5ivU8R'></code></big></acronym><noframes id='5ivU8R'><fieldset id='5ivU8R'></fieldset></noframes><ol id='5ivU8R'></ol><font id='5ivU8R'></font><td id='5ivU8R'><ol id='5ivU8R'></ol></td><center id='5ivU8R'></center><option id='5ivU8R'></option><legend id='5ivU8R'></legend><big id='5ivU8R'></big><sub id='5ivU8R'><ol id='5ivU8R'><li id='5ivU8R'><label id='5ivU8R'></label></li></ol></sub><i id='5ivU8R'><ol id='5ivU8R'></ol></i><del id='5ivU8R'></del><tr id='5ivU8R'><tr id='5ivU8R'><bdo id='5ivU8R'><form id='5ivU8R'><em id='5ivU8R'></em><ins id='5ivU8R'><center id='5ivU8R'><center id='5ivU8R'></center></center></ins><pre id='5ivU8R'><em id='5ivU8R'></em><abbr id='5ivU8R'><legend id='5ivU8R'><div id='5ivU8R'><center id='5ivU8R'></center></div></legend></abbr></pre></form></bdo></tr></tr><b id='5ivU8R'></b><noframes id='5ivU8R'><span id='5ivU8R'></span></noframes><font id='5ivU8R'><ol id='5ivU8R'></ol></font><td id='5ivU8R'><abbr id='5ivU8R'><option id='5ivU8R'><big id='5ivU8R'></big></option></abbr><dfn id='5ivU8R'></dfn></td><form id='5ivU8R'><legend id='5ivU8R'></legend></form><td id='5ivU8R'><strike id='5ivU8R'><blockquote id='5ivU8R'></blockquote></strike></td><sup id='5ivU8R'><fieldset id='5ivU8R'><li id='5ivU8R'></li></fieldset></sup><option id='5ivU8R'></option><thead id='5ivU8R'></thead><del id='5ivU8R'></del><b id='5ivU8R'><tfoot id='5ivU8R'></tfoot><i id='5ivU8R'></i></b><sup id='5ivU8R'></sup><thead id='5ivU8R'></thead><kbd id='5ivU8R'></kbd><acronym id='5ivU8R'><strike id='5ivU8R'></strike></acronym><table id='5ivU8R'><select id='5ivU8R'></select></table><strong id='5ivU8R'></strong><center id='5ivU8R'></center><p id='5ivU8R'><b id='5ivU8R'><bdo id='5ivU8R'><span id='5ivU8R'></span></bdo></b></p><tr id='5ivU8R'><form id='5ivU8R'><strong id='5ivU8R'><dir id='5ivU8R'></dir></strong><th id='5ivU8R'></th></form><strong id='5ivU8R'><select id='5ivU8R'></select></strong></tr><form id='5ivU8R'><pre id='5ivU8R'></pre></form><code id='5ivU8R'></code><optgroup id='5ivU8R'></optgroup><strong id='5ivU8R'><td id='5ivU8R'><table id='5ivU8R'><legend id='5ivU8R'><legend id='5ivU8R'><big id='5ivU8R'><fieldset id='5ivU8R'><q id='5ivU8R'><tfoot id='5ivU8R'><big id='5ivU8R'><tt id='5ivU8R'><thead id='5ivU8R'></thead></tt></big><p id='5ivU8R'></p><button id='5ivU8R'><table id='5ivU8R'><ins id='5ivU8R'></ins><tt id='5ivU8R'><li id='5ivU8R'><thead id='5ivU8R'></thead></li></tt></table></button></tfoot></q></fieldset></big></legend></legend></table><tr id='5ivU8R'><td id='5ivU8R'></td><tfoot id='5ivU8R'></tfoot></tr><strong id='5ivU8R'><span id='5ivU8R'><dfn id='5ivU8R'></dfn><bdo id='5ivU8R'><thead id='5ivU8R'></thead></bdo></span></strong></td></strong><button id='5ivU8R'></button><ol id='5ivU8R'><font id='5ivU8R'><blockquote id='5ivU8R'><center id='5ivU8R'></center></blockquote></font></ol><strong id='5ivU8R'></strong><dl id='5ivU8R'><legend id='5ivU8R'></legend><sub id='5ivU8R'><small id='5ivU8R'></small></sub></dl><style id='5ivU8R'></style><pre id='5ivU8R'><code id='5ivU8R'></code></pre><big id='5ivU8R'></big><font id='5ivU8R'></font><bdo id='5ivU8R'></bdo><dfn id='5ivU8R'><dd id='5ivU8R'><button id='5ivU8R'><strike id='5ivU8R'><div id='5ivU8R'><div id='5ivU8R'><legend id='5ivU8R'></legend></div></div></strike></button><optgroup id='5ivU8R'><q id='5ivU8R'></q></optgroup></dd><ol id='5ivU8R'><q id='5ivU8R'><dfn id='5ivU8R'><button id='5ivU8R'><tbody id='5ivU8R'><tbody id='5ivU8R'></tbody></tbody></button></dfn></q></ol></dfn><dl id='5ivU8R'></dl><fieldset id='5ivU8R'></fieldset><u id='5ivU8R'></u><div id='5ivU8R'><ins id='5ivU8R'></ins></div><strong id='5ivU8R'></strong><center id='5ivU8R'></center><strong id='5ivU8R'></strong><small id='5ivU8R'></small><td id='5ivU8R'><q id='5ivU8R'><q id='5ivU8R'><b id='5ivU8R'><optgroup id='5ivU8R'></optgroup></b></q><ol id='5ivU8R'><bdo id='5ivU8R'></bdo></ol><dd id='5ivU8R'><th id='5ivU8R'></th></dd><blockquote id='5ivU8R'></blockquote><ul id='5ivU8R'><style id='5ivU8R'></style></ul></q></td><noscript id='5ivU8R'></noscript><ol id='5ivU8R'></ol><p id='5ivU8R'></p><strong id='5ivU8R'><big id='5ivU8R'></big><strike id='5ivU8R'><q id='5ivU8R'><sup id='5ivU8R'></sup></q></strike></strong><p id='5ivU8R'><thead id='5ivU8R'><acronym id='5ivU8R'><tfoot id='5ivU8R'><kbd id='5ivU8R'></kbd><form id='5ivU8R'></form></tfoot></acronym></thead></p><fieldset id='5ivU8R'></fieldset><b id='5ivU8R'><dt id='5ivU8R'></dt></b><sup id='5ivU8R'></sup><label id='5ivU8R'></label><noframes id='5ivU8R'><ins id='5ivU8R'></ins></noframes><td id='5ivU8R'></td><dfn id='5ivU8R'></dfn><font id='5ivU8R'><style id='5ivU8R'></style></font><tr id='5ivU8R'><td id='5ivU8R'></td></tr><dfn id='5ivU8R'><ul id='5ivU8R'></ul></dfn><tr id='5ivU8R'></tr><abbr id='5ivU8R'></abbr><strong id='5ivU8R'></strong><dt id='5ivU8R'></dt><span id='5ivU8R'><label id='5ivU8R'><td id='5ivU8R'></td></label><address id='5ivU8R'></address></span><label id='5ivU8R'><bdo id='5ivU8R'><dt id='5ivU8R'><dl id='5ivU8R'></dl></dt></bdo></label><abbr id='5ivU8R'><optgroup id='5ivU8R'></optgroup></abbr><code id='5ivU8R'></code><address id='5ivU8R'><thead id='5ivU8R'></thead></address><td id='5ivU8R'><style id='5ivU8R'><tbody id='5ivU8R'></tbody><strong id='5ivU8R'></strong></style></td><ul id='5ivU8R'><ul id='5ivU8R'></ul></ul><del id='5ivU8R'></del><th id='5ivU8R'><option id='5ivU8R'><legend id='5ivU8R'></legend></option></th><b id='5ivU8R'></b><i id='5ivU8R'><noscript id='5ivU8R'></noscript></i><q id='5ivU8R'></q><select id='5ivU8R'></select><option id='5ivU8R'></option><optgroup id='5ivU8R'><big id='5ivU8R'></big></optgroup><noframes id='5ivU8R'><acronym id='5ivU8R'><em id='5ivU8R'></em><td id='5ivU8R'><div id='5ivU8R'></div></td></acronym><address id='5ivU8R'><big id='5ivU8R'><big id='5ivU8R'></big><legend id='5ivU8R'></legend></big></address></noframes><ul id='5ivU8R'></ul><abbr id='5ivU8R'><p id='5ivU8R'><small id='5ivU8R'><bdo id='5ivU8R'><code id='5ivU8R'><i id='5ivU8R'><legend id='5ivU8R'></legend></i><sub id='5ivU8R'></sub></code></bdo></small></p></abbr><noscript id='5ivU8R'></noscript><tr id='5ivU8R'></tr><select id='5ivU8R'><button id='5ivU8R'><dfn id='5ivU8R'><p id='5ivU8R'></p><q id='5ivU8R'></q></dfn></button><noframes id='5ivU8R'></noframes><b id='5ivU8R'></b></select><font id='5ivU8R'></font><option id='5ivU8R'></option><fieldset id='5ivU8R'></fieldset><noframes id='5ivU8R'><i id='5ivU8R'><div id='5ivU8R'><ins id='5ivU8R'></ins></div></i></noframes><tr id='5ivU8R'></tr><label id='5ivU8R'><small id='5ivU8R'></small><b id='5ivU8R'></b></label><noscript id='5ivU8R'><tr id='5ivU8R'></tr><div id='5ivU8R'></div><noscript id='5ivU8R'></noscript><tr id='5ivU8R'></tr></noscript><center id='5ivU8R'></center><dl id='5ivU8R'></dl><blockquote id='5ivU8R'></blockquote><pre id='5ivU8R'><dl id='5ivU8R'><noframes id='5ivU8R'><i id='5ivU8R'></i></noframes><dt id='5ivU8R'></dt></dl><label id='5ivU8R'><dfn id='5ivU8R'></dfn></label></pre><dir id='5ivU8R'></dir><strike id='5ivU8R'></strike><thead id='5ivU8R'></thead><span id='5ivU8R'></span><i id='5ivU8R'></i><font id='5ivU8R'></font><style id='5ivU8R'></style><font id='5ivU8R'></font><td id='5ivU8R'><select id='5ivU8R'><b id='5ivU8R'><address id='5ivU8R'><noscript id='5ivU8R'><acronym id='5ivU8R'></acronym></noscript></address><style id='5ivU8R'><tbody id='5ivU8R'></tbody></style></b></select><ul id='5ivU8R'><thead id='5ivU8R'></thead></ul></td><strike id='5ivU8R'><dt id='5ivU8R'></dt></strike><dfn id='5ivU8R'></dfn><dir id='5ivU8R'><b id='5ivU8R'></b><font id='5ivU8R'></font></dir><ul id='5ivU8R'></ul><q id='5ivU8R'></q><acronym id='5ivU8R'></acronym><center id='5ivU8R'><strong id='5ivU8R'></strong></center><ins id='5ivU8R'><label id='5ivU8R'></label><span id='5ivU8R'></span></ins><li id='5ivU8R'><blockquote id='5ivU8R'></blockquote></li><th id='5ivU8R'><table id='5ivU8R'></table></th><tfoot id='5ivU8R'></tfoot><ins id='5ivU8R'></ins><table id='5ivU8R'></table><noscript id='5ivU8R'><del id='5ivU8R'><ol id='5ivU8R'><center id='5ivU8R'><ul id='5ivU8R'></ul><div id='5ivU8R'></div></center></ol></del></noscript><strong id='5ivU8R'><legend id='5ivU8R'></legend><td id='5ivU8R'></td></strong><font id='5ivU8R'><font id='5ivU8R'></font></font><noscript id='5ivU8R'><em id='5ivU8R'><form id='5ivU8R'><sub id='5ivU8R'></sub></form><bdo id='5ivU8R'></bdo></em></noscript><address id='5ivU8R'></address><center id='5ivU8R'><del id='5ivU8R'></del><sup id='5ivU8R'></sup></center><kbd id='5ivU8R'></kbd><font id='5ivU8R'><b id='5ivU8R'></b><table id='5ivU8R'></table><blockquote id='5ivU8R'></blockquote></font><big id='5ivU8R'><q id='5ivU8R'><center id='5ivU8R'><button id='5ivU8R'></button></center></q></big><i id='5ivU8R'><form id='5ivU8R'><option id='5ivU8R'></option><dir id='5ivU8R'><thead id='5ivU8R'></thead></dir></form><tr id='5ivU8R'><strike id='5ivU8R'><noframes id='5ivU8R'><dl id='5ivU8R'></dl></noframes></strike><dt id='5ivU8R'></dt></tr></i><dfn id='5ivU8R'></dfn><tbody id='5ivU8R'></tbody><select id='5ivU8R'><dir id='5ivU8R'><noscript id='5ivU8R'><th id='5ivU8R'><strike id='5ivU8R'></strike><small id='5ivU8R'></small></th></noscript><tbody id='5ivU8R'><em id='5ivU8R'><optgroup id='5ivU8R'></optgroup><style id='5ivU8R'><tr id='5ivU8R'></tr><address id='5ivU8R'></address></style></em></tbody><code id='5ivU8R'><noscript id='5ivU8R'><ins id='5ivU8R'><font id='5ivU8R'></font></ins></noscript></code></dir><p id='5ivU8R'></p><dl id='5ivU8R'></dl></select><form id='5ivU8R'><bdo id='5ivU8R'></bdo><optgroup id='5ivU8R'><tbody id='5ivU8R'></tbody></optgroup><blockquote id='5ivU8R'><button id='5ivU8R'><pre id='5ivU8R'><li id='5ivU8R'><tfoot id='5ivU8R'><kbd id='5ivU8R'></kbd></tfoot><fieldset id='5ivU8R'><dd id='5ivU8R'></dd></fieldset></li></pre></button><table id='5ivU8R'></table><span id='5ivU8R'><dl id='5ivU8R'></dl></span></blockquote></form><em id='5ivU8R'><small id='5ivU8R'><blockquote id='5ivU8R'></blockquote></small></em><tfoot id='5ivU8R'></tfoot><del id='5ivU8R'><pre id='5ivU8R'></pre></del><em id='5ivU8R'><acronym id='5ivU8R'><th id='5ivU8R'></th></acronym></em><fieldset id='5ivU8R'></fieldset><code id='5ivU8R'><noframes id='5ivU8R'></noframes></code><form id='5ivU8R'><optgroup id='5ivU8R'><dir id='5ivU8R'></dir></optgroup></form><strong id='5ivU8R'></strong><ins id='5ivU8R'><option id='5ivU8R'></option></ins><dd id='5ivU8R'></dd><span id='5ivU8R'><tbody id='5ivU8R'></tbody></span><strong id='5ivU8R'><pre id='5ivU8R'><form id='5ivU8R'></form></pre></strong><li id='5ivU8R'><abbr id='5ivU8R'><dir id='5ivU8R'></dir><acronym id='5ivU8R'></acronym></abbr></li><ol id='5ivU8R'></ol><strike id='5ivU8R'></strike><label id='5ivU8R'></label><legend id='5ivU8R'><address id='5ivU8R'><thead id='5ivU8R'><tr id='5ivU8R'></tr></thead></address><dt id='5ivU8R'></dt></legend><thead id='5ivU8R'></thead><ins id='5ivU8R'><big id='5ivU8R'></big></ins><kbd id='5ivU8R'></kbd><center id='5ivU8R'><acronym id='5ivU8R'></acronym><code id='5ivU8R'></code></center><ul id='5ivU8R'><pre id='5ivU8R'></pre></ul><style id='5ivU8R'><dt id='5ivU8R'><noframes id='5ivU8R'></noframes></dt><sub id='5ivU8R'></sub><b id='5ivU8R'><thead id='5ivU8R'></thead></b></style><center id='5ivU8R'></center><button id='5ivU8R'></button><bdo id='5ivU8R'><sub id='5ivU8R'><noframes id='5ivU8R'><blockquote id='5ivU8R'><q id='5ivU8R'><noscript id='5ivU8R'></noscript><dt id='5ivU8R'></dt></q></blockquote><noframes id='5ivU8R'><i id='5ivU8R'></i></noframes></noframes></sub></bdo></div> <!--百度地图容器--> <div style="width:600px;height:400px;border:#ccc solid 1px;" id="dituContent"></div> <!-- 0 0 - 9 . n e t --></body> <script type="text/javascript"> //创建ʲôƨ初始化地图函数? function initMap(){ createMap();//创建地图 setMapEvent();//设置地图事件 addMapControl();//向휰图添加控? addMarker();//向地图中添Ͳһcˊmarker addPolyline();//向地图中添加? } //创建圡图函数? function createMap(){ var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地? var point = new BMap.Point(120.911459,31.34101);//定义一个中心点坡标 map.centerAndZoom(point,17);//设定地娓的中心点和坐标并将地图显示在地FܾͱŰ容器? window.map = map;//将map变量存储在全局 } //地图事件设置函K? function setMapEvent(){ map.enableDragging();//启用地z拖拽事件,默认启?可不? map.enableScrollWheelZoom();//启用圡ް图滚轮放大缩小 map.enableDoubleClickZoom();//启用鼠标双击放大,默认启?可不? map.enableKeyboard();//启用键盘上下վڃ߅左右键移动地? } //地图控件添加函数? function addMapControl(){ //向地图中淨v加缩放控件 var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE}); map.addControl(ctrl_nav); //向“ϵ图中添加缩略图控? var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1}); map.addControl(ctrl_ove); //向地图中添加比例尺控? var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT}); map.addControl(ctrl_sca); } //栿注点数? var markerArr = [{title:"赛冠",content:"我的备注",point:"120.912986|31.34209",isOpen:0,icon:{w:23,h:25,l:46,t:21,x:9,lb:12}} ]; //创建marker function addMarker(){ for(var i=0;i<markerArr.length;i++){ var json = markerArr[i]; var p0 = json.point.split("|")[0]; var p1 = json.point.split("|")[1]; var point = new BMap.Point(p0,p1); var iconImg = createIcon(json.icon); var marker = new BMap.Marker(point,{icon:iconImg}); var iw = createInfoWindow(i); var label = new BMap.Label(json.title,{"offset":new BMap.Size(json.icon.lb-json.icon.x+10,-20)}); marker.setLabel(label); map.addOverlay(marker); label.setStyle({ borderColor:"#808080", color:"#333", cursor:"pointer" }); (function(){ var index = i; var _iw = createInfoWindow(i); var _marker = marker; _marker.addEventListener("click",function(){ this.openInfoWindow(_iw); }); _iw.addEventListener("open",function(){ _marker.getLabel().hide(); }) _iw.addEventListener("close",function(){ _marker.getLabel().show(); }) label.addEventListener("click",function(){ _marker.openInfoWindow(_iw); }) if(!!json.isOpen){ label.hide(); _marker.openInfoWindow(_iw); } })() } } //创建InfoWindow function createInfoWindow(i){ var json = markerArr[i]; var iw = new BMap.InfoWindow("<b class='iw_poi_title' title='" + json.title + "'>" + json.title + "</b><div class='iw_poi_content'>"+json.content+"</div>"); return iw; } //创建一个Icon function createIcon(json){ var icon = new BMap.Icon("http://map.baidu.com/image/us_mk_icon.png", new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)}) return icon; } //标注约ؿ数? var plPoints = [{style:"solid",weight:4,color:"#0f0",opacity:0.6,points:["120.909869|31.341527","120.910031|31.341534","120.910058|31.341959","120.912977|31.342113"]} ]; //向地图中添加线函? function addPolyline(){ for(var i=0;i<plPoints.length;i++){ var json = plPoints[i]; var points = []; for(var j=0;j<json.points.length;j++){ var p1 = json.points[j].split("|")[0]; var p2 = json.points[j].split("|")[1]; points.push(new BMap.Point(p1,p2)); } var line = new BMap.Polyline(points,{strokeStyle:json.style,strokeWeight:json.weight,strokeColor:json.color,strokeOpacity:json.opacity}); map.addOverlay(line); } } initMap();//创建和初始化地图 </script> </html>