Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Tom Payne
0e12d16c37
Move configuration of maximum tiles loading into map.js
2013-04-04 23:49:21 +02:00
Tom Payne
71d1207201
Start a maximum of two new tile downloads per frame
2013-04-04 23:33:18 +02:00
ahocevar
e042c5701a
Enabling Markdown and other JSDoc improvements
...
This change enables GitHub flavored markdown for APIdoc
comments. The code example in map.js shows how to use markdown
for code snippets. doc/index.md is now included again as start
page for the docs. Everything in the doc/tutorials directory
will also be added to the docs as tutorial. As an example, I
moved the ol3.md file with the architecture to the tutorials
directory.
Currently properties and methods annotated with @inheritDoc
or @override won't be documented at all. This is a known issue,
so I added a custom JSDoc plugin with a hack to avoid this.
2013-04-04 11:53:12 +02:00
Tom Payne
8278b2641b
Don't schedule a new post render delay if one is already active
2013-04-02 12:58:11 +02:00
Tom Payne
1d22d2fdde
Tune tile priority functions
2013-03-27 14:34:29 +01:00
Tom Payne
00b862de10
Store focus in frame state
2013-03-27 14:34:29 +01:00
Tom Payne
27f9e83780
Refactor ol.TileQueue to extend ol.structs.PriorityQueue
2013-03-27 14:34:28 +01:00
Tom Payne
80df629319
Premptively load low resolution tiles
2013-03-22 21:02:09 +01:00
Éric Lemoine
1d575309da
Tile renderers needn't listen for tile change
2013-03-21 10:29:01 +01:00
ahocevar
f765982654
Do not recenter map and zoom on repeated clicks on +/-
...
Multiple fast clicks get interpreted as DBLCLICK by the browser,
so it makes sense to stop propagation of DBLCLICK events when
they happen on elements on the overlay container. This is also
a good change because DBLCLICK might have a meaning on other map
overlays as well.
2013-03-18 09:19:10 +01:00
Tom Payne
08d3120f08
Use ol.Extent.getForView2DAndSize
2013-03-10 15:51:08 +01:00
Tom Payne
d571ef5804
Prioritize tile loading around mouse position
2013-03-08 01:04:35 +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
Tom Payne
c48e281c68
Add ol.Map.removeLayer
2013-03-06 17:17:32 +01:00
Tom Payne
fcbd758f48
Add ol.Map.addLayer
2013-03-06 17:00:17 +01:00
Tom Payne
61982646ba
Allow layers to be passed as an array when creating a map
2013-03-06 16:59:09 +01:00
Tom Payne
3a7c4bd3bc
Merge pull request #273 from twpayne/controls-api
...
reconsider the way we specify controls on the map
2013-03-06 05:59:31 -08:00
Tom Payne
671ee79c74
Add ol.interaction.defaults
2013-03-06 12:36:49 +01:00
Tom Payne
8ae009d401
Add ol.control.defaults
2013-03-06 12:36:48 +01:00
Frederic Junod
de168e0fb0
Use goog.style.getSize to compute the map size.
...
This allows to initialize hidden map (display: none).
Otherwise the size is 0 (clientWidth == clientHeight == 0)
2013-03-05 18:48:02 +01:00
Éric Lemoine
faef495cfd
Debounce mousewheel zoom events
2013-03-05 09:59:31 +01:00
Éric Lemoine
57a86353cd
zoomFactor defaults to 2
2013-03-05 09:59:30 +01:00
Tom Payne
06bb6e19f1
Merge pull request #215 from twpayne/scaleline-control
...
ScaleLine control
2013-03-04 01:27:33 -08:00
Frédéric Junod
cad215e0cc
Merge pull request #230 from fredj/touch-navigation
...
Touch navigation issues
2013-03-04 00:42:59 -08:00
Tom Payne
b663fd69f1
Add scale line control options to map options
2013-03-04 00:43:37 +01:00
Tom Payne
fcc620af7d
Separate ol.projection module from ol.Projection class
2013-03-03 13:09:13 +01:00
Tom Payne
6b26cbfb38
Refactor projection architecture
2013-03-03 12:22:24 +01:00
Frederic Junod
3b74f72c56
Add optional kinetic parameter.
2013-02-26 10:54:15 +01:00
Frederic Junod
c0aa50abfc
Split TouchRotateAndZoom interaction.
...
Split TouchRotateAndZoom interaction into two new interaction:
TouchRotate and TouchZoom.
2013-02-26 08:58:47 +01:00
Frederic Junod
735e534095
Add ol.interaction.TouchRotateAndZoom
2013-02-20 09:33:04 +01:00
Frederic Junod
d9a1c18300
Add ol.interaction.TouchPan
2013-02-20 09:32:34 +01:00
Frédéric Junod
cb0fb64dd9
Merge pull request #214 from fredj/supported-const
...
Rename *.isSupported functions to *.SUPPORTED constants
2013-02-19 08:35:59 -08:00
Frederic Junod
7e3dcf36a0
Rename ol.*.isSupported function to ol.*.SUPPORTED const
2013-02-19 16:14:37 +01:00
Éric Lemoine
f540dd8689
Image layer renderers add attributions to frame state
2013-02-19 15:19:44 +01:00
Éric Lemoine
5f5e14f253
Merge pull request #175 from elemoine/control
...
Simplify control architecture
2013-02-08 14:56:19 -08:00
Tim Schaub
2bd29ff60e
Only track tiles that are actually wanted
...
Instead of keeping track of wanted tile ranges, we can instead track wanted tiles individually. This provides enough for the map to know how to prioritize tiles and should be more efficient (no extra calls to extend tile ranges or check for tile containment within a range).
2013-02-06 16:08:24 -07:00
Tim Schaub
e335b7b74a
Make frame state available before rendering frame
...
Without this change, tiles that are enqueued on the first rendering will always get priority `ol.TileQueue.DROP` because `map.frameState_` is not yet defined (meaning a single render call doesn't result in any tiles loading).
2013-02-06 16:02:26 -07:00
Éric Lemoine
bde61a0b4b
Simplify control architecture
2013-02-04 10:18:33 +01:00
Tom Payne
e6eb401e36
Add missing goog.requires
2013-01-30 23:47:13 +01:00
Tom Payne
6e247d9331
Rename modules for support detection
2013-01-30 22:48:03 +01:00
Tom Payne
b6f856f962
Remove unused goog.requires
2013-01-30 22:48:03 +01:00
Bruno Binet
39cbba3eb7
Add a frameState property to ol.MapBrowserEvent
...
so that we will be able to retrieve the current center of the view2d from the
framestate in the dragpan interaction.
2013-01-29 13:00:02 +01:00
Bruno Binet
d54864695d
Add a removePreRenderFunction method to ol.Map
...
This will remove the pre-render function from preRenderFunctions_ array if
found.
2013-01-29 12:56:15 +01:00
Bruno Binet
7d0b4c757e
Activate kinetic effect by default
2013-01-29 12:39:52 +01:00
Frederic Junod
a980de7830
Listen to all ol.MapBrowserEvent events
2013-01-29 11:29:27 +01:00
Éric Lemoine
713828d953
Change a comma to a semi-colon (thanks @bbinet)
2013-01-29 10:33:35 +01:00
Frederic Junod
43fe004917
Add a comment about msTouchAction css on viewport
2013-01-25 17:37:04 +01:00
Frederic Junod
9c794d8b00
Direct all pointer events to js code (IE pointer events).
...
see: http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx
2013-01-25 16:38:45 +01:00
Éric Lemoine
4a64837ba1
Make map handle background color changes
2013-01-24 22:31:08 +01:00