【问题标题】:Panoramio & Weather Layers zIndex Lower Than Polygon Overlay Google Maps API V3Panoramio & Weather Layers zIndex 低于 Polygon Overlay Google Maps API V3
【发布时间】:2012-04-22 22:28:57
【问题描述】:

是否可以让 Panoramio Pictures 和 WeatherLayer 图标出现在多边形上方(zIndex 高于)?

我有一张带有透明多边形叠加层的地图,当我将 Panoramio 或 WeatherLayers 添加到地图时,Panoramio 照片和天气图标会出现在多边形叠加层下方。

可以在多边形下方看到图片和天气图标,因为多边形是部分透明的,但用户无法与这些照片或图标进行交互,因为多边形位于它们之上。

下面的屏幕截图显示了一个例子:

您可以查看示例页面here

您可以添加和删除不同的叠加层/图层。我尝试将多边形的 zIndex 设置为负数,但它们总是出现在 Panoramio 和 WeatherLayer 图标上方。

PanoramioLayerPanoramioLayerOptions API 参考并未提及 zIndex。 WeatherLayerWeatherLayerOptions API 引用也是如此。

【问题讨论】:

    标签: google-maps google-weather-api


    【解决方案1】:

    您需要为多边形设置选项: 可点击:错误

    但是所有多边形的鼠标事件都不起作用

    【讨论】:

      猜你喜欢
      • 2011-12-17
      • 1970-01-01
      • 2023-04-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多