Commit Graph

1446 Commits

Author SHA1 Message Date
Bruno Binet
48c84aaf69 Do not wrap dateline if projection.isGlobal() is false 2013-03-07 02:07:00 +01:00
Bruno Binet
7f9e327a65 Merge pull request #304 from bbinet/projection-improvements
Some projection improvements
2013-03-06 16:53:14 -08:00
Bruno Binet
1e050fe25f Add global=true for both EPSG:4326 and EPSG:3857 2013-03-07 01:36:42 +01:00
Bruno Binet
b6d57894b4 Add configureProj4jsProjection function
so that we can add extent and global parameter to proj4js projections.
And remove setExtent method which is not relevant.
2013-03-07 01:36:41 +01:00
Bruno Binet
0e53a3f3c9 ol.Proj4jsProjection_ now takes a single argument 2013-03-07 01:36:40 +01:00
Bruno Binet
9d88273161 ol.Projection now takes a single argument
which is called ol.ProjectionOptions.
2013-03-07 01:36:39 +01:00
Bruno Binet
8dd3093f4c Add information on wether the projection is global
so that we know if we can wrap the dateline.
2013-03-07 01:36:39 +01:00
Tom Payne
31b1f8b5b0 Add missing export 2013-03-06 21:34:18 +01:00
Tom Payne
65e003db50 Merge pull request #274 from twpayne/map-layers-api
ol.Collection versus array
2013-03-06 10:48:48 -08:00
Bruno Binet
a10cae6117 Merge pull request #301 from bbinet/projection-setextent
Add a setExtent method to ol.Projection
2013-03-06 09:46:07 -08:00
Tom Payne
6c58da95e6 Merge pull request #300 from twpayne/stamen-unique-attribution
Use a single, shared attribution for Stamen sources
2013-03-06 09:27:44 -08:00
Bruno Binet
93ae4256eb Add a setExtent method to ol.Projection 2013-03-06 17:53:51 +01:00
Tom Payne
e027f9771e Use a single, shared attribution for Stamen sources
This ensures that the attribution only appears once, even if multiple
Stamen layers are used in the same map.
2013-03-06 17:53:33 +01:00
Bruno Binet
d1762a06f8 Merge pull request #290 from bbinet/projection_stuff
Add a getMetersPerUnit instance method to ol.Projection class
2013-03-06 08:50:47 -08: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
3e7c913c44 Add ol.Collection.remove 2013-03-06 15:53:11 +01:00
Tom Payne
0a38f2f7a7 Don't export ol.Collection.getArray 2013-03-06 15:50:07 +01:00
Tom Payne
905a0059db Remove unused insert_at, set_at, and remove_at events 2013-03-06 15:50:03 +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
38eaa9cfb2 Use an array to specify additional interactions 2013-03-06 13:19:50 +01:00
Tom Payne
363cb87e1a Use an array to specify additional controls 2013-03-06 13:19:34 +01:00
Tom Payne
23f0097517 Add ol.Collection.extend 2013-03-06 13:18:34 +01:00
Frédéric Junod
c54f38f4c0 Merge pull request #287 from fredj/mapsize
Use goog.style.getSize to compute the map size.
2013-03-06 03:59:51 -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
Bruno Binet
1ff3c79ff6 Use correct value to convert from foot to meters
(was using value for converting to inches).
Thanks @twpayne
2013-03-06 12:26:30 +01:00
Bruno Binet
f4aa08ee90 Use ol.sphere.NORMAL.radius instead of 6378000
to be consistent.
2013-03-06 12:18:37 +01:00
Tom Payne
48852aa3ea Merge pull request #284 from twpayne/full-screen-fit-projection-extent
Fit map to projection extent in full screen example
2013-03-06 02:50:46 -08:00
Bruno Binet
1803e7b28d Add getMetersPerUnit instance method to ol.Projection 2013-03-06 10:32:45 +01:00
Bruno Binet
7d1db48836 Find proj4js projection even if code is different than srs. 2013-03-06 01:57:06 +01:00
Tom Payne
1ae20641ef Make mouse position control options argument optional 2013-03-05 18:58:29 +01:00
Tom Payne
f581390655 Make zoom control options argument optional 2013-03-05 18:56:41 +01:00
Tom Payne
c521f92408 Make attribution control options argument optional 2013-03-05 18:56:34 +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
59271ae2d8 Fix typo (thanks @bbinet) 2013-03-05 18:35:21 +01:00
Éric Lemoine
a4afcd533f Add FIXME 2013-03-05 18:06:57 +01:00
Tom Payne
8a66095a4a Export some ol.View2D functions 2013-03-05 17:03:33 +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
98f9f44877 Merge pull request #261 from elemoine/zoomfactor
Change default zoom delta and animate mousewheel zoom
2013-03-05 03:52:38 -08:00
Éric Lemoine
b884f2f25d View2D NoConstraint methods renamed 2013-03-05 12:51:03 +01:00
Bruno Binet
8b3cfda963 Add defaultNamespaceURI and errorProperty properties for WMTS.
Thanks @bartvde.
2013-03-05 11:26:46 +01:00
Tom Payne
68919b5ee3 Merge pull request #267 from twpayne/stamen-fixes
Stamen fixes
2013-03-05 02:14:21 -08:00
ahocevar
4bb521db65 WMS GetMap request parameters shall be params
To avoid surprises, we configure everything that is a WMS GetMap
request parameter in the params object, and not as direct
configuration option. This affects the VERSION and TRANSPARENT
params.
2013-03-05 10:54:33 +01:00
ahocevar
2676050d54 Do not use tiledWMSOptions in closure function
See #269.
2013-03-05 10:50:46 +01:00
Tom Payne
985b4f57c1 Merge pull request #260 from twpayne/projections-in-feet
Projections in feet
2013-03-05 01:17:56 -08: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