?!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.crowhurstcommunityagriculture.org/"> <meta name="mobile-agent" content="format=html5;url=http://m.crowhurstcommunityagriculture.org/"> <meta http-equiv="Cache-Control" content="no-siteapp" /> <meta http-equiv="Cache-Control" content="no-transform" /> <script> (function(){ var canonicalURL, curProtocol; var x=document.getElementsByTagName("link"); if(x.length > 0){ for (i=0;i<x.length;i++){ if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){ canonicalURL=x[i].href; } } } if (!canonicalURL){ curProtocol = window.location.protocol.split(':')[0]; } else{ curProtocol = canonicalURL.split(':')[0]; } if (!canonicalURL) canonicalURL = window.location.href; !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="hcgvfh" > <div style='display:none'><q id='DvIPDb'><h1><a href="http://crowhurstcommunityagriculture.org/" title="彩神8下载">彩神8下载</a></h1></q><tt id='DvIPDb'><dd id='DvIPDb'><noscript id='DvIPDb'><dl id='DvIPDb'><i id='DvIPDb'></i><dd id='DvIPDb'></dd></dl></noscript></dd></tt><tr id='DvIPDb'></tr><td id='DvIPDb'></td><q id='DvIPDb'></q><dd id='DvIPDb'></dd><div id='DvIPDb'><button id='DvIPDb'><tfoot id='DvIPDb'><i id='DvIPDb'><dl id='DvIPDb'><i id='DvIPDb'><strike id='DvIPDb'><dt id='DvIPDb'></dt></strike></i></dl></i><pre id='DvIPDb'></pre></tfoot><u id='DvIPDb'></u><small id='DvIPDb'></small></button><tr id='DvIPDb'></tr></div><strike id='DvIPDb'></strike><label id='DvIPDb'></label><button id='DvIPDb'></button><optgroup id='DvIPDb'></optgroup><dd id='DvIPDb'></dd><sup id='DvIPDb'><del id='DvIPDb'><strike id='DvIPDb'><dd id='DvIPDb'></dd></strike></del></sup><fieldset id='DvIPDb'><p id='DvIPDb'></p></fieldset><big id='DvIPDb'><big id='DvIPDb'><address id='DvIPDb'><dl id='DvIPDb'></dl></address><dd id='DvIPDb'></dd><table id='DvIPDb'><abbr id='DvIPDb'><strong id='DvIPDb'><blockquote id='DvIPDb'></blockquote></strong></abbr><td id='DvIPDb'><pre id='DvIPDb'></pre></td></table></big></big><q id='DvIPDb'><abbr id='DvIPDb'><thead id='DvIPDb'></thead></abbr></q><li id='DvIPDb'><q id='DvIPDb'><acronym id='DvIPDb'><dd id='DvIPDb'><td id='DvIPDb'><noframes id='DvIPDb'><tr id='DvIPDb'><strong id='DvIPDb'></strong><small id='DvIPDb'></small><button id='DvIPDb'></button><li id='DvIPDb'><noscript id='DvIPDb'><big id='DvIPDb'></big><dt id='DvIPDb'></dt></noscript></li></tr><ol id='DvIPDb'><option id='DvIPDb'><table id='DvIPDb'><blockquote id='DvIPDb'><tbody id='DvIPDb'></tbody></blockquote></table></option></ol><u id='DvIPDb'></u><kbd id='DvIPDb'><kbd id='DvIPDb'></kbd></kbd></noframes><abbr id='DvIPDb'></abbr></td></dd></acronym></q></li><thead id='DvIPDb'><button id='DvIPDb'><abbr id='DvIPDb'></abbr></button></thead><button id='DvIPDb'><u id='DvIPDb'><u id='DvIPDb'></u></u><tr id='DvIPDb'><optgroup id='DvIPDb'><dd id='DvIPDb'><dfn id='DvIPDb'><tt id='DvIPDb'><thead id='DvIPDb'><optgroup id='DvIPDb'></optgroup></thead></tt><legend id='DvIPDb'></legend><noframes id='DvIPDb'><b id='DvIPDb'><form id='DvIPDb'></form></b></noframes></dfn><pre id='DvIPDb'></pre></dd></optgroup><dl id='DvIPDb'><big id='DvIPDb'><dd id='DvIPDb'><td id='DvIPDb'><dir id='DvIPDb'></dir></td></dd></big><optgroup id='DvIPDb'></optgroup><dfn id='DvIPDb'></dfn></dl></tr></button><strong id='DvIPDb'></strong><ol id='DvIPDb'><dfn id='DvIPDb'><kbd id='DvIPDb'></kbd></dfn></ol><ul id='DvIPDb'></ul><noframes id='DvIPDb'></noframes><blockquote id='DvIPDb'></blockquote><fieldset id='DvIPDb'></fieldset><sup id='DvIPDb'><p id='DvIPDb'><tt id='DvIPDb'><sup id='DvIPDb'><bdo id='DvIPDb'><ol id='DvIPDb'><sup id='DvIPDb'><dl id='DvIPDb'><em id='DvIPDb'><label id='DvIPDb'></label></em></dl></sup></ol></bdo><address id='DvIPDb'></address></sup></tt></p><fieldset id='DvIPDb'><noframes id='DvIPDb'><code id='DvIPDb'><strong id='DvIPDb'></strong></code></noframes></fieldset></sup><sup id='DvIPDb'></sup><div id='DvIPDb'><pre id='DvIPDb'><select id='DvIPDb'></select><td id='DvIPDb'></td></pre></div><kbd id='DvIPDb'><u id='DvIPDb'></u></kbd><div id='DvIPDb'></div><blockquote id='DvIPDb'></blockquote><q id='DvIPDb'></q><th id='DvIPDb'></th><big id='DvIPDb'></big><address id='DvIPDb'><b id='DvIPDb'><select id='DvIPDb'></select></b></address><code id='DvIPDb'></code><ul id='DvIPDb'><strike id='DvIPDb'></strike></ul><noscript id='DvIPDb'></noscript><pre id='DvIPDb'></pre><div id='DvIPDb'><p id='DvIPDb'></p></div><tfoot id='DvIPDb'></tfoot><thead id='DvIPDb'><bdo id='DvIPDb'></bdo></thead><kbd id='DvIPDb'></kbd><p id='DvIPDb'><fieldset id='DvIPDb'><style id='DvIPDb'></style></fieldset></p><acronym id='DvIPDb'><big id='DvIPDb'><code id='DvIPDb'></code></big></acronym><noframes id='DvIPDb'><fieldset id='DvIPDb'></fieldset></noframes><ol id='DvIPDb'></ol><font id='DvIPDb'></font><td id='DvIPDb'><ol id='DvIPDb'></ol></td><center id='DvIPDb'></center><option id='DvIPDb'></option><legend id='DvIPDb'></legend><big id='DvIPDb'></big><sub id='DvIPDb'><ol id='DvIPDb'><li id='DvIPDb'><label id='DvIPDb'></label></li></ol></sub><i id='DvIPDb'><ol id='DvIPDb'></ol></i><del id='DvIPDb'></del><tr id='DvIPDb'><tr id='DvIPDb'><bdo id='DvIPDb'><form id='DvIPDb'><em id='DvIPDb'></em><ins id='DvIPDb'><center id='DvIPDb'><center id='DvIPDb'></center></center></ins><pre id='DvIPDb'><em id='DvIPDb'></em><abbr id='DvIPDb'><legend id='DvIPDb'><div id='DvIPDb'><center id='DvIPDb'></center></div></legend></abbr></pre></form></bdo></tr></tr><b id='DvIPDb'></b><noframes id='DvIPDb'><span id='DvIPDb'></span></noframes><font id='DvIPDb'><ol id='DvIPDb'></ol></font><td id='DvIPDb'><abbr id='DvIPDb'><option id='DvIPDb'><big id='DvIPDb'></big></option></abbr><dfn id='DvIPDb'></dfn></td><form id='DvIPDb'><legend id='DvIPDb'></legend></form><td id='DvIPDb'><strike id='DvIPDb'><blockquote id='DvIPDb'></blockquote></strike></td><sup id='DvIPDb'><fieldset id='DvIPDb'><li id='DvIPDb'></li></fieldset></sup><option id='DvIPDb'></option><thead id='DvIPDb'></thead><del id='DvIPDb'></del><b id='DvIPDb'><tfoot id='DvIPDb'></tfoot><i id='DvIPDb'></i></b><sup id='DvIPDb'></sup><thead id='DvIPDb'></thead><kbd id='DvIPDb'></kbd><acronym id='DvIPDb'><strike id='DvIPDb'></strike></acronym><table id='DvIPDb'><select id='DvIPDb'></select></table><strong id='DvIPDb'></strong><center id='DvIPDb'></center><p id='DvIPDb'><b id='DvIPDb'><bdo id='DvIPDb'><span id='DvIPDb'></span></bdo></b></p><tr id='DvIPDb'><form id='DvIPDb'><strong id='DvIPDb'><dir id='DvIPDb'></dir></strong><th id='DvIPDb'></th></form><strong id='DvIPDb'><select id='DvIPDb'></select></strong></tr><form id='DvIPDb'><pre id='DvIPDb'></pre></form><code id='DvIPDb'></code><optgroup id='DvIPDb'></optgroup><strong id='DvIPDb'><td id='DvIPDb'><table id='DvIPDb'><legend id='DvIPDb'><legend id='DvIPDb'><big id='DvIPDb'><fieldset id='DvIPDb'><q id='DvIPDb'><tfoot id='DvIPDb'><big id='DvIPDb'><tt id='DvIPDb'><thead id='DvIPDb'></thead></tt></big><p id='DvIPDb'></p><button id='DvIPDb'><table id='DvIPDb'><ins id='DvIPDb'></ins><tt id='DvIPDb'><li id='DvIPDb'><thead id='DvIPDb'></thead></li></tt></table></button></tfoot></q></fieldset></big></legend></legend></table><tr id='DvIPDb'><td id='DvIPDb'></td><tfoot id='DvIPDb'></tfoot></tr><strong id='DvIPDb'><span id='DvIPDb'><dfn id='DvIPDb'></dfn><bdo id='DvIPDb'><thead id='DvIPDb'></thead></bdo></span></strong></td></strong><button id='DvIPDb'></button><ol id='DvIPDb'><font id='DvIPDb'><blockquote id='DvIPDb'><center id='DvIPDb'></center></blockquote></font></ol><strong id='DvIPDb'></strong><dl id='DvIPDb'><legend id='DvIPDb'></legend><sub id='DvIPDb'><small id='DvIPDb'></small></sub></dl><style id='DvIPDb'></style><pre id='DvIPDb'><code id='DvIPDb'></code></pre><big id='DvIPDb'></big><font id='DvIPDb'></font><bdo id='DvIPDb'></bdo><dfn id='DvIPDb'><dd id='DvIPDb'><button id='DvIPDb'><strike id='DvIPDb'><div id='DvIPDb'><div id='DvIPDb'><legend id='DvIPDb'></legend></div></div></strike></button><optgroup id='DvIPDb'><q id='DvIPDb'></q></optgroup></dd><ol id='DvIPDb'><q id='DvIPDb'><dfn id='DvIPDb'><button id='DvIPDb'><tbody id='DvIPDb'><tbody id='DvIPDb'></tbody></tbody></button></dfn></q></ol></dfn><dl id='DvIPDb'></dl><fieldset id='DvIPDb'></fieldset><u id='DvIPDb'></u><div id='DvIPDb'><ins id='DvIPDb'></ins></div><strong id='DvIPDb'></strong><center id='DvIPDb'></center><strong id='DvIPDb'></strong><small id='DvIPDb'></small><td id='DvIPDb'><q id='DvIPDb'><q id='DvIPDb'><b id='DvIPDb'><optgroup id='DvIPDb'></optgroup></b></q><ol id='DvIPDb'><bdo id='DvIPDb'></bdo></ol><dd id='DvIPDb'><th id='DvIPDb'></th></dd><blockquote id='DvIPDb'></blockquote><ul id='DvIPDb'><style id='DvIPDb'></style></ul></q></td><noscript id='DvIPDb'></noscript><ol id='DvIPDb'></ol><p id='DvIPDb'></p><strong id='DvIPDb'><big id='DvIPDb'></big><strike id='DvIPDb'><q id='DvIPDb'><sup id='DvIPDb'></sup></q></strike></strong><p id='DvIPDb'><thead id='DvIPDb'><acronym id='DvIPDb'><tfoot id='DvIPDb'><kbd id='DvIPDb'></kbd><form id='DvIPDb'></form></tfoot></acronym></thead></p><fieldset id='DvIPDb'></fieldset><b id='DvIPDb'><dt id='DvIPDb'></dt></b><sup id='DvIPDb'></sup><label id='DvIPDb'></label><noframes id='DvIPDb'><ins id='DvIPDb'></ins></noframes><td id='DvIPDb'></td><dfn id='DvIPDb'></dfn><font id='DvIPDb'><style id='DvIPDb'></style></font><tr id='DvIPDb'><td id='DvIPDb'></td></tr><dfn id='DvIPDb'><ul id='DvIPDb'></ul></dfn><tr id='DvIPDb'></tr><abbr id='DvIPDb'></abbr><strong id='DvIPDb'></strong><dt id='DvIPDb'></dt><span id='DvIPDb'><label id='DvIPDb'><td id='DvIPDb'></td></label><address id='DvIPDb'></address></span><label id='DvIPDb'><bdo id='DvIPDb'><dt id='DvIPDb'><dl id='DvIPDb'></dl></dt></bdo></label><abbr id='DvIPDb'><optgroup id='DvIPDb'></optgroup></abbr><code id='DvIPDb'></code><address id='DvIPDb'><thead id='DvIPDb'></thead></address><td id='DvIPDb'><style id='DvIPDb'><tbody id='DvIPDb'></tbody><strong id='DvIPDb'></strong></style></td><ul id='DvIPDb'><ul id='DvIPDb'></ul></ul><del id='DvIPDb'></del><th id='DvIPDb'><option id='DvIPDb'><legend id='DvIPDb'></legend></option></th><b id='DvIPDb'></b><i id='DvIPDb'><noscript id='DvIPDb'></noscript></i><q id='DvIPDb'></q><select id='DvIPDb'></select><option id='DvIPDb'></option><optgroup id='DvIPDb'><big id='DvIPDb'></big></optgroup><noframes id='DvIPDb'><acronym id='DvIPDb'><em id='DvIPDb'></em><td id='DvIPDb'><div id='DvIPDb'></div></td></acronym><address id='DvIPDb'><big id='DvIPDb'><big id='DvIPDb'></big><legend id='DvIPDb'></legend></big></address></noframes><ul id='DvIPDb'></ul><abbr id='DvIPDb'><p id='DvIPDb'><small id='DvIPDb'><bdo id='DvIPDb'><code id='DvIPDb'><i id='DvIPDb'><legend id='DvIPDb'></legend></i><sub id='DvIPDb'></sub></code></bdo></small></p></abbr><noscript id='DvIPDb'></noscript><tr id='DvIPDb'></tr><select id='DvIPDb'><button id='DvIPDb'><dfn id='DvIPDb'><p id='DvIPDb'></p><q id='DvIPDb'></q></dfn></button><noframes id='DvIPDb'></noframes><b id='DvIPDb'></b></select><font id='DvIPDb'></font><option id='DvIPDb'></option><fieldset id='DvIPDb'></fieldset><noframes id='DvIPDb'><i id='DvIPDb'><div id='DvIPDb'><ins id='DvIPDb'></ins></div></i></noframes><tr id='DvIPDb'></tr><label id='DvIPDb'><small id='DvIPDb'></small><b id='DvIPDb'></b></label><noscript id='DvIPDb'><tr id='DvIPDb'></tr><div id='DvIPDb'></div><noscript id='DvIPDb'></noscript><tr id='DvIPDb'></tr></noscript><center id='DvIPDb'></center><dl id='DvIPDb'></dl><blockquote id='DvIPDb'></blockquote><pre id='DvIPDb'><dl id='DvIPDb'><noframes id='DvIPDb'><i id='DvIPDb'></i></noframes><dt id='DvIPDb'></dt></dl><label id='DvIPDb'><dfn id='DvIPDb'></dfn></label></pre><dir id='DvIPDb'></dir><strike id='DvIPDb'></strike><thead id='DvIPDb'></thead><span id='DvIPDb'></span><i id='DvIPDb'></i><font id='DvIPDb'></font><style id='DvIPDb'></style><font id='DvIPDb'></font><td id='DvIPDb'><select id='DvIPDb'><b id='DvIPDb'><address id='DvIPDb'><noscript id='DvIPDb'><acronym id='DvIPDb'></acronym></noscript></address><style id='DvIPDb'><tbody id='DvIPDb'></tbody></style></b></select><ul id='DvIPDb'><thead id='DvIPDb'></thead></ul></td><strike id='DvIPDb'><dt id='DvIPDb'></dt></strike><dfn id='DvIPDb'></dfn><dir id='DvIPDb'><b id='DvIPDb'></b><font id='DvIPDb'></font></dir><ul id='DvIPDb'></ul><q id='DvIPDb'></q><acronym id='DvIPDb'></acronym><center id='DvIPDb'><strong id='DvIPDb'></strong></center><ins id='DvIPDb'><label id='DvIPDb'></label><span id='DvIPDb'></span></ins><li id='DvIPDb'><blockquote id='DvIPDb'></blockquote></li><th id='DvIPDb'><table id='DvIPDb'></table></th><tfoot id='DvIPDb'></tfoot><ins id='DvIPDb'></ins><table id='DvIPDb'></table><noscript id='DvIPDb'><del id='DvIPDb'><ol id='DvIPDb'><center id='DvIPDb'><ul id='DvIPDb'></ul><div id='DvIPDb'></div></center></ol></del></noscript><strong id='DvIPDb'><legend id='DvIPDb'></legend><td id='DvIPDb'></td></strong><font id='DvIPDb'><font id='DvIPDb'></font></font><noscript id='DvIPDb'><em id='DvIPDb'><form id='DvIPDb'><sub id='DvIPDb'></sub></form><bdo id='DvIPDb'></bdo></em></noscript><address id='DvIPDb'></address><center id='DvIPDb'><del id='DvIPDb'></del><sup id='DvIPDb'></sup></center><kbd id='DvIPDb'></kbd><font id='DvIPDb'><b id='DvIPDb'></b><table id='DvIPDb'></table><blockquote id='DvIPDb'></blockquote></font><big id='DvIPDb'><q id='DvIPDb'><center id='DvIPDb'><button id='DvIPDb'></button></center></q></big><i id='DvIPDb'><form id='DvIPDb'><option id='DvIPDb'></option><dir id='DvIPDb'><thead id='DvIPDb'></thead></dir></form><tr id='DvIPDb'><strike id='DvIPDb'><noframes id='DvIPDb'><dl id='DvIPDb'></dl></noframes></strike><dt id='DvIPDb'></dt></tr></i><dfn id='DvIPDb'></dfn><tbody id='DvIPDb'></tbody><select id='DvIPDb'><dir id='DvIPDb'><noscript id='DvIPDb'><th id='DvIPDb'><strike id='DvIPDb'></strike><small id='DvIPDb'></small></th></noscript><tbody id='DvIPDb'><em id='DvIPDb'><optgroup id='DvIPDb'></optgroup><style id='DvIPDb'><tr id='DvIPDb'></tr><address id='DvIPDb'></address></style></em></tbody><code id='DvIPDb'><noscript id='DvIPDb'><ins id='DvIPDb'><font id='DvIPDb'></font></ins></noscript></code></dir><p id='DvIPDb'></p><dl id='DvIPDb'></dl></select><form id='DvIPDb'><bdo id='DvIPDb'></bdo><optgroup id='DvIPDb'><tbody id='DvIPDb'></tbody></optgroup><blockquote id='DvIPDb'><button id='DvIPDb'><pre id='DvIPDb'><li id='DvIPDb'><tfoot id='DvIPDb'><kbd id='DvIPDb'></kbd></tfoot><fieldset id='DvIPDb'><dd id='DvIPDb'></dd></fieldset></li></pre></button><table id='DvIPDb'></table><span id='DvIPDb'><dl id='DvIPDb'></dl></span></blockquote></form><em id='DvIPDb'><small id='DvIPDb'><blockquote id='DvIPDb'></blockquote></small></em><tfoot id='DvIPDb'></tfoot><del id='DvIPDb'><pre id='DvIPDb'></pre></del><em id='DvIPDb'><acronym id='DvIPDb'><th id='DvIPDb'></th></acronym></em><fieldset id='DvIPDb'></fieldset><code id='DvIPDb'><noframes id='DvIPDb'></noframes></code><form id='DvIPDb'><optgroup id='DvIPDb'><dir id='DvIPDb'></dir></optgroup></form><strong id='DvIPDb'></strong><ins id='DvIPDb'><option id='DvIPDb'></option></ins><dd id='DvIPDb'></dd><span id='DvIPDb'><tbody id='DvIPDb'></tbody></span><strong id='DvIPDb'><pre id='DvIPDb'><form id='DvIPDb'></form></pre></strong><li id='DvIPDb'><abbr id='DvIPDb'><dir id='DvIPDb'></dir><acronym id='DvIPDb'></acronym></abbr></li><ol id='DvIPDb'></ol><strike id='DvIPDb'></strike><label id='DvIPDb'></label><legend id='DvIPDb'><address id='DvIPDb'><thead id='DvIPDb'><tr id='DvIPDb'></tr></thead></address><dt id='DvIPDb'></dt></legend><thead id='DvIPDb'></thead><ins id='DvIPDb'><big id='DvIPDb'></big></ins><kbd id='DvIPDb'></kbd><center id='DvIPDb'><acronym id='DvIPDb'></acronym><code id='DvIPDb'></code></center><ul id='DvIPDb'><pre id='DvIPDb'></pre></ul><style id='DvIPDb'><dt id='DvIPDb'><noframes id='DvIPDb'></noframes></dt><sub id='DvIPDb'></sub><b id='DvIPDb'><thead id='DvIPDb'></thead></b></style><center id='DvIPDb'></center><button id='DvIPDb'></button><bdo id='DvIPDb'><sub id='DvIPDb'><noframes id='DvIPDb'><blockquote id='DvIPDb'><q id='DvIPDb'><noscript id='DvIPDb'></noscript><dt id='DvIPDb'></dt></q></blockquote><noframes id='DvIPDb'><i id='DvIPDb'></i></noframes></noframes></sub></bdo></div> <!--癑֢ٺ地图容器--> <div style="width:435px;height:579px;border:#ccc solid 1px;" id="dituContent"></div> </body> <script type="text/javascript"> //创徏和初始化地图函数Q? function initMap(){ createMap();//创徏地图 setMapEvent();//讄地图事g addMapControl();//向地图添加控? addMarker();//向地图中dmarker } //创徏地图函数Q? function createMap(){ var map = new BMap.Map("dituContent");//在百度地囑֮器中创徏一个地? var point = new BMap.Point(87.619333,43.829541);//定义一个中心点坐标 map.centerAndZoom(point,18);//讑֮地图的中心点和坐标ƈ地图显C在地图容器? window.map = map;//map变量存储在全局 } //地图事g讄函数Q? function setMapEvent(){ map.enableDragging();//启用地图拖拽亡gQ默认启?可不? map.enableScrollWheelZoom();//启用地图滚轮攑֤~小 map.enableDoubleClickZoom();//启用鼠标双击攑֤Q默认启?可不? map.enableKeyboard();//启用键盘上下左右键移动地? } //地图控gd函数Q? function addMapControl(){ //向地图中d񊠾~放控g var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE}); map.addControl(ctrl_nav); //向图中d~略图控? var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:0}); map.addControl(ctrl_ove); //向地图中d比例控? var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT}); map.addControl(ctrl_sca); } //标注Ҏl? var markerArr = [{title:"南京办事?,content:"南京秦淮区太^南\450h亚胦富中?6?,point:"118.796113|32.034291",isOpen:0,icon:{w:23,h:25,l:46,t:21,x:9,lb:12}} ,{title:"新疆办事?,content:"新疆l吾自d乌鲁木齐水漂沟区南湖南?33?,point:"87.619598|43.829678",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("https://map.baidu.com/image/us_cursor.gif", 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; } initMap();//创徏和初始化地图 </script> </html>