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
Éric Lemoine
2a28b7c699
Add comment
2013-01-24 22:31:08 +01:00
Éric Lemoine
15898b559b
Make map handle size changes
2013-01-24 22:31:08 +01:00
Éric Lemoine
71a462cd54
Make map handle view changes
...
With the frameState stuff the map renderer need not listen to view changes. The map renderer receives orders from the map. These orders are renderFrame_ calls with frameState objects representing the current state.
2013-01-24 22:31:06 +01:00
Tom Payne
4ab09d6df2
Merge pull request #140 from twpayne/array-clean-ups
...
Array clean ups
2013-01-22 06:00:04 -08:00
Tom Payne
f2164e5028
Export map.getLayers
2013-01-22 13:08:40 +01:00
Frederic Junod
c836c8d9c4
Add ol.Map.getRenderer function
2013-01-21 15:08:15 +01:00
Tom Payne
f1b11866fd
Remove dependency on goog.array
2013-01-21 14:20:12 +01:00
Tom Payne
3967e17366
Use in-place filtering for pre-render functions
2013-01-21 14:20:12 +01:00
Tom Payne
d76db2005f
Use for loop for iterating over layers
2013-01-21 14:20:12 +01:00
Tom Payne
7229428741
Use in-place filtering for post-render functions
2013-01-21 14:20:11 +01:00
Éric Lemoine
2f539bf3be
Merge pull request #126 from openlayers/tilequeue
...
Tile queue requires optimizing
2013-01-21 03:41:18 -08:00
Tom Payne
a8dc810696
Use Infinity rather than undefined to drop tiles
2013-01-19 15:24:02 +01:00
Tom Payne
3ec2014ad1
Rename tileUsage to usedTiles
2013-01-19 15:03:01 +01:00
Tom Payne
1c524caae6
Discard unwanted tiles from tile queue
2013-01-19 15:03:01 +01:00
Tom Payne
7babfebef9
Set frame state immediately after rendering
2013-01-19 14:50:18 +01:00