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
This commit is contained in:
Tim Schaub
2010-03-25 17:04:26 +00:00
parent e7d3e64908
commit 14ac071f20

View File

@@ -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]);