Commit Graph

452 Commits

Author SHA1 Message Date
ahocevar
80a6185947 Yet another documentation improvement for #932.
Now it should be clear that the map's changelayer event is triggered
whenever the layer's actual visibility (i.e. visible to the user) changes.
2013-04-10 10:21:28 +02:00
ahocevar
4b163e0482 Merge pull request #800 from ahocevar/transform
Use GPU where available; animated zooming. r=@elemoine
2013-02-14 01:15:18 -08:00
ahocevar
d0249643b3 Incorporating @elemoine's review comments 2013-02-14 10:11:48 +01:00
Marc Jansen
a34e627b75 Remove dangling space in license header. 2013-02-07 10:33:20 +01:00
Björn Harrtell
aa6c5b8a35 Default fallThrough to false
Default behaviour in OpenLayers 2.12 is to swallow events, even though the documentation says otherwise.
2013-01-10 21:30:09 +01:00
ahocevar
9b7e35d1dd Merge branch 'master' of github.com:openlayers/openlayers into transform
Conflicts:
	theme/default/style.css
2013-01-09 14:31:52 +01:00
ahocevar
6ce72e9185 Adding TileManager to mobile build profile, and note in Map.js
As suggested by @probins; see #702.
2013-01-08 14:26:18 +01:00
Tim Schaub
bbc73a21d8 Update copyright date 2013-01-07 22:01:16 -05:00
ahocevar
18d548f979 Merge pull request #702 from ahocevar/smart-queue
New tile image cache and tile queue improvements. r=@bartvde,@elemoine
2013-01-07 06:38:07 -08:00
Peter Robins
dcaefea3cc Map: correct docs for maxExtent 2013-01-06 13:45:36 +00:00
ahocevar
21448d2fd5 Adding animated zooming 2012-12-23 18:47:03 +01:00
ahocevar
a309b24053 Only use 3d transforms when stylesheet has transform on layerContainerDiv
This allows users to control whether 3d acceleration should be used or not:
Just like with plain web pages, having a stylesheet that sets a transform
on the map's layerContainerDiv will make OpenLayers use translate3d and
scale3d. When no such transform is set in the stylesheet, style.left and
style.top will be used, except for e.g. pinch zoom, where scaling is
needed.
2012-12-23 18:34:54 +01:00
ahocevar
3ab9a1f63b No closure, to make testing easier 2012-12-23 18:34:52 +01:00
ahocevar
eb65336fa9 Adding docs, removing console.log 2012-12-23 18:32:27 +01:00
ahocevar
44f28f8791 Use translate3d and translate where available. 2012-12-23 18:32:26 +01:00
ahocevar
273657a6ab Adding API docs for the tileManager property 2012-12-23 17:00:45 +01:00
ahocevar
781f2ac73d Configure maps with TileManger instances (and not the other way around)
This resolves issues with destroying caches on window unload, and makes
cache sharing among maps less confusing to configure.
2012-12-23 17:00:45 +01:00
Pierre GIRAUD
6c21c2043f Completing the doc strings 2012-12-17 13:55:32 +01:00
Pierre GIRAUD
ee5796cb78 Send zoomChanged value when triggering movestart event 2012-12-17 11:45:10 +01:00
ahocevar
00d9664b95 No longer touching internal GMaps DOM elements.
Simple and effective: As soon as a map has a Google layer, the whole map viewport is added as control to the GMap. As soon as no Google layer is visible on the map any more, the map viewport is appended to the map container again. With this change, OpenLayers strictly limits its GMaps integration to the GMaps API.

Also note that there are no css overrides for the attribution any more. Instead, controls can now be conditionally positioned differently for Google layer by using the .olForeignContainer selector.
2012-12-06 10:35:03 +01:00
Matt Priour
f17a3c70e4 Fire the 'changelayer:visibility' event from layer's display method
Move the changelayer event firing logic for in / out of resolution range
from the Map class to the Layer class. Tests have been also been created
to specifically test that the display method works correctly and fires
events only when needed.
2012-10-09 11:10:55 -05:00
ahocevar
f0ad48597f No more percentage based positioning.
Client zoom now supports both over- and undersampling.
2012-08-21 13:57:11 +02:00
Bart van den Eijnden
7b4cb8e3f5 cleanup and always use window resize as suggested by @tonio 2012-08-17 11:36:03 +02:00
Bart van den Eijnden
3b9ce4ca2d introduce new property on the Map called autoUpdateSize which lets applications take control of window resizing / device orientation changes if they want to 2012-08-17 10:13:04 +02:00
Bart van den Eijnden
2843a18602 Revert "fix issue with orientation changes on mobile devices (tested on Motorola Xoom 2 with Android 3.2.2 in the stock browser)"
This reverts commit 39a6d7d8ef.
2012-08-16 16:35:21 +02:00
Bart van den Eijnden
39a6d7d8ef fix issue with orientation changes on mobile devices (tested on Motorola Xoom 2 with Android 3.2.2 in the stock browser) 2012-08-16 14:21:36 +02:00
ahocevar
032df4b90a Adding a getMinZoom API method.
This can be used by zoom slider controls, e.g. the GeoExt.ZoomSlider. Note that adjustZoom now also respects the map's fractionalZoom setting.
2012-06-13 21:37:59 +02:00
ahocevar
7141d237d9 Create a new reliable updatesize event.
The resize event is not fired in all browsers. What we actually need is an event that is called every time the updateSize method is called.
2012-06-13 21:36:17 +02:00
Éric Lemoine
12b8166743 Merge pull request #410 from probins/fixzoom
Fix Map so zoomChanged when zoom is constructor option
2012-05-26 09:32:26 -07:00
Éric Lemoine
2608a0ebe7 fix resize handling in IE 9 and better (refs #449) 2012-05-04 14:28:12 +02:00
Éric Lemoine
c6c1bf1f77 fix movestart, move, moveend sequence on pan with animate:false 2012-04-23 23:57:48 +02:00
Peter Robins
b672a58c35 Fix Map so zoomChanged when zoom is constructor option 2012-04-13 10:29:34 +01:00
Éric Lemoine
e0b93c2e45 The OpenLayers code is published under the 2-clause BSD license 2012-03-30 08:33:55 +02:00
Éric Lemoine
650df2a8f1 change copyright header in every OpenLayers js file 2012-03-29 22:14:56 +02:00
Peter Robins
720a815479 Improvements for projection docs 2012-03-27 14:07:58 +02:00
Antoine Abt
2b41c8926b Merge pull request #321 from tonio/zoomdefault
Make Zoom control be default instead of PanZoom.
2012-03-19 00:50:53 -07:00
Bart van den Eijnden
a3874b8f97 do not cast to LonLat if center is null in Map moveTo 2012-03-15 16:53:22 +01:00
Antoine Abt
e50c44b63c update doc for control fallback 2012-03-15 10:12:38 +01:00
Antoine Abt
a96c2da6c2 add PanZoom control if Zoom isn’t in build 2012-03-14 22:31:47 +01:00
Antoine Abt
b2727c88f2 make Zoom default instead of PanZoom 2012-03-14 20:25:07 +01:00
ahocevar
4434d195ea Merge pull request #295 from probins/mapdocs
Improve docs for bounds/lonlat, Layer and Map
2012-03-08 09:11:30 -08:00
ahocevar
da3bbbe231 Merge pull request #293 from probins/defnav
Map: default controls should include TouchNavigation if present
2012-03-06 04:18:02 -08:00
Peter Robins
93028bbcf8 Map: defaults controls should include TouchNavigation if present 2012-03-06 11:47:27 +00:00
Peter Robins
e8af06e6ae Improve docs for bounds/lonlat as array 2012-03-06 11:30:28 +00:00
Xavier Mamano
bfb379f349 Fix some problems in the documentation. 2012-03-05 11:43:09 +01:00
Peter Robins
bcba6bb0fd Map: make options.center compatible with permalink 2012-03-03 17:06:14 +00:00
tschaub
4e9701caa8 Making map construction work with permalink.
If a map is configured with a permalink control and a center, the permalink control tries to work with the map center before setCenter is called.  This sequence assumes that the map center will already be a LonLat.  This fails if the map is constructed with a coordinate array.  Safer move is to convert center to LonLat before controls are added.
2012-03-01 13:47:42 -07:00
fredj
f3c48d6963 Store the original map options into 'options' property 2012-02-28 10:07:59 +01:00
Peter Robins
27e5aaf8f0 Map: check default controls are in build 2012-02-25 17:06:30 +00:00
tschaub
977c334fa3 Doc cleanup. 2012-02-16 10:41:05 -07:00