在Google地图中的折线上方设置叠加层

问题描述

| 我一直在尝试使用zindex在折线上方设置叠加层。我尝试使用
overlay.getPanes().overlayLayer.style[\'zIndex\'] = 1001; 
并将折线的zindex设置为1。有人知道正确的方法来使叠加层显示在折线上方吗?     

解决方法

尝试将其放在较高的窗格中,“ floatPane”为最高。 窗格上的信息:http://code.google.com/apis/maps/documentation/javascript/overlays.html#Initializing