Commit Graph
100 Commits
Author SHA1 Message Date
Éric Lemoine 5c5fcb7e06 Use @exportSymbol for exporting ol.webgl.SUPPORTED
For consistency with the way we export ol.DeviceOrientation.SUPPORTED and ol.Geolocation.SUPPORTED.
2013-09-28 22:47:25 +02:00
Éric Lemoine 925b5d285a Fix export for ol.DeviceOrientation.SUPPORTED 2013-09-28 22:44:59 +02:00
Éric Lemoine 43561c302e Fix export for ol.Geolocation.SUPPORTED 2013-09-28 22:44:35 +02:00
Éric Lemoine b2c336c29e Use typedef in source code for SourceOptions 2013-09-23 17:53:43 +02:00
Éric Lemoine aa5214d3a1 Add an "accessible" example 2013-09-16 22:51:57 +02:00
Éric Lemoine b81a4e875b Remove noModifierKeys condition for keyboad zoom
Refs #917. With the key hanler now attached to the map target by default we can remove the noModifierKeys condition for the keyboard zoom interaction. This will prevent the back button shortcut (alt + <back arrow>) to work, but it's ok, the map is focused so it's the one with the highest priority.
2013-09-16 22:51:44 +02:00
Éric Lemoine f863ee9e37 Attach key handler to map target 2013-09-16 22:43:26 +02:00
Éric Lemoine 4990c797d1 WMTS tiles touching the extent are excluded 2013-09-16 15:53:13 +02:00
Éric Lemoine 832be21c0f WMS tiles touching the extent are excluded 2013-09-16 15:52:52 +02:00
Éric Lemoine 70c66d4cf1 Add ol.extent.touches 2013-09-16 15:51:12 +02:00
Éric Lemoine 009172951c WebGL image layer tests require the common proj 2013-09-15 10:37:22 -06:00
Éric Lemoine ecd82297a0 Better setup/teardown for ol.proj tests 2013-09-15 10:37:01 -06:00
Éric Lemoine 8301b01395 Remove ol.Object#bindTo noNotify option 2013-09-13 16:46:49 +02:00
Éric Lemoine ba3f97d50a Change the interaction condition signature 2013-09-12 18:08:01 +02:00
Éric Lemoine 78a3ac46dd Rename options type for ol.source.TileImage 2013-09-11 18:28:03 +02:00
Éric Lemoine 7db1b4b337 Rename file for ol.source.TileImage 2013-09-11 18:28:03 +02:00
Éric Lemoine 762fed6f8d Change Tiled to Tile in a comment 2013-09-10 09:41:38 +02:00
Éric Lemoine 8a7e13a50c Rename tiledwmssource.js to tilewmssource.js 2013-09-10 09:41:38 +02:00
Éric Lemoine 31cc1f5541 More robust coordinate keys for WMTS and TiledWMS
This uses more robust ZXY coordinate keys, and caches the key to avoid creating garbage each time getKeyZXY is called.
2013-09-09 17:01:38 +02:00
Éric Lemoine 0823ee4ad3 Add getDimensions/updateDimensions to WMTS 2013-09-09 17:00:05 +02:00
Éric Lemoine 02a285665b Remove unneeded FIXME 2013-09-07 23:50:15 +02:00
Éric Lemoine e01344f0da Be stricter with types in WMTS 2013-09-07 23:50:01 +02:00
Éric Lemoine 3036ee01ad Be stricter with types in BingMaps 2013-09-07 23:49:37 +02:00
Éric Lemoine 1e308e34f9 Stricter type def for ol.TileUrlFunctionType 2013-09-07 23:32:38 +02:00
Éric Lemoine 30acfc20c3 Stricter type def for ol.ImageUrlFunctionType 2013-09-07 23:32:30 +02:00
Éric Lemoine fe1f10e797 No need for ol.Map#target_ 2013-09-04 12:08:15 +02:00
Éric Lemoine d68f411e82 Add doc for ol.Collection#getArray 2013-09-02 18:24:07 +02:00
Éric Lemoine 52c58721e1 export ol.Map.prototype.getControls 2013-09-02 14:17:23 +02:00
Éric Lemoine 7e25ecb3dc Remove map from OverlayOptions 2013-09-02 14:15:11 +02:00
Éric Lemoine dd4b2e3e88 Add overlay-related methods to ol.Map 2013-09-02 14:12:54 +02:00
Éric Lemoine 7af4cbb75e Export ol.Collection#getArray 2013-09-02 11:25:52 +02:00
Éric Lemoine 96ef1ed3bd Remove handleMapPostrender extension point 2013-08-31 23:25:08 +02:00
Éric Lemoine 729039ba04 Adapt examples to new signature for ol.Attribution 2013-08-30 16:50:36 +02:00
Éric Lemoine 38ab64c3c3 Adapt sources to new signature for ol.Attribution 2013-08-30 16:50:36 +02:00
Éric Lemoine 818894bb56 ol.Attribution is a single-arg constructor 2013-08-30 16:50:36 +02:00
É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