Drupal 位置 gmap 节点图未显示在节点页面上
我正在使用 gmap 和位置模块来支持我的内容类型的位置。 我已经配置了这些模块(地图 API 密钥等...),因此当我编辑/添加新节点时,我可以通过鼠标指向来选择/设置纬度。 我还可以写地址等等。 但是当我查看我的节点图时没有显示。我只能看到地址字段。
为什么这么混乱?
我已检查管理/内容/类型设置页面中的显示字段设置,并且所有字段都设置为可见。 我在这里缺少什么?为什么地图不像节点编辑页面那样简单可见?
I am using gmap and location modules to support my content type's location.
I have configured those modules (Map API key, etc...) so when I edit / add new node I get pretty google map to choose/set lattitude jus by mouse pointing.
I can put also address, etc..
But when I view my node map is not showing up. I can only see address fields.
Why it is so confusing?
I have check display fields settings in admin/content/types settings page and all fields are set to be visible.
What am I missing here? Why map is not simply visible as the same as in the node edit page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
标准主题不包括实际的地图,但它很容易做到。创建地图所需使用的只是
gmap_simple_map
函数。我过去在 location.tpl.php 中这样做过,因为我通常想覆盖任何内容。因此,我在其底部添加类似的内容以包含地图:The standard theming doesn't include an actual map, but it's pretty easy to do. All you need to use to create the map is the
gmap_simple_map
function. I've done this in the location.tpl.php in the past as I usually want to override that anything. So I add something like this in the bottom of it to include the map:请参阅此链接:GMap、位置模块和视图
以下是您需要执行的步骤:
view.module
view.module
配置Please see this link: GMap, Location Module and Views
Here are the steps you need to take:
view.module
view.module
configuration