Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Since #274 we don't need to create an ol.Collection explicitly

  • Loading branch information...
commit 47e5b0475b0e5033dede1eb33f509a84a0944b89 1 parent a66f26f
Andreas Hocevar ahocevar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  examples/style-rules.js
2  examples/style-rules.js
View
@@ -123,7 +123,7 @@ vector.parseFeatures({
var map = new ol.Map({
- layers: new ol.Collection([vector]),
+ layers: [vector],
controls: ol.control.defaults({
attribution: false
}),
Please sign in to comment.
Something went wrong with that request. Please try again.