Expose the map renderer type to the public API

In the case  where the map decides itself which renderer to use. It can
be convenient for the developer to have knowledge of the choice made.
This commit is contained in:
Hadrien Tulipe
2014-05-01 18:12:48 +02:00
parent d9c5e0c1ba
commit 1d6f9ca80b
5 changed files with 39 additions and 0 deletions

View File

@@ -163,6 +163,12 @@ ol.renderer.Map.prototype.getMap = function() {
};
/**
* @return {string} Type
*/
ol.renderer.Map.prototype.getType = goog.abstractMethod;
/**
* @param {string} layerKey Layer key.
* @return {ol.renderer.Layer} Layer renderer.