Skip to content

Commit

Permalink
Merge 691a2a6 into 1125e45
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Apr 2, 2015
2 parents 1125e45 + 691a2a6 commit 83431cd
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 56 deletions.
36 changes: 19 additions & 17 deletions externs/olx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ olx.format;
* @typedef {{dataProjection: ol.proj.ProjectionLike,
* featureProjection: ol.proj.ProjectionLike,
* rightHanded: (boolean|undefined)}}
* @api
* @api stable
*/
olx.format.ReadOptions;

Expand Down Expand Up @@ -1570,7 +1570,7 @@ olx.format.ReadOptions.prototype.featureProjection;
* @typedef {{dataProjection: ol.proj.ProjectionLike,
* featureProjection: ol.proj.ProjectionLike,
* rightHanded: (boolean|undefined)}}
* @api
* @api stable
*/
olx.format.WriteOptions;

Expand Down Expand Up @@ -1606,7 +1606,7 @@ olx.format.WriteOptions.prototype.featureProjection;
* geometries.
*
* @type {boolean|undefined}
* @api
* @api stable
*/
olx.format.WriteOptions.prototype.rightHanded;

Expand Down Expand Up @@ -5668,23 +5668,23 @@ olx.source.WMTSOptions.prototype.projection;
/**
* Request encoding. Default is `KVP`.
* @type {ol.source.WMTSRequestEncoding|string|undefined}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.requestEncoding;


/**
* Layer.
* Layer name as advertised in the WMTS capabilities.
* @type {string}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.layer;


/**
* Style.
* Style name as advertised in the WMTS capabilities.
* @type {string}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.style;

Expand Down Expand Up @@ -5713,39 +5713,41 @@ olx.source.WMTSOptions.prototype.tilePixelRatio;
/**
* WMTS version. Default is `1.0.0`.
* @type {string|undefined}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.version;


/**
* Image format. Default is `image/jpeg`.
* @type {string|undefined}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.format;


/**
* Matrix set.
* @type {string}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.matrixSet;


/**
* Dimensions.
* Additional "dimensions" for tile requests. This is an object with properties
* named like the advertised WMTS dimensions.
* @type {Object|undefined}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.dimensions;


/**
* URL.
* A URL for the service. For the RESTful request encoding, this is a URL
* template. For KVP encoding, it is normal URL.
* @type {string|undefined}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.url;

Expand All @@ -5767,9 +5769,9 @@ olx.source.WMTSOptions.prototype.tileLoadFunction;


/**
* Urls.
* An array of URLs. Requests will be distributed among the URLs in this array.
* @type {Array.<string>|undefined}
* @api
* @api stable
*/
olx.source.WMTSOptions.prototype.urls;

Expand Down
6 changes: 3 additions & 3 deletions src/ol/format/geojsonformat.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ ol.format.GeoJSON.prototype.writeFeature;
*
* @param {ol.Feature} feature Feature.
* @param {olx.format.WriteOptions=} opt_options Write options.
* @api
* @return {Object} Object.
* @api stable
*/
ol.format.GeoJSON.prototype.writeFeatureObject = function(
feature, opt_options) {
Expand Down Expand Up @@ -571,7 +571,7 @@ ol.format.GeoJSON.prototype.writeFeatures;
* @param {Array.<ol.Feature>} features Features.
* @param {olx.format.WriteOptions=} opt_options Write options.
* @return {Object} GeoJSON Object.
* @api
* @api stable
*/
ol.format.GeoJSON.prototype.writeFeaturesObject =
function(features, opt_options) {
Expand Down Expand Up @@ -606,7 +606,7 @@ ol.format.GeoJSON.prototype.writeGeometry;
* @param {ol.geom.Geometry} geometry Geometry.
* @param {olx.format.WriteOptions=} opt_options Write options.
* @return {GeoJSONGeometry|GeoJSONGeometryCollection} Object.
* @api
* @api stable
*/
ol.format.GeoJSON.prototype.writeGeometryObject = function(geometry,
opt_options) {
Expand Down
9 changes: 2 additions & 7 deletions src/ol/geom/geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ goog.inherits(ol.geom.Geometry, ol.Object);
* Make a complete copy of the geometry.
* @function
* @return {!ol.geom.Geometry} Clone.
* @api stable
*/
ol.geom.Geometry.prototype.clone = goog.abstractMethod;

Expand Down Expand Up @@ -180,7 +179,6 @@ ol.geom.Geometry.prototype.getSimplifiedGeometry = goog.abstractMethod;
* Get the type of this geometry.
* @function
* @return {ol.geom.GeometryType} Geometry type.
* @api stable
*/
ol.geom.Geometry.prototype.getType = goog.abstractMethod;

Expand All @@ -192,7 +190,6 @@ ol.geom.Geometry.prototype.getType = goog.abstractMethod;
* then use this function on the clone.
* @function
* @param {ol.TransformFunction} transformFn Transform.
* @api stable
*/
ol.geom.Geometry.prototype.applyTransform = goog.abstractMethod;

Expand All @@ -202,17 +199,16 @@ ol.geom.Geometry.prototype.applyTransform = goog.abstractMethod;
* @param {ol.Extent} extent Extent.
* @return {boolean} `true` if the geometry and the extent intersect.
* @function
* @api
*/
ol.geom.Geometry.prototype.intersectsExtent = goog.abstractMethod;


/**
* Translate the geometry.
* Translate the geometry. This modifies the geometry coordinates in place. If
* instead you want a new geometry, first `clone()` this geometry.
* @param {number} deltaX Delta X.
* @param {number} deltaY Delta Y.
* @function
* @api
*/
ol.geom.Geometry.prototype.translate = goog.abstractMethod;

Expand All @@ -230,7 +226,6 @@ ol.geom.Geometry.prototype.translate = goog.abstractMethod;
* string identifier or a {@link ol.proj.Projection} object.
* @return {ol.geom.Geometry} This geometry. Note that original geometry is
* modified in place.
* @api stable
*/
ol.geom.Geometry.prototype.transform = function(source, destination) {
this.applyTransform(ol.proj.getTransform(source, destination));
Expand Down
6 changes: 2 additions & 4 deletions src/ol/geom/simplegeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,8 @@ ol.geom.SimpleGeometry.prototype.applyTransform = function(transformFn) {


/**
* Translate the geometry.
* @param {number} deltaX Delta X.
* @param {number} deltaY Delta Y.
* @api
* @inheritDoc
* @api stable
*/
ol.geom.SimpleGeometry.prototype.translate = function(deltaX, deltaY) {
var flatCoordinates = this.getFlatCoordinates();
Expand Down
15 changes: 9 additions & 6 deletions src/ol/mapbrowserevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,41 +486,44 @@ ol.MapBrowserEventHandler.prototype.disposeInternal = function() {
* @enum {string}
*/
ol.MapBrowserEvent.EventType = {
// derived event types

/**
* A true single click with no dragging and no double click. Note that this
* event is delayed by 250 ms to ensure that it is not a double click.
* @event ol.MapBrowserEvent#singleclick
* @api
* @api stable
*/
SINGLECLICK: 'singleclick',

/**
* A click with no dragging. A double click will fire two of this.
* @event ol.MapBrowserEvent#click
* @api
* @api stable
*/
CLICK: goog.events.EventType.CLICK,

/**
* A true double click, with no dragging.
* @event ol.MapBrowserEvent#dblclick
* @api
* @api stable
*/
DBLCLICK: goog.events.EventType.DBLCLICK,

/**
* Triggered when a pointer is dragged.
* @event ol.MapBrowserEvent#pointerdrag
* @api
*/
POINTERDRAG: 'pointerdrag',

// original pointer event types
/**
* Triggered when a pointer is moved. Note that on touch devices this is
* triggered when the map is panned, so is not the same as mousemove.
* @event ol.MapBrowserEvent#pointermove
* @api
* @api stable
*/
POINTERMOVE: 'pointermove',

POINTERDOWN: 'pointerdown',
POINTERUP: 'pointerup',
POINTEROVER: 'pointerover',
Expand Down
5 changes: 4 additions & 1 deletion src/ol/mapevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ goog.require('goog.events.Event');
* @enum {string}
*/
ol.MapEventType = {

/**
* Triggered after a map frame is rendered.
* @event ol.MapEvent#postrender
* @api
*/
POSTRENDER: 'postrender',

/**
* Triggered after the map is moved.
* @event ol.MapEvent#moveend
* @api
* @api stable
*/
MOVEEND: 'moveend'

};


Expand Down
21 changes: 11 additions & 10 deletions src/ol/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ol.ObjectEventType = {
/**
* Triggered when a property is changed.
* @event ol.ObjectEvent#propertychange
* @api
* @api stable
*/
PROPERTYCHANGE: 'propertychange'
};
Expand All @@ -47,15 +47,15 @@ ol.ObjectEvent = function(type, key, oldValue) {
/**
* The name of the property whose value is changing.
* @type {string}
* @api
* @api stable
*/
this.key = key;

/**
* The old value. To get the new value use `e.target.get(e.key)` where
* `e` is the event object.
* @type {*}
* @api
* @api stable
*/
this.oldValue = oldValue;

Expand Down Expand Up @@ -352,7 +352,7 @@ ol.Object.prototype.bindTo = function(key, target, opt_targetKey) {
* Gets a value.
* @param {string} key Key name.
* @return {*} Value.
* @api
* @api stable
*/
ol.Object.prototype.get = function(key) {
var value;
Expand All @@ -371,7 +371,7 @@ ol.Object.prototype.get = function(key) {
/**
* Get a list of object property names.
* @return {Array.<string>} List of property names.
* @api
* @api stable
*/
ol.Object.prototype.getKeys = function() {
var accessors = this.accessors_;
Expand Down Expand Up @@ -403,7 +403,7 @@ ol.Object.prototype.getKeys = function() {
/**
* Get an object of all property names and values.
* @return {Object.<string, *>} Object.
* @api
* @api stable
*/
ol.Object.prototype.getProperties = function() {
var properties = {};
Expand Down Expand Up @@ -435,7 +435,7 @@ ol.Object.prototype.notify = function(key, oldValue) {
* Sets a value.
* @param {string} key Key name.
* @param {*} value Value.
* @api
* @api stable
*/
ol.Object.prototype.set = function(key, value) {
var accessors = this.accessors_;
Expand All @@ -452,9 +452,10 @@ ol.Object.prototype.set = function(key, value) {


/**
* Sets a collection of key-value pairs.
* Sets a collection of key-value pairs. Note that this changes any existing
* properties and adds new ones (it does not remove any existing properties).
* @param {Object.<string, *>} values Values.
* @api
* @api stable
*/
ol.Object.prototype.setProperties = function(values) {
var key;
Expand Down Expand Up @@ -497,7 +498,7 @@ ol.Object.prototype.unbindAll = function() {
/**
* Unsets a property.
* @param {string} key Key name.
* @api
* @api stable
*/
ol.Object.prototype.unset = function(key) {
if (key in this.values_) {
Expand Down
6 changes: 3 additions & 3 deletions src/ol/source/tilesource.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,21 +280,21 @@ ol.source.TileEventType = {
/**
* Triggered when a tile starts loading.
* @event ol.source.TileEvent#tileloadstart
* @api
* @api stable
*/
TILELOADSTART: 'tileloadstart',

/**
* Triggered when a tile finishes loading.
* @event ol.source.TileEvent#tileloadend
* @api
* @api stable
*/
TILELOADEND: 'tileloadend',

/**
* Triggered if tile loading results in an error.
* @event ol.source.TileEvent#tileloaderror
* @api
* @api stable
*/
TILELOADERROR: 'tileloaderror'

Expand Down

0 comments on commit 83431cd

Please sign in to comment.