[OpenLayers-Users] zindex issue, pinpoint not clickable
Andreas Hocevar
ahocevar at opengeo.org
Mon Feb 13 09:03:23 EST 2012
Hi,
you haven't turned zIndexing on. rendererOptions is not a style
property, but a layer config option. Try the following:
Layer = new OpenLayers.Layer.Vector("top layer", {
rendererOptions: {zIndexing: true},
style: {...}
});
Andreas.
On Mon, Feb 13, 2012 at 10:05 AM, takakot <takako.tucker at bbc.co.uk> wrote:
> I’m having a problem with z-index and wonder you could help.
>
> I’ve successfully set z-index using:
>
>
> Layer = new OpenLayers.Layer.Vector("top layer", {
> style: {
> rendererOptions: { zIndexing: true },
> externalGraphic: "/desktop/img/map/location.gif",
> graphicWidth: 42,
> graphicHeight: 42
> }
> }),
> Layer.setZIndex( 745 );
>
> So this layer comes on top of other three layers I have.
> On the layer underneath this layer, I have different type of pinpoints.
> The problem is when the top layer gets displayed; I can’t click on any of
> those pinpoints on the layer underneath.
> It seems to be that the top layer takes over and covers the whole thing and
> the layer underneath can’t be clicked.
>
> Have you had any experience with an issue like this? If so, could you please
> advice?
>
> Thanks as always.
>
> Takako
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/zindex-issue-pinpoint-not-clickable-tp4464352p4464352.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list