Éric Lemoine
757ccf148b
Merge pull request #858 from elemoine/getzoom
...
Add ol.View2D#getZoom
2013-07-11 00:51:25 -07:00
Éric Lemoine
daa03b5ef7
@class doc for View2D
2013-07-09 15:28:31 +02:00
Éric Lemoine
a10d142752
Add ol.View2D#getZoom
2013-07-09 09:30:45 +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
0cf4024194
Add ol.View2D.prototype.setZoom
2013-07-04 08:58:32 +02:00
Tom Payne
fab12b10c1
Handle projection being undefined in getView2DState
2013-06-25 12:26:35 +02:00
Tom Payne
f462adbe53
Set default View2D rotation in constructor and getView2DState instead of in getRotation
2013-06-25 12:19:30 +02:00
ahocevar
b71bf9607c
Do not set center constraint
...
This change slipped in accidently. Thanks @twpayne for catching
this.
2013-06-17 16:46:47 +02:00
ahocevar
37b369e0d7
Making extent optional for projections
...
The projection validity extent is used to generate a sensible
set of default resolutions and a sensible default tile grid.
By making it optional, we can still generate defaults - with
zoom levels that are similar to the default web mercator zoom
levels (based on fitting the world on a single tile, even if the
projection is not available for the whole world).
2013-06-17 15:24:37 +02:00
Bart van den Eijnden
8dc97790bc
Add more content for the API doc
...
Involves additions to (there will be subsequent pull requests for other
classes):
- ol.Attribution
- ol.Collection
- ol.Expression
- ol.Feature
- ol.Geolocation
- ol.Map
- ol.Object
- ol.Overlay
- ol.Projection
- ol.View2D
- ol.control.Attribution
- ol.control.Control
- ol.control.FullScreen
- ol.control.Logo
- ol.control.MousePosition
- ol.control.ScaleLine
- ol.control.Zoom
- ol.control.ZoomSlider
- ol.dom.Input
- ol.filter.Filter
- ol.filter.Geometry
- ol.filter.Logical
2013-06-11 20:56:04 +02:00
Frederic Junod
a1a7e21f92
Redefine ol.Size to be Array.<number>
2013-06-01 10:22:06 +02:00
Tom Payne
46553c719c
Rename ol.projection to ol.proj
2013-05-30 18:55:58 +02:00
Éric Lemoine
4c144c3d5c
Merge pull request #700 from elemoine/calculate-extent
...
Add and export View2D.calculateExtent
2013-05-10 03:57:24 -07:00
Éric Lemoine
c34d637de1
Fix typo in View2D:getExtent
2013-05-09 23:42:55 +02:00
Tom Payne
1ab9de8b2c
Improve type checking in ol.View2D
2013-04-30 22:00:22 +02:00
Éric Lemoine
1281d9987a
Add and export View2D.calculateExtent
2013-04-30 09:39:09 +02:00
Tom Payne
9773314803
Port ol.View2D to new extents
2013-04-19 09:32:12 +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
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
631afb07ab
Add value/resolution functions to View2D
2013-04-08 12:28:37 +02:00
Tom Payne
b74ebcdae5
Be more consistent with view options
2013-04-07 11:44:59 +02:00
Tom Payne
4be8c991f7
Add missing Closure Library requires
2013-04-06 14:28:12 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Éric Lemoine
de1575e457
One direction pinch zoom
2013-03-27 11:52:42 +01:00
Tom Payne
77bd279160
Use ol.easing instead of goog.fx.easing
2013-03-09 02:03:59 +01:00
Tom Payne
fe3b8d862d
Correct center setting, thanks @elemoine
2013-03-09 01:31:14 +01:00
Tom Payne
3d37ba7666
Add ol.View2D.pan
2013-03-07 20:00:31 +01:00
Éric Lemoine
b884f2f25d
View2D NoConstraint methods renamed
2013-03-05 12:51:03 +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
c431acacca
Make animating rotation possible
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
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
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
Tom Payne
fcc620af7d
Separate ol.projection module from ol.Projection class
2013-03-03 13:09:13 +01:00
Tim Schaub
0a5dae9ed0
Avoid left shift in resolution calculations
2013-02-18 18:37:27 -07:00
Frederic Junod
34975428c4
Change view.rotate params: rotation and optional anchor.
2013-02-14 12:17:26 +01:00
Tim Schaub
a2bbdf7ccc
More natural names for animations
2013-02-06 13:43:54 -07:00
Tom Payne
e6eb401e36
Add missing goog.requires
2013-01-30 23:47:13 +01:00
Frederic Junod
7568688301
Use option object rather than positional arguments for ol.animation.create* functions
2013-01-23 17:07:55 +01:00
Tom Payne
965d5e2cc8
Add animation duration to ol.View2D.zoom
2013-01-17 15:50:28 +01:00
Tom Payne
1278ccb942
Add default tile size @define, refs #114 , fixes #120
2013-01-16 17:49:51 +01:00
ahocevar
87ce763ccb
Use validity extent to generate default resolutions
...
Previously, the TiledWMS source generated a resolutions array
derived from the world extent in meters, to match the default
Web Mercator resolutions of the map. This wouldn't work for
projections with distance units different than meters. It is
better to commit to a default resolutions array where zoom level
0 is the validity extent of the projection (not the Web Mercator
world extent!) at a 256 pixel tile size.
2013-01-14 16:10:55 +01:00