V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
qq7588245
V2EX  ›  前端开发

百度地图 js API 标注不居中怎么办?用 iframe 包进来的。

  •  1
     
  •   qq7588245 · 2016-10-21 16:11:09 +08:00 · 1940 次点击
    这是一个创建于 2760 天前的主题,其中的信息可能已经有所发展或是发生改变。

    代码如下: var map = new BMap.Map("appmap"); var point = new BMap.Point(); map.centerAndZoom(point, 15); map.addControl(new BMap.ZoomControl()); var myIcon = new BMap.Icon("/images/map_marker.png", new BMap.Size(30,32)); var marker2 = new BMap.Marker(point,{icon:myIcon}); map.addOverlay(marker2);

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3137 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:04 · PVG 22:04 · LAX 07:04 · JFK 10:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.