# HG changeset patch # User cin # Date 1512550119 -10800 # Node ID 60f6493e28927ec9ac27352d063d49f66e182572 # Parent 7c22fc01fcecaa2c010f3d8578fbc2ec5148bde5 Added projection property to djol/VectorStore diff -r 7c22fc01fcec -r 60f6493e2892 src/djol/VectorStore.js --- a/src/djol/VectorStore.js Thu Nov 30 11:01:22 2017 +0300 +++ b/src/djol/VectorStore.js Wed Dec 06 11:48:39 2017 +0300 @@ -33,6 +33,8 @@ null, { _source: null, // ol3.source.Vector + _projection: null, + _subscriptions: null, constructor: function (opts) { @@ -45,12 +47,18 @@ var me = this; me._source = opts.source; + if (opts.projection) + me._projection = ol.proj.get(opts.projection); }, getSource: function () { return this._source; }, + getProjection: function() { + return this._projection; + }, + get: function (id) { return this._source.getFeatureById(id); },