Export namespaces or constructors but not functions

This commit is contained in:
Tim Schaub
2013-09-04 13:08:39 -06:00
parent 8ca3f13bd2
commit fa1601f04f
4 changed files with 8 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ goog.require('ol.interaction.defaults');
goog.require('ol.layer.LayerBase');
goog.require('ol.layer.LayerGroup');
goog.require('ol.proj');
goog.require('ol.proj.addCommonProjections');
goog.require('ol.proj.common');
goog.require('ol.renderer.Map');
goog.require('ol.renderer.canvas.Map');
goog.require('ol.renderer.canvas.SUPPORTED');
@@ -1217,7 +1217,7 @@ ol.RendererHints.createFromQueryData = function(opt_queryData) {
};
ol.proj.addCommonProjections();
ol.proj.common.add();
if (goog.DEBUG) {

View File

@@ -13,10 +13,11 @@
@exportProperty ol.ProjectionUnits.METERS
@exportSymbol ol.proj.addProjection
@exportSymbol ol.proj.addCommonProjections
@exportSymbol ol.proj.get
@exportSymbol ol.proj.getTransform
@exportSymbol ol.proj.getTransformFromProjections
@exportSymbol ol.proj.transform
@exportSymbol ol.proj.transformWithProjections
@exportSymbol ol.proj.configureProj4jsProjection
@exportSymbol ol.proj.common.add

View File

@@ -1,4 +1,4 @@
goog.provide('ol.proj.addCommonProjections');
goog.provide('ol.proj.common');
goog.require('ol.proj');
goog.require('ol.proj.EPSG3857');
@@ -8,7 +8,7 @@ goog.require('ol.proj.EPSG4326');
/**
* FIXME empty description for jsdoc
*/
ol.proj.addCommonProjections = function() {
ol.proj.common.add = function() {
// Add transformations that don't alter coordinates to convert within set of
// projections with equal meaning.
ol.proj.addEquivalentProjections(ol.proj.EPSG3857.PROJECTIONS);