开发者

Put several Google Maps on page using Symfony and sfEasyGMapPlugin

I'm using Symfony 1.2.9 and sfEasyGMapPlugin 3.0.0

I need to put two gmaps on on开发者_StackOverflow中文版e page.

I've made custom ma name and DIV's id for each map. But I still can't make it work. Only second map is shown. The first one is not created.

Does anybody knows how to make them work using sfEasyGMapPlugin?


One of the TODO items for sfEasyGMapPlugin is to "correct javascript files that suppose that the map's javascript object is called 'map'".

My guess is that, because of this problem, you can only refer to one map object per page. You could try finding where 'map' is hardcoded and replace it with $gMap. I haven't used the plugin myself, so I can't say for sure. I've only used the Google Maps API directly with Symfony. Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜