具有多边形和标记的融合表层 [英] Fusion Table Layer with polygons AND markers

查看:86
本文介绍了具有多边形和标记的融合表层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Google Maps API v3



我使用Fusion Table Layer中的多边形绘制颜色国家的地图。点击多边形后,会打开默认的Fusion Table信息窗口,该窗口已在Web界面中配置。



某些国家/地区在某些缩放级别无法看到所以我希望这些国家有一个多边形和标记,当点击时打开默认的Fusion Table信息窗口。我添加了一个标准的地图标记,但点击时没有办法打开Fusion Table信息窗口。

我已经阅读了文档并查看了示例,但看不到这是如何实现的。这可能吗?

解决方案

管理得到这个工作。



Fusion Table图层,而不是选择KML列,我使用WHERE子句选择Longitude列来指定较小的国家/地区。这使得在位于多边形层顶部的较小国家/地区呈现带有标记的图层。

唯一的缺点是多边形和标记都是可点击的,可以打开复制默认的Fusion Table信息窗口。虽然不是主要问题。


Using Google Maps API v3

I have a map with the countries coloured using polygons from a Fusion Table Layer. When a polygon is clicked it opens the default Fusion Table info window which has been configured in the web interface.

Some of the countries can't be seen at certain zoom levels so I'd like these countries to have a polygon AND marker, which when clicked open the default Fusion Table info window. I did add a standard map marker but there is no way to open the Fusion Table info window when clicked.

I've read through the docs and looked at the examples but can't see how this is achieved. Is this possible?

解决方案

Managed to get this working.

I created a second Fusion Table layer and instead of selecting the KML column I selected the Longitude column with a WHERE clause specifying the smaller countries. This renders a layer with markers on the smaller countries which sits on top of the polygon layer.

The only downside is that both the polygon and marker are both clickable which could open duplicate default Fusion Table info windows. Not a major problem though.

这篇关于具有多边形和标记的融合表层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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