É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
Éric Lemoine
2d5381ae41
Move zoom from View2D to Interaction
2013-04-10 08:52:07 +02:00
Éric Lemoine
dbca68650c
Move rotate from View2D to Interaction
2013-04-10 08:52:06 +02:00
Éric Lemoine
51094139a8
Move pan function from View2D to Interaction
2013-04-10 08:27:47 +02:00
Éric Lemoine
396ee5ce3d
Add constrainResolution|Rotation to ol.View2D
2013-04-09 17:06:18 +02:00
Éric Lemoine
6bb36452cb
Add calculateCenterZoom|Rotation to ol.View2D
2013-04-09 16:50:48 +02:00
Éric Lemoine
572055127c
Do not use getView2D in the examples
2013-04-09 15:28:20 +02:00
É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