Commit Graph
100 Commits
Author SHA1 Message Date
Éric Lemoine fb5ca531d0 Do not assume map.getView returns an ol.View2D 2013-04-08 12:55:00 +02:00
Éric Lemoine 8c9153ffca ZoomSlider animates to final resolution 2013-04-08 12:51:29 +02:00
Éric Lemoine 516f21eb17 Make ZoomSlider use View2D value/resolution funcs 2013-04-08 12:51:14 +02:00
Éric Lemoine 6163f05b2b ZoomSlider setMap deals with undefined resolution 2013-04-08 12:50:12 +02:00
Éric Lemoine 631afb07ab Add value/resolution functions to View2D 2013-04-08 12:28:37 +02:00
Éric Lemoine 928906bd17 Do not always limit num of tile loads per frame 2013-04-06 14:43:10 +02:00
Éric Lemoine 5f47ee9a9c Disable kinetic when multiple touches on screen 2013-04-05 09:23:05 +02:00
Éric Lemoine e128bab625 Do not pass tile grid to getTile and tileUrlFunc
getTile and the tileUrlFunc are functions of the source, so they do need to be passed the tile grid. The tile source knows its tile grid, and can get the projection's tile grid if it doesn't have a tile grid.
2013-04-02 11:12:43 +02:00
Éric Lemoine ce0836e403 Add on and un methods to ol.Object 2013-03-31 14:14:19 +02:00
Éric Lemoine 7f85dfbf1c Git can now ignore the entire build dir 2013-03-29 16:32:43 +01:00
Éric Lemoine b87fcbb4c4 Move hosted examples loader our of build dir
The build dir is now empty, and therefore unexisting for Git.
2013-03-29 16:17:38 +01:00
Éric Lemoine 35fc2882b4 .gitignore clean-up 2013-03-29 16:09:38 +01:00
Éric Lemoine b40aafc696 Tests requireall.js generated in build dir 2013-03-29 16:05:56 +01:00
Éric Lemoine 5019f9378c Move Plovr json files in specific dir 2013-03-29 16:00:13 +01:00
Éric Lemoine dbf9ce8844 Correct ns for ol.source.wms tests 2013-03-29 15:58:01 +01:00
Éric Lemoine 15ae6832d4 Remove unneeded test in build.py 2013-03-29 11:34:39 +01:00
Éric Lemoine 4428fe0f5a Examples json and combined.js files in build dir 2013-03-29 11:33:28 +01:00
Éric Lemoine 3c03c8beab Increase touch zoom anim duration 2013-03-27 11:52:42 +01:00
Éric Lemoine de1575e457 One direction pinch zoom 2013-03-27 11:52:42 +01:00
Éric Lemoine 0b62c92cb3 Use @expose for Coordinate.z
By annotating the z property with @expose the compiler does not try to optimize that property in any way. See https://developers.google.com/closure/compiler/docs/js-for-compiler. The doc says that @expose should never be used in library code, but that's the only way I found for our case.
2013-03-26 17:05:54 +01:00
Éric Lemoine 6d1fff688e Update README and CONTRIBUTING
[ci skip]
2013-03-22 10:59:09 +01:00
Éric Lemoine 7949cdaa82 crossOrigin defaults to null 2013-03-21 10:37:31 +01:00
Éric Lemoine 1d575309da Tile renderers needn't listen for tile change 2013-03-21 10:29:01 +01:00
Éric Lemoine a3d10e4234 Use jsdoc v3.1.1 2013-03-20 22:36:13 +01:00
Éric Lemoine 0b403c767a Fix goog.provide for object literals 2013-03-20 18:43:02 +01:00
Éric Lemoine 02d8d9e0bc Support nested options objects
This commit extends the generated Export constructors to support nested options objects. For example, this is now supported:

@exportObjectLiteralProperty ol.MapOptions.view ol.View|ol.View2DOptions|undefined

This specifies that the "view" property in the map options can reference an ol.View instance, an ol.View2DOptions literal object, or undefined. If the "view" property references an ol.View2DOptions literal object the ol.MapExport constructor will create an ol.View2DExport instance, and pass it to the parent constructor, ol.Map. In this way, extern types never cross the external/internal boundary. In other words, translations from non-renamed to renamed objects remain confined to the generated Export constructors.
2013-03-20 18:43:02 +01:00
Éric Lemoine 0949cb29aa Move expression.exports to proper place 2013-03-17 23:12:43 +01:00
Éric Lemoine b7fa22c4d4 Add type VectorLayerOptions 2013-03-17 22:33:02 +01:00
Éric Lemoine 1f641c5933 Make the generated Export classes accept undefined
We have constructors, like ol.View2D and ol.control.Attribution, whose "options" argument is optional (opt_options). But currently, we cannot do "new ol.View2D()" in uncompiled code that uses an ol3 build compiled in advanced mode. This commit fixes that by changing the generated Export constructors.
2013-03-15 18:01:53 +01:00
Éric Lemoine 6eaad6a837 Source option "projection" is a ProjectionLike 2013-03-15 17:58:54 +01:00
Éric Lemoine f86dfc3212 Remove ol.source.SourceOptions typedef
The ol.source.SourceOptions type is already declared in objectliteral.exports, so it should not be declared in the ol/source/source.js file.
2013-03-15 17:56:14 +01:00
Éric Lemoine 51625b8008 Make vector-layer example ignore XHR errors
This is a workaround for our check-example.js PhantomJS script to work with this example. Without this check-example.js fails because xhr.status is 0. I tried to give the explicit file:/// scheme as indicated in https://groups.google.com/d/msg/phantomjs/wFGme0pE-Tk/WUjU5s-27NwJ, but that didn't work for me.
2013-03-15 15:46:40 +01:00
Éric Lemoine a34adc6f62 Add countries.json to examples data dir
The examples cannot use files located in the test dir, or they won't work when hosted as GitHub pages.
2013-03-15 14:25:05 +01:00
Éric Lemoine 56f86ae512 Fix SingleImageWMS exports/externs 2013-03-11 08:31:32 +01:00
Éric Lemoine cee2725afd Fix Stamen exports/externs 2013-03-11 08:31:32 +01:00
Éric Lemoine 0459733883 Fix StaticImage exports/externs 2013-03-11 08:31:32 +01:00
Éric Lemoine f1949191b1 Fix TiledWMS exports/externs 2013-03-11 08:31:31 +01:00
Éric Lemoine 8121fda6fb Fix TileJSON exports/externs 2013-03-11 08:31:03 +01:00
Éric Lemoine 5ad6ca3aa1 Fix BingMaps exports/externs 2013-03-11 08:31:03 +01:00
Éric Lemoine b487275d5b Round image height and width for WMS 2013-03-07 13:37:48 +01:00
Éric Lemoine 251e9a09fa Fix js error when image source has no attributions 2013-03-07 12:41:15 +01:00
Éric Lemoine 3c37e6da56 Make custom proj example use tile layers only 2013-03-07 12:36:09 +01:00
Éric Lemoine 02cbdde333 Add a single image WMS example 2013-03-07 12:29:13 +01:00
Éric Lemoine 71f06320f6 WMS example renamed to wms-tiled 2013-03-07 12:03:28 +01:00
Éric Lemoine f55423d575 Register change listeners for loading tiles only
With this commit we register a change listener at a time when we are guaranteed that the listener will be called. In this was we don't need to remove listeners when the tile is dropped from the tile queue. And to avoid busy-polling between IDLE and LOADING we rely on the map to call requestRenderFrame when new tiles change to LOADING from IDLE.
2013-03-07 11:03:20 +01:00
Éric Lemoine 7fabff5ffa Revert "Remove listeners when dropping tiles"
This reverts commit fd6aaff2f5.
2013-03-07 10:41:23 +01:00
Éric Lemoine bbc8249e28 Check the examples in raw mode as well 2013-03-07 10:33:40 +01:00
Éric Lemoine 306447fac7 Update readme.md 2013-03-07 10:30:47 +01:00
Éric Lemoine 757401313b Extent hosted loader to support debug mode 2013-03-07 10:30:47 +01:00
Éric Lemoine 74b8fea679 Extent hostexamples target to copy ol and closure 2013-03-06 20:32:06 +01:00
Éric Lemoine 8ce86ac2c9 Add depswriter scripts
Copied from http://closure-library.googlecode.com/git/closure/bin/build/
2013-03-06 19:16:03 +01:00
Éric Lemoine 5d99ead2b7 View2D NoConstraint methods renamed 2013-03-06 02:20:10 +01:00
Éric Lemoine a0ba80bcbb Check the examples against whitespace build first
This is to produce stack traces that are easier to understand when an example fails to load.
2013-03-06 02:20:10 +01:00
Éric Lemoine 221c8077e0 Make hostexamples target more robust 2013-03-06 02:20:10 +01:00
Éric Lemoine 5644c27d9e Animate double click/tap zoom 2013-03-06 02:20:09 +01:00
Éric Lemoine 066a81a88a Animate zoom after pinch 2013-03-06 02:20:09 +01:00
Éric Lemoine a4c47edd9d 2DView refactoring
This refactoring makes animating zoom, as opposed to zoomByDelta, possible.
2013-03-06 02:20:09 +01:00
Éric Lemoine b9a286fb7a Animate rotation when releasing mouse or fingers 2013-03-06 02:20:08 +01:00
Éric Lemoine 33eb13d73b Make animating rotation possible 2013-03-06 02:20:08 +01:00
Éric Lemoine de8db176ab Do not apply rotation constraint while rotating
This is on par to what the TouchRotate interaction does.
2013-03-06 02:20:08 +01:00
Éric Lemoine f20cf83c94 Add a snapToZero rotation constraint 2013-03-06 02:20:08 +01:00
Éric Lemoine cae2340343 Make TouchRotate interaction use rotateNoConstraint 2013-03-06 02:20:07 +01:00
Éric Lemoine 303520a5e0 Add a rotateNoConstraint View2D method 2013-03-06 02:20:06 +01:00
Éric Lemoine 2c551b0445 Change View2D function names
Also make the TouchZoom interaction no longer use a private View2D function.
2013-03-06 02:20:06 +01:00
Éric Lemoine ca31cf590c Debounce mousewheel zoom events 2013-03-06 02:20:06 +01:00
Éric Lemoine 673ea079f8 MouseWheelZoom interaction animates zoom 2013-03-06 02:20:06 +01:00
Éric Lemoine be5967a948 View2D zoom may animate pan 2013-03-06 02:20:06 +01:00
Éric Lemoine 29d3878ea3 zoomFactor defaults to 2 2013-03-06 02:20:06 +01:00
Éric Lemoine a4afcd533f Add FIXME 2013-03-05 18:06:57 +01:00
Éric Lemoine 4e758f87ae Do not register multiple listeners on same tile 2013-03-05 17:01:34 +01:00
Éric Lemoine fd6aaff2f5 Remove listeners when dropping tiles 2013-03-05 17:01:34 +01:00
Éric Lemoine b884f2f25d View2D NoConstraint methods renamed 2013-03-05 12:51:03 +01:00
Éric Lemoine 82c2fc19a1 Check the examples against whitespace build first
This is to produce stack traces that are easier to understand when an example fails to load.
2013-03-05 11:37:30 +01:00
Éric Lemoine aa9275b57f Make hostexamples target more robust 2013-03-05 11:26:22 +01:00
Éric Lemoine 29e610b9f3 Animate double click/tap zoom 2013-03-05 10:08:01 +01:00
Éric Lemoine e598e4b9b2 Animate zoom after pinch 2013-03-05 10:08:01 +01:00
Éric Lemoine 43b1e11e7a 2DView refactoring
This refactoring makes animating zoom, as opposed to zoomByDelta, possible.
2013-03-05 10:08:01 +01:00
Éric Lemoine d42d88c198 Animate rotation when releasing mouse or fingers 2013-03-05 10:08:00 +01:00
Éric Lemoine c431acacca Make animating rotation possible 2013-03-05 10:08:00 +01:00
Éric Lemoine 2f611529dd Do not apply rotation constraint while rotating
This is on par to what the TouchRotate interaction does.
2013-03-05 10:08:00 +01:00
Éric Lemoine 1776d80cb9 Add a snapToZero rotation constraint 2013-03-05 10:08:00 +01:00
Éric Lemoine 7d6d82519b Make TouchRotate interaction use rotateNoConstraint 2013-03-05 09:59:31 +01:00
Éric Lemoine 178c68868b Add a rotateNoConstraint View2D method 2013-03-05 09:59:31 +01:00
Éric Lemoine 03ae41a68c Change View2D function names
Also make the TouchZoom interaction no longer use a private View2D function.
2013-03-05 09:59:31 +01:00
Éric Lemoine faef495cfd Debounce mousewheel zoom events 2013-03-05 09:59:31 +01:00
Éric Lemoine 4d486601f9 MouseWheelZoom interaction animates zoom 2013-03-05 09:59:31 +01:00
Éric Lemoine 3ba9a4afd4 View2D zoom may animate pan 2013-03-05 09:59:30 +01:00
Éric Lemoine 57a86353cd zoomFactor defaults to 2 2013-03-05 09:59:30 +01:00
Éric Lemoine 26cf882d68 Make createLayerRenderer always return a renderer 2013-03-03 19:46:09 +01:00
Éric Lemoine 5202281ce8 Remove references to goog in epsg-4326 example 2013-03-03 19:46:09 +01:00
Éric Lemoine 337fd11a05 Load the examples using PhantomJS
This commit adds a check-examples target to check that the hosted examples load without errors.
2013-03-03 19:46:09 +01:00
Éric Lemoine bbc9785b81 IE9 supports addEventListener (thanks @fredj) 2013-03-03 17:10:50 +01:00
Éric Lemoine d0c0231d98 Add exports for the canvas export feature 2013-03-03 17:10:50 +01:00
Éric Lemoine bd67a14389 Make wms-capabilities example work when hosted 2013-03-03 17:10:50 +01:00
Éric Lemoine 01d49ef9c9 Remove references to goog in examples 2013-03-03 17:01:37 +01:00
Éric Lemoine 6b9e79171b SIMPLE and WHITESPACE builds 2013-03-03 15:05:02 +01:00
Éric Lemoine 31bcd2832e Update comments in hosted examples loader 2013-02-22 23:23:04 +01:00
Éric Lemoine 981c1dcbd7 Remove examples/standalone dir 2013-02-22 23:16:36 +01:00
Éric Lemoine 2bc8e1a570 Example uses exported properties 2013-02-20 11:55:28 +01:00
Éric Lemoine cf6a27fca3 Export ol.Extent.prototype.getHeight and getWidth 2013-02-20 11:54:35 +01:00