gmap插件有问题 [英] Problem with gmap plugin

查看:59
本文介绍了gmap插件有问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个问题,

1.常见问题,标记不在视图面板的中心。

2.如何设置纬度和经度而不是地址?



我用这段代码来显示地图:



I have 2 problems,
1. usual problem, marker is not in center of the view panel.
2. how can I set latitude and longitude instead of address?

I use this code to show the map:

 try {
    $('#map').gmap3({
            action: 'addMarker',
        address: "No 8, N Khayyam, Urmia, Iran",
            map:{
                center: true,
                zoom: 14
                },
            },
        {action: 'setOptions', args:[{scrollwheel:true}]}
    );
} catch(err) {

}





和网站地址是:Proma9最新的标签菜单。

的纬度和经度是:37.546245,45.066581



感谢您的帮助



and the website address is: Proma9 the latest tab menu.
also the latitude and longitude is: 37.546245,45.066581

Thanks for your help

推荐答案

' # map')。gmap3({
action:' addMarker'
地址: No 8,N Khayyam,Urmia,Iran
map :{
center: true
zoom: 14
} ,
},
{action:' setOptions',args:[{ scrollwheel: true }]}
);
} catch (错误){

}
('#map').gmap3({ action: 'addMarker', address: "No 8, N Khayyam, Urmia, Iran", map:{ center: true, zoom: 14 }, }, {action: 'setOptions', args:[{scrollwheel:true}]} ); } catch(err) { }





和网站地址是:Proma9最新的标签菜单。

的纬度和经度是:37.546245,45.066581



感谢您的帮助



and the website address is: Proma9 the latest tab menu.
also the latitude and longitude is: 37.546245,45.066581

Thanks for your help


这篇关于gmap插件有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆