Commit Graph
100 Commits
Author SHA1 Message Date
Éric Lemoine 561581cf8b Move exports file for proj 2013-08-29 15:38:00 +02:00
Éric Lemoine a86ea051bf Move and rename exports file for ol.expr 2013-08-29 15:24:52 +02:00
Éric Lemoine 0c091e868c ol.Feature.prototype.get need not be exported
get is not overridden in ol.Feature.prototype, so there's no need for a specific export.
2013-08-29 14:05:25 +02:00
Éric Lemoine 3deeaa21c7 ol.layer.Vector pass original options to parent
This makes it possible to pass arbitrary property to ol.layer.Vector and use layer.get('property_name') to get the value of properties.
2013-08-28 14:13:37 +02:00
Éric Lemoine d1e879e03f Use ol.Collection#getElement in tests 2013-08-27 22:11:33 +02:00
Éric Lemoine 9895f879f9 Export ol.CollectionEvent#getElement 2013-08-27 22:08:26 +02:00
Éric Lemoine 9f2c351057 Use ol.CollectionEvent#getElement in LayerGroup 2013-08-27 22:07:45 +02:00
Éric Lemoine b9f2f7bcb4 Add ol.CollectionEvent#getElement 2013-08-27 22:07:03 +02:00
Éric Lemoine f273be6597 Export ol.source.Source#getExtent 2013-08-27 15:42:55 +02:00
Éric Lemoine d0f793b7a0 Fix bad option name in ol.control.defaults 2013-08-19 17:00:43 +02:00
Éric Lemoine d6d15db6e8 Use @exportFunction to export animation functions 2013-08-19 17:00:43 +02:00
Éric Lemoine f67d3dc165 Use @exportFunction to export ol.interaction.defaults 2013-08-19 17:00:43 +02:00
Éric Lemoine 29a2d2a9f7 Use @exportFunction to export ol.control.defaults 2013-08-19 17:00:43 +02:00
Éric Lemoine 169e986b28 Remove 2nd arg to ol.interaction.defaults 2013-08-19 17:00:43 +02:00
Éric Lemoine 3d2d45e01f Remove 2nd arg to ol.control.defaults 2013-08-19 17:00:37 +02:00
Éric Lemoine 3f6b9c9434 Use ol.Collection#extend in examples
This commit changes the examples to using ol.control.defaults().extend to extend the collection of controls. This is in preparation for a future commit that will remove the 2nd argument to ol.control.defaults. The same is done for ol.interaction.defaults.
2013-08-19 14:25:38 +02:00
Éric Lemoine 41fe103fa4 Export ol.Collection#extend 2013-08-19 14:25:38 +02:00
Éric Lemoine 6576a49178 Make ol.Collection#extend return this
This to be able to do this:

new ol.Map({
  controls: ol.control.defaults().extend([new MyControl()]),
  ...
})
2013-08-19 14:25:38 +02:00
Éric Lemoine 77adbdfa7a Use per-animation function modules
Currently the animation functions share the same module, namely ol.animation. We do differently for ol.control.defaults and ol.interaction.defaults, with ol.control.defaults and ol.interaction.defaults module. This commit replaces the ol.animation module by four modules, one for each animation function.

This makes things more consistent, and will make it possible to use the @exportFunction annotation for the exporting of the animation functions.
2013-08-19 14:25:38 +02:00
Éric Lemoine a37f114e4b Add export annotation @exportFunction
This commit adds a new export annotation: @exportFunction. @exportFunction is to be used to declare functions that take an options object literal as their first arguments. @exportFunction is to regular functions as @exportClass is to constructors.

The usage of @exportFunction is as follows:

@exportFunction ol.control.defaults ol.control.DefaultsOptions ol.Collection

Note: the Function#export method uses a recursive function. This is to handle nested options.
2013-08-19 14:01:57 +02:00
Éric Lemoine 8d09be7134 No reference to internal types in externs file
Currently we have things like like in the generated externs file (types.js):

/**
 * @type {ol.control.AttributionOptions|undefined}
 */
olx.control.DefaultsOptionsExtern.prototype.attributionOptions;

It doesn't make sense to have external object properties whose types are
internal (ol.control.AttributionOptions in the above example).

With this commit, the generate-exports.py script generates this:

/**
 * @type {olx.control.AttributionOptionsExtern|undefined}
 */
olx.control.DefaultsOptionsExtern.prototype.attributionOptions;
2013-08-19 13:54:26 +02:00
Éric Lemoine fef6359f75 Update key in bing-maps example 2013-07-17 10:21:28 +02:00
Éric Lemoine 907476f566 No need to impl setMap in ZoomToExtent control 2013-07-16 17:13:38 +02:00
Éric Lemoine 42d02e064e Export ol.layer.Layer and its getSource func 2013-07-12 10:21:01 +02:00
Éric Lemoine 9b039d76ea Export ol.source.TileSource and its getTileGrid func 2013-07-12 10:20:02 +02:00
Éric Lemoine b2fc570328 Export tilegrid.WMTS functions 2013-07-12 10:12:51 +02:00
Éric Lemoine c51265502d Export TileGrid functions 2013-07-12 10:12:30 +02:00
Éric Lemoine 3e4d39b228 Export ol.View2D#getZoom 2013-07-11 09:50:31 +02:00
Éric Lemoine daa03b5ef7 @class doc for View2D 2013-07-09 15:28:31 +02:00
Éric Lemoine 42abdb308a Better docs for View2DOptions 2013-07-09 15:28:31 +02:00
Éric Lemoine 44a9c181aa handleMapPostrender may get a null frameState 2013-07-09 10:06:01 +02:00
Éric Lemoine ccf6aa10ac Zoomslider cannot be added to a map with no target
The zoom slider control's initSlider_ function requires that the control's element is inserted in the document. So if initSlider_ is called before the map have a target then the slider isn't correctly initialized. This commit fixes that by defering the slider initialization until the first handleMapPostrender call.
2013-07-09 10:05:15 +02:00
Éric Lemoine a10d142752 Add ol.View2D#getZoom 2013-07-09 09:30:45 +02:00
Éric Lemoine d9f554e10d Dir build/gh-pages renamed to build/hosted 2013-07-05 20:45:40 +02:00
Éric Lemoine d0e198df93 Use constrainResolution function
Use the constrainResolution function when setting the initial view resolution.
2013-07-04 09:16:04 +02:00
Éric Lemoine e6efa741d2 More type checking for View2D 2013-07-04 09:13:31 +02:00
Éric Lemoine 552853a3b8 Remove unused createContinuous function 2013-07-04 08:58:33 +02:00
Éric Lemoine 0cf4024194 Add ol.View2D.prototype.setZoom 2013-07-04 08:58:32 +02:00
Éric Lemoine 5d5a248344 ol.source.Source#setLogo is not exported 2013-06-28 11:33:02 +02:00
Éric Lemoine 1d6e428e8f ol.source.Source#setAttributions is not exported 2013-06-28 00:10:27 +02:00
Éric Lemoine 2974c74f1a Export ol.tilegrid.TileGrid#getResolutions 2013-06-27 22:37:27 +02:00
Éric Lemoine 943bad6e17 Add an IGN WMTS example 2013-06-27 22:37:27 +02:00
Éric Lemoine a19cb9ca64 Sort matrixIds by scaleDenominator
We cannot assume that the matrixIds are ordered in the matrixSet. For example, they're not ordered in http://wxs.ign.fr/cle/geoportail/wmts?SERVICE=WMTS&REQUEST=GetCapabilities.
2013-06-27 21:36:14 +02:00
Éric Lemoine e6e98a6ca2 Fix WMTS requestEncoding 2013-06-27 21:36:14 +02:00
Éric Lemoine 6fc4aa68b6 Remove ol.MapBrowserEvent#stopOtherInteractions
and check for false/true in the return from handleMapBrowserEvent. Refs #791.
2013-06-27 14:43:00 +02:00
Éric Lemoine 020d528e73 Tile has a child if z < maxZoom 2013-06-26 07:18:59 +02:00
Éric Lemoine b0dde2ecb4 Do not call setMap(null) if control not in map 2013-06-20 16:47:23 +02:00
Éric Lemoine be86b83b67 Add addControl and removeControl methods to ol.Map 2013-06-20 14:51:10 +02:00
Éric Lemoine b85520f504 The map now has a collection of controls 2013-06-20 14:39:20 +02:00
Éric Lemoine 93fd685ca7 Display hue/saturation value in button text 2013-05-31 15:47:17 +02:00
Éric Lemoine 84b1886666 Display brightness/contrast value in button text 2013-05-31 15:45:40 +02:00
Éric Lemoine 124b195d3e handleMapPostrender returns undefined
Without this we get the following warning from the compiler:

JSC_EXPORTED_FUNCTION_UNKNOWN_RETURN_TYPE. Unable to determine return type for exported function ol.control.Control.prototype.handleMapPostrender at ../src/ol/control/control.js line 79 : 51

I'm not sure why explicitely specifying the return type is required here.
2013-05-10 14:04:50 +02:00
Éric Lemoine 3a4fc2a99a Use our own null function for handleMapPostrender
If we use ol.control.Control.prototype.handleMapPostrender = goog.nullFunction the API doc doesn't show the mapEvent parameter of the handleMapPostRender function.
2013-05-10 10:56:39 +02:00
Éric Lemoine 88352092ee Externalize Control.handleMapPostrender 2013-05-10 10:45:24 +02:00
Éric Lemoine c845682ecb Export Control.getMap 2013-05-10 10:24:11 +02:00
Éric Lemoine 4e51888651 Add a custom controls example
Inspired from @cedricmoullet's ZoomExtent example in https://github.com/cedricmoullet/ol3/commit/3312c37ed0ac93e9b3c2cb0cea76a070ea1c2cf4.
2013-05-10 10:24:11 +02:00
Éric Lemoine 9685c87bc9 Create ol.inherits alias, and export it 2013-05-10 10:24:11 +02:00
Éric Lemoine 7a71f107cb Export and externalize Control.setMap 2013-05-10 10:24:11 +02:00
Éric Lemoine 41fb355804 New gslint doesn't like va_filters 2013-05-10 00:13:15 +02:00
Éric Lemoine 410f35bb44 Use latest gjslint version (2.3.10) 2013-05-10 00:13:05 +02:00
Éric Lemoine c34d637de1 Fix typo in View2D:getExtent 2013-05-09 23:42:55 +02:00
Éric Lemoine ca332a3fef Minor fix to the generate-exports.py script
Now that we correctly export the ol.animation.*, ol.easing.* and ol.coordinate.* symbols we can make the generate-exports.py script work for more cases.
2013-05-09 22:46:08 +02:00
Éric Lemoine 4b7f3e85c2 No need to export ol.coordinate 2013-05-09 22:45:20 +02:00
Éric Lemoine f47ac87f12 No need to export ol.easing 2013-05-09 22:45:11 +02:00
Éric Lemoine 17e779177b ol.easing.* functions are symbols 2013-05-09 22:44:49 +02:00
Éric Lemoine 31930290cf No need to export ol.animation 2013-05-09 22:44:11 +02:00
Éric Lemoine a96031f435 ol.animation.* functions are symbols 2013-05-09 22:43:04 +02:00
Éric Lemoine 1d709cc6ac Use closure_linter-2.3.9.tar.gz
closure_linter-latest.tar.gz is no longer available in http://closure-linter.googlecode.com/files/, so use closure_linter-2.3.9.tar.gz.
2013-05-09 21:23:31 +02:00
Éric Lemoine 8779b90f7c Remove google.exports
This .exports file made goog.require be exported as a null function. This was needed to be able to run the ol3 examples uncompiled against the ol.js build. Now that host-examples target removes the goog.require statements from the examples' js files (74b8fea6) we don't need to export goog.require anymore.
2013-05-09 21:13:20 +02:00
Éric Lemoine 1281d9987a Add and export View2D.calculateExtent 2013-04-30 09:39:09 +02:00
Éric Lemoine aa5a571ab1 Always set CLOSURE_NO_DEPS to true 2013-04-30 09:25:09 +02:00
Éric Lemoine d3d0d1e007 Test isElement instead of isDef (thanks @fredj) 2013-04-23 14:44:36 +02:00
Éric Lemoine 29e69d3833 Simplify teleport example 2013-04-23 14:05:11 +02:00
Éric Lemoine 11efafffd8 Make setTarget accept a string 2013-04-23 14:04:46 +02:00
Éric Lemoine 8e8804caf1 Add a teleport map example 2013-04-23 10:42:18 +02:00
Éric Lemoine 2dfe36b588 Map target may be undefined 2013-04-23 10:42:18 +02:00
Éric Lemoine 7547b50bd8 Add map property "target" 2013-04-23 10:42:18 +02:00
Éric Lemoine a5519c2645 Add missing description for @return tag 2013-04-21 21:51:14 +02:00
Éric Lemoine 4f1b7c70b8 Remove unused function 2013-04-21 21:50:03 +02:00
Éric Lemoine 6d282e939d Update Bing Maps key (Expiration Date: 07/16/2013) 2013-04-17 13:23:16 +02:00
Éric Lemoine 6f34595312 ZoomSlider uses non-existing View2D functions 2013-04-17 10:53:23 +02:00
Éric Lemoine 49bf204c13 pan interactions call requestRenderFrame on dragend 2013-04-15 10:46:55 +02:00
Éric Lemoine 61204d10d8 setHint returns new hint value 2013-04-15 10:46:30 +02:00
Éric Lemoine b501230164 Bigger + and - zoom buttons on touch devices 2013-04-14 23:28:45 +02:00
Éric Lemoine 74feabb4c4 Fix rotation anchor for touch rotate interation 2013-04-14 22:47:52 +02:00
Éric Lemoine 4b395c72fa Fix zoom anchor for touch zoom interaction 2013-04-14 22:47:05 +02:00
Éric Lemoine 78b2983fdf maxZoom 18 in localized-openstreetmap example 2013-04-14 22:14:05 +02:00
Éric Lemoine 48f0e7e2ec More View2D configuration flexibility 2013-04-14 22:12:12 +02:00
Éric Lemoine 778aec45d8 View2D option "numZoomLevels" changed to "maxZoom"
This is to be consistent with ol.source.XYZ and ol.tilegrid.XYZ.
2013-04-14 22:00:09 +02:00
Éric Lemoine 1fe3091f43 Fix bug in canvas.TileLayer comments 2013-04-12 17:40:28 +02:00
Éric Lemoine 6cc019c031 Add comments to ol.renderer.canvas.TileLayer 2013-04-12 17:27:40 +02:00
Éric Lemoine d1021b6ee0 Refactor and fix canvas tile layer renderer 2013-04-11 09:26:57 +02:00
Éric Lemoine b6a6ba95cc Touch zoom interaction requests render frames 2013-04-10 16:15:58 +02:00
Éric Lemoine 703842a021 Touch rotate interaction requests render frames 2013-04-10 16:15:58 +02:00
Éric Lemoine 1e3e7fb0c1 Touch pan interaction request render frames 2013-04-10 16:15:58 +02:00
Éric Lemoine ce985ba272 Remove extra /** 2013-04-10 16:15:58 +02:00
Éric Lemoine 38914bc95b addPreRenderFunction calls requestRenderFrame
So there's no need to call requestRenderFrame prior to calling addPreRenderFunction.
2013-04-10 16:15:58 +02:00
Éric Lemoine a694661793 OpenStreetMap to OSM renaming
OSM is a well-known name, and is shorter than OpenStreetMap.
2013-04-10 10:07:49 +02:00
Éric Lemoine 4e4d22b4e2 Target "check" depends on ol-all.js 2013-04-10 09:15:15 +02:00
Éric Lemoine 14e066ac78 Add exports.js as an input to ol-all 2013-04-10 09:14:51 +02:00