Merge pull request #959 from probins/controlexamples
Out-of-date examples in control api docs
This commit is contained in:
@@ -17,14 +17,6 @@ goog.require('ol.css');
|
||||
* Provides a button that when clicked fills up the full screen with the map.
|
||||
* When in full screen mode, a close button is shown to exit full screen mode.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* var map = new ol.Map({
|
||||
* controls: ol.control.defaults({}, [
|
||||
* new ol.control.FullScreen()
|
||||
* ]),
|
||||
* ...
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.control.Control}
|
||||
* @param {ol.control.FullScreenOptions=} opt_options Options.
|
||||
|
||||
@@ -34,14 +34,6 @@ ol.control.MousePositionProperty = {
|
||||
* shown in the top right corner of the map but this can be changed by using
|
||||
* a css selector .ol-mouse-position.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* var map = new ol.Map({
|
||||
* controls: ol.control.defaults({}, [
|
||||
* new ol.control.MousePosition({projection: ol.proj.get('EPSG:4326')})
|
||||
* ]),
|
||||
* ...
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.control.Control}
|
||||
* @param {ol.control.MousePositionOptions=} opt_options Mouse position options.
|
||||
|
||||
@@ -43,16 +43,6 @@ ol.control.ScaleLineUnits = {
|
||||
/**
|
||||
* Create a control to help users estimate distances on a map.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* var map = new ol.Map({
|
||||
* controls: ol.control.defaults({}, [
|
||||
* new ol.control.ScaleLine({
|
||||
* units: ol.control.ScaleLineUnits.IMPERIAL
|
||||
* })
|
||||
* ]),
|
||||
* ...
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.control.Control}
|
||||
* @param {ol.control.ScaleLineOptions=} opt_options Scale line options.
|
||||
|
||||
Reference in New Issue
Block a user