Symbolizers with method for creating literals

This commit is contained in:
Tim Schaub
2013-02-19 22:24:21 -07:00
parent 1faa6214f1
commit 7141721bb1
8 changed files with 500 additions and 6 deletions

View File

@@ -25,6 +25,24 @@ ol.Feature = function(opt_geometry, opt_values) {
goog.inherits(ol.Feature, ol.Object);
/**
* @return {Object} Attributes object.
*/
ol.Feature.prototype.getAttributes = function() {
// TODO: see https://github.com/openlayers/ol3/pull/217
// var keys = this.getKeys(),
// len = keys.length,
// attributes = {},
// i, key
// for (var i = 0; i < len; ++ i) {
// key = keys[i];
// attributes[key] = this.get(key);
// }
// return attributes;
return this;
};
/**
* @return {ol.geom.Geometry} The geometry (or null if none).
*/