From 14ac071f200017e8e9b9a91a2b8be2729f4c8c81 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 25 Mar 2010 17:04:26 +0000 Subject: [PATCH] Demonstrate the control of z-index in different render intents. git-svn-id: http://svn.openlayers.org/trunk/openlayers@10144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/stylemap.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/stylemap.html b/examples/stylemap.html index 73afff3d69..0c39e1b7a0 100644 --- a/examples/stylemap.html +++ b/examples/stylemap.html @@ -38,18 +38,21 @@ pointRadius: "${type}", // sized according to type attribute fillColor: "#ffcc66", strokeColor: "#ff9933", - strokeWidth: 2 + strokeWidth: 2, + graphicZIndex: 1 }), "select": new OpenLayers.Style({ fillColor: "#66ccff", - strokeColor: "#3399ff" + strokeColor: "#3399ff", + graphicZIndex: 2 }) }); // Create a vector layer and give it your style map. - var points = new OpenLayers.Layer.Vector( - 'Points', {styleMap: myStyles} - ); + var points = new OpenLayers.Layer.Vector("Points", { + styleMap: myStyles, + rendererOptions: {zIndexing: true} + }); points.addFeatures(features); map.addLayers([wms, points]);