Commit Graph

345 Commits

Author SHA1 Message Date
ahocevar
93e4d0b94c Making loaded tile available to tileloaded listeners. 2012-02-16 16:29:06 +01:00
ahocevar
262e2d5bc0 Calculating maxResolution instead of having it in defaults. 2012-02-15 21:09:39 +01:00
ahocevar
11966d231f New OpenLayers.Projection.defaults property.
This allows us to simplify the map and layer configuration, because now the projection also defines defaults for maxExtent, maxResolution and units.
This change also adds transforms for SRS aliases for EPSG:4326 and centralizes axis order information in OpenLayers.Projection.defaults.
2012-02-15 11:09:55 +01:00
ahocevar
5e734f20dc Merge pull request #179 from ahocevar/tile-queue
A tile queue that can be aborted. r=@elemoine,@fredj,@tonio
2012-02-14 10:59:12 -08:00
ahocevar
334f83ff85 Updated tests for cebc7e60de.
See http://trac.osgeo.org/openlayers/ticket/3616.
2012-02-10 14:15:51 +01:00
ahocevar
720c49c040 Re-introducing tileLoadingDelay.
Only use it if no native requestAnimationFrame function is available. This should improve performance on mobile devices.
2012-01-29 18:50:03 +01:00
ahocevar
e64ed565e2 Adding tests fo verify tile queue management. 2012-01-28 16:24:56 +01:00
ahocevar
dde45696f7 Simplified tile queue; using the tile's beforedraw listener.
Since draw is the only tile operation that we defer, the tile queue can be an array of tiles and queue handling can be simplified. We now use the beforedraw event to defer drawing, and remove all occurrences of a tile from the tile queue when we draw it.

Instead of layers that want to defer tile drawing having to override the tile's draw method, layers can now abort drawing by returning false from a beforedraw listener, and later call draw(true) to draw the tile directly, without clearing it first.
2012-01-28 16:12:29 +01:00
ahocevar
ef85f43d21 A tile queue that can be aborted.
This saves server requests, and because we use OpenLayers.Animation, setting img.src on a tile should not freeze iOS any more, so we can hopefully get rid of scheduleMoveGriddedTiles.
2012-01-28 15:30:20 +01:00
ahocevar
05de2b5109 Don't let button controls interfer with handlers.
This change involves removal of the map's eventsDiv and introduces an OpenLayers.Events.buttonclick component that adds a buttonclick event which makes sure that only events that are not related to clicking a button propagate. This allows button controls to be on the map's viewPortDiv again.
2012-01-20 03:37:11 +01:00
Frédéric Junod
1cbd88d230 Merge pull request #137 from fredj/simple-objects
Replace Size and Pixel instances with simple objects. r=elemoine,probins,tschaub
2012-01-18 04:12:02 -08:00
Éric Lemoine
37d21272b7 Merge pull request #127 from elemoine/tile-fade-in
CSS-based tile animation
2012-01-17 21:06:11 -08:00
tschaub
00975e79cc Merge branch 'master' of github.com:openlayers/openlayers into proj 2012-01-17 08:52:03 -07:00
Éric Lemoine
99ca32540d Merge branch 'master' into tile-fade-in
Conflicts:
	tests/Tile/Image.html
2012-01-17 09:27:55 +01:00
Éric Lemoine
8f57e34376 Merge branch 'master' into osm
Conflicts:
	notes/2.12.md
2012-01-17 09:10:27 +01:00
Tim Schaub
4b949176d3 Move mercator transforms to Projection.js.
The SphericalMercator mixin is not required for coordinate transforms.  Default transforms included whenever Projection.js is included.
2012-01-16 22:39:44 -07:00
fredj
1df5cfa158 replace LonLat argument with simple object (Map.getLayerPxFromLonLat) 2012-01-14 14:11:24 +01:00
Éric Lemoine
7a5b469192 Merge pull request #116 from elemoine/redraw
make Layer.redraw not unconditionally set zoomChanged to true when calling Layer.moveTo
2012-01-13 08:37:09 -08:00
Éric Lemoine
3cbd7b4b40 move Layer.OSM in its own script file 2012-01-12 21:22:58 +01:00
Éric Lemoine
30c5b11d99 Merge branch 'master' into tile-fade-in
Conflicts:
	examples/fullScreen.js
2012-01-05 09:39:39 +01:00
Éric Lemoine
77f227ffed more Grid tests, for delayed back buffer removal 2012-01-04 21:01:46 +01:00
fredj
3245836b6d New OpenLayers.Layer.Grid.tileClass option. Defaults to OpenLayers.Tile.Image 2012-01-04 12:37:39 +01:00
Éric Lemoine
0cc4dc81ec Merge branch 'master' into redraw 2012-01-04 09:06:29 +01:00
Éric Lemoine
eedcaf0ba2 add a test to verify that Layer.HTTPRequest.mergeNewParams set resolution to null prior to calling redraw 2012-01-04 09:02:38 +01:00
Éric Lemoine
0d702609b1 revert changes to layer mergeNewParams tests (ff045172) 2012-01-04 08:59:47 +01:00
tschaub
3c910c8801 Removing the tileAnimation map property.
Edit CSS to change the style.
2012-01-02 15:49:55 -07:00
tschaub
3eb34f587e Add test for setOpacity. 2012-01-02 11:52:54 -07:00
Éric Lemoine
e7ef3d6c21 remove duplicated setOpacity tests 2011-12-31 12:23:32 +01:00
Éric Lemoine
afc0283c06 fix the Layer.WMS setOpacity tests 2011-12-31 00:45:15 +01:00
Éric Lemoine
6b918bc9ab make the Layer/Image.html tests pass again 2011-12-31 00:19:44 +01:00
ahocevar
d42eec9775 No new argument for Layer::redraw.
Instead, make _resolution a private property (resolution) which is set to null to make redraw call moveTo with zoomChanged set to true.
2011-12-26 11:09:07 +01:00
ahocevar
6e39c3e3e0 Moving test for reproject option to deprecated tests.
Also re-adding accidently removed ```reproject: true``` option to test.
2011-12-23 18:32:28 +01:00
Éric Lemoine
ff04517232 HTTPRequest.mergeNewParams should now do redraw(true) 2011-12-22 14:21:07 +01:00
Frédéric Junod
5fda8835da Merge pull request #82 from fredj/2897
don't create div for image tile when no gutter is used. p=ahocevar,pgiraud,elemoine,fredj
2011-12-07 23:03:26 -08:00
ahocevar
b6df3d871b It turns out we really want to retile sometimes.
The reason is that we want to avoid moveGriddedTiles to run through hundreds of cycles to shift tiles until we reach the new bounds. But containsBounds does not work if extents that cross the date line start on different worlds, so we use intersectsBounds where we can pass the world bounds to handle this case.
2011-12-07 15:55:22 +01:00
ahocevar
f79520cf9d Don't set zoomOffset - maxResolution and numZoomLevels is enough. r=fredj (closes http://trac.osgeo.org/openlayers/ticket/3550) 2011-12-07 14:53:53 +01:00
ahocevar
7aa7b98285 fixing indentation 2011-12-03 01:37:42 +01:00
ahocevar
d20e6f7c7a removing console.log 2011-12-03 01:36:11 +01:00
ahocevar
b70ea9e8c1 Use valid tile bounds and test grid crossing the dateline. 2011-12-03 00:07:04 +01:00
fredj
efdd9d0eb2 don't create div for image tile when no gutter is used 2011-11-30 14:19:36 +01:00
Frederic Junod
7332775d78 Fix Layer.GML unit tests 2011-11-21 19:14:05 +01:00
fredj
f0d93d1e85 Merge branch 'upstream-master' into deprecated.js 2011-11-18 13:51:19 +01:00
fredj
b630840d83 move Layer.GML into deprecated.js 2011-11-18 13:23:49 +01:00
ahocevar
4f58ff0352 Removing getBoundsFromBaseLayer method.
This method is only needed when the deprecated reproject option is set to true.
2011-11-18 13:06:28 +01:00
fredj
c82ccb4781 Merge branch 'upstream-master' into deprecated.js 2011-11-18 12:14:45 +01:00
fredj
8d01fa6fd8 move Layer.Yahoo into deprecated.js 2011-11-18 12:13:41 +01:00
Frédéric Junod
f713360c67 Merge pull request #52 from fredj/deprecated.js
Move deprecated code into deprecated.js, r=ahocevar
2011-11-18 03:05:29 -08:00
ahocevar
c207e785f9 Merge pull request #51 from ahocevar/adjust-zoom
Don't let wrapDateLine maps be wider than one world width. r=@bartvde (closes http://trac.openlayers.org/ticket/3574)
2011-11-16 01:25:31 -08:00
fredj
b07286b21a Don't use deprecated Layer.Grid.getGridBounds function in tests 2011-11-15 09:11:11 +01:00
fredj
cc3c89eb2a Don't use deprecated Layer.Grid.getGridBounds function in tests 2011-11-15 09:09:55 +01:00