显示具有相同Google地图的博客条目 [英] Displaying blog entries with identical google maps

查看:95
本文介绍了显示具有相同Google地图的博客条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在这里看到我的问题:链接已删除 基本上,我无法在首页上显示帖子的全文,因为地图会发生冲突.

You can see my problem here:link deleted Basically I can not display the full text of my posts on the front page because the maps will conflict.

这些是现在我在首页上显示为折叠的扩展帖子

These are the expanded posts that right now I am displaying as collapse on my front page

链接已删除

链接已删除

一旦我显​​示它们,地图就会重叠 在代码中更改地图名称变量不能解决问题,也不能更改我显示地图的位置的名称(现在它们是相同的,但是我已经尝试过了)

As soon as I display them expanded the maps overlap Changing the map name variable in the code does not solve the problem, neither changing the name of the where I display the maps (right now they are the same but I tried that)

问题:我确实意识到,当我在同一页面上显示两个地图时,将有两个"iniktialize"功能.此外,这两个页面具有相同的Java脚本函数名称.我该如何处理?

Question: I do realize that when I display two maps on the same page there will be two "iniktialize" functions. Also the two pages have identical java script function names. How do I deal with these ?

推荐答案

我确实意识到,当我在同一页面上显示两个地图时,将有两个"iniktialize"功能.此外,这两个页面具有相同的Java脚本函数名称.我该如何处理?

I do realize that when I display two maps on the same page there will be two "iniktialize" functions. Also the two pages have identical java script function names. How do I deal with these ?

您不能同时使用多个具有相同名称的功能(浏览器会选择一个版本,而我们会选择一个版本,不同的浏览器可能会选择不同的版本).请给它们指定不同的名称,或者如果它们对不同的数据执行相同的操作,请使用传入的参数为您提供独特的行为.

You can't have multiple functions with the same name (the browser will pick one version and us it, different browsers might pick different versions). Either give them different names, or if they do the same thing with different data, use the parameters passed in to give you the unique behavior.

这篇关于显示具有相同Google地图的博客条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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