简体   繁体   English

在“ jQuery”选项卡式窗格中显示google map

[英]displaying google map in Jquery tabbed pane

Can anybody help me to display google map in jquery tabbed pane! 谁能帮我在jquery标签式窗格中显示google map! I am using codigniter, where i get the latitude and logitude from controller file. 我正在使用codigniter,从控制器文件中获取纬度和经度。

My concern is that map is not properly displayed in the tab pane. 我担心的是,选项卡窗格中未正确显示地图。

Thanks 谢谢

Have you heard of static maps api? 您听说过静态地图API吗? you can create images out of google maps using it. 您可以使用它从Google地图中创建图像。

Read more about it here https://developers.google.com/maps/documentation/imageapis/ 在这里了解更多有关它的信息https://developers.google.com/maps/documentation/imageapis/

I tried to implement it inside the tabs and it worked fine. 我试图在选项卡中实现它,并且效果很好。 Check out this example here http://jsfiddle.net/Z3Lyu/ 在此处查看此示例http://jsfiddle.net/Z3Lyu/

Seomthing like below will create the map 如下图所示,将创建地图

<img src="http://maps.googleapis.com/maps/api/staticmap?center=-15.800513,-47.91378&zoom=11&size=200x200&sensor=false">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM