Commit Graph

2005 Commits

Author SHA1 Message Date
ahocevar
3eedfce46e Fixing test after 5e9104a2a2. 2012-03-27 13:10:28 -07:00
ahocevar
8d42f33a28 Fixing typo which causes CacheRead to fail when CacheWrite is active 2012-03-21 23:21:24 +01:00
Tim Schaub
97582d637f Merge pull request #341 from tschaub/script
Correcting the callback for the script protocol.
2012-03-21 15:07:31 -07:00
tschaub
609e5f7f09 Taking brackets out of the callback.
The Yahoo API doesn't accept quotes in the callback (e.g. foo['bar']).  Since the callback registry is an object and all identifiers are prefixed with "c" now, we can use dot notation.
2012-03-21 09:18:23 -06:00
ahocevar
5e9104a2a2 Revert "Merge pull request #304 from mpriour/singleTile"
This reverts commit 84fb15e1d2, reversing
changes made to d0d116efdf.
2012-03-21 10:05:22 +01:00
tschaub
127abf8782 Correcting the callback for the script protocol.
In f08119b01e, the default syntax for the script protocol's callback made it so the callbacks looked like `OpenLayers.Protocol.Script.registry[c1]`.  This essentially breaks the script protocol everywhere except where `c1` is defined and equals "c1" (the string).

Tests with this change demonstrate that default callbacks will now look like `OpenLayers.Protocol.Script.registry['c1']` (properly accessing the `c1` property of the registry object).
2012-03-20 17:07:52 -06:00
ahocevar
d31a8da839 Clone needs a fresh backBuffer and tileQueue. 2012-03-19 21:09:43 +01:00
Bart van den Eijnden
c1944eb6da backBuffer style left and top need to be rounded 2012-03-19 10:15:13 +01:00
Frederic Junod
2ddca7f8cd Remove Layer.MultiMap tests and code.
The API code from http://developer.multimap.com is no longer available.
2012-03-16 14:59:10 +01:00
ahocevar
85b836de23 Merge pull request #322 from ahocevar/322
WMS loadend event does not always fire
2012-03-16 00:48:29 -07:00
Éric Lemoine
8acab59320 Merge pull request #326 from fredj/proj4js-url
Fix proj4js script.src
2012-03-15 15:21:14 -07:00
ahocevar
193983b2b0 tileQueue has nothing to do with numLoadingTiles.
The tileQueue might have entries again after zooming when the previous zoom level hasn't finished loading yet. Removing the check for the tileQueue's length makes layers report loadend correctly again.
2012-03-15 17:44:30 +01:00
Frederic Junod
46309b5265 Fix proj4js script.src 2012-03-15 17:13:10 +01: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
Éric Lemoine
0786a5c532 Merge remote branch 'ahocevar/320' into 2.12 2012-03-14 20:21:25 +01:00
ahocevar
ef3155d6e6 Fixing test. 2012-03-14 18:27:35 +01:00
fredj
420a6f4dd2 Move SVG2 renderer to deprecated.js 2012-03-14 09:17:42 +01:00
Antoine Abt
bed3edeb46 Merge pull request #281 from ejn/master
Improve iconOn/iconOff class name matching in Panel.js; add unit tests
2012-03-13 00:37:54 -07:00
ahocevar
6b5dba3f93 Merge pull request #301 from ahocevar/offline
Adding CacheRead and CacheWrite controls. r=@elemoine,@fredj
2012-03-12 08:29:00 -07:00
Éric Lemoine
c66371ebf8 Merge pull request #288 from mpriour/multiple-builds
Make the getScriptLocation function work with mobile & light builds
2012-03-12 07:19:42 -07:00
ahocevar
7693c2480d Merge pull request #296 from ajkopinga/canvas-edge-hit2
added hit detection for symbol edges to canvas renderer with unit tests
2012-03-12 06:12:57 -07:00
Éric Lemoine
645e2f4016 add tests for SingleFile._getScriptLocation 2012-03-12 09:06:27 +01:00
Éric Lemoine
7f94945244 Merge pull request #312 from elemoine/redraw
Vector.Redraw should set zoomChanged to true in moveTo
2012-03-10 00:55:31 -08:00
ahocevar
dfa70fafac Remove other references to unavailable external resources.
For me, several Image.html tests still failed in Firefox without this change (see #311)
2012-03-10 01:55:57 +01:00
ahocevar
84fb15e1d2 Merge pull request #304 from mpriour/singleTile
Modify Grid.js to respect layer's maxExtent in singleTile mode
2012-03-09 16:24:27 -08:00
Éric Lemoine
d0d116efdf add missing blank.gif file in tests/Tile 2012-03-10 00:34:39 +01:00
Éric Lemoine
0fa9651ee8 fix Tile/Image tests - we should not rely on external resources like http://labs.metacarta.com/wms/vmap0, refs #311 2012-03-10 00:30:04 +01:00
ahocevar
e52c97f741 Don't check based on layer.maxExtent.
layer.maxExtent is always set as soon as the layer is added to a map. Instead, making behavior consistent with tiled layers: don't display outside maxExtent except when displayOutsideMaxExtent is set to true or the layer's extent equals the world bounds for maps with a baseLayer that has wrapDateLine set to true.
2012-03-09 23:50:09 +01:00
Éric Lemoine
c693884f5f redraw on vector layers should set zoomChanged to true in the moveTo call (refs #305) 2012-03-09 23:40:34 +01:00
Matt Priour
0ff2f9a457 Simplify maxExtent restriction logic and prevent unneeded calls to `getLayerPxFromLonLat` 2012-03-09 14:26:48 -06:00
Matt Priour
f6c8b81f3a Merge branch 'master' into singleTile 2012-03-09 14:04:21 -06:00
Tim Schaub
1a444589e0 Merge pull request #274 from tschaub/utfgrid
UTFGrid Tile, Layer, and Control.  This adds support for responsive handling of interactions with large numbers of features represented by UTFGrids.
2012-03-09 08:49:30 -08:00
Tim Schaub
021ad521a8 Tests for the getTileData method.
Tests pass on Chrome 17, Firefox 10, IE 8, and IE 6.
2012-03-08 19:18:32 -06:00
Matt Priour
9fbd3072b7 Merge branch 'master' into singleTile 2012-03-08 16:36:41 -06:00
Matt Priour
9d0dd67843 Add tests for initSingleTile function, which is where all the important singleTile logic is 2012-03-08 16:26:46 -06:00
Éric Lemoine
89cf93d994 fix the Grid tests that fail in slow browsers, suggested by @ahocevar (refs #299) 2012-03-08 17:53:09 +01:00
Bart van den Eijnden
05e40e5cf0 Merge pull request #302 from bartvde/graphic
don't output graphic inside of textsymbolizer if graphic is set to false (@r=ahocevar)
2012-03-08 08:10:02 -08:00
ahocevar
636ac640ca Don't test VML if SVG is also supported.
The VML renderer does not work in IE9 standards mode, and SVG takes precedence over VML. So it is safe to skip these tests if both VML and SVG report "supported". See #285
2012-03-08 16:27:51 +01:00
Bart van den Eijnden
9707a388c3 typo 2012-03-08 15:52:03 +01:00
Bart van den Eijnden
5d9791133e do not output graphic inside of textsymbolizer if graphic is set to false 2012-03-08 15:47:43 +01:00
ahocevar
f18ac9911b Adding CacheRead and CacheWrite controls.
These controls read from and write to the browser's offline storage. Example with a seeding tool included.
2012-03-08 14:18:44 +01:00
Éric Lemoine
877f4b4cc6 make the PanZoom tests pass in IE 9+, by not running tests that rely on document.createEvent in this browser too, no functional change (refs #277) 2012-03-07 22:01:39 +01:00
ahocevar
2f4ca63a39 Merge pull request #297 from ahocevar/tileloadstart
tileloadstart event and fixed crossorigin handling. r=@fredj
2012-03-07 01:30:36 -08:00
Marc Jansen
d122ebcf4e Merge pull request #286 from marcjansen/imgpath
Declare ImgPath property of OpenLayers in OpenLayers.js (r=@elemoine,@ahocevar)
2012-03-06 23:02:25 -08:00
Arjen Kopinga
677659df96 broadening stroke width in symbol edge hit detection test to lessen sensitivity to browser antialiasing differences 2012-03-06 15:27:26 +01:00
ahocevar
a05eab29db Adding tileloadstart event to layer.
For this to be useful (i.e. so listeners can see/modify the tile url), a change in Tile.Image is required so we do not fire the loadstart event before we have the url to load.
2012-03-06 14:40:08 +01:00
Arjen Kopinga
a836224a14 added hit detection for symbol edges to canvas renderer with unit tests
Added unit tests for hit detection on invisible canvas layer

simplified unit test for hit detection on invisible canvas
2012-03-06 14:12:53 +01:00
Tim Schaub
cf30e71b9f Merge branch 'master' of github.com:openlayers/openlayers into utfgrid 2012-03-06 00:06:15 -07:00
Tim Schaub
8d6bddf0ac A simple zoom control with zoom in/out links.
The zoom control allows for zoom in/out links that can be styled with CSS.

Note: This change was originally captured in #269.  It involves nice additions thanks @ahocevar.  The changes were unintentionally merged and then reverted with fb3caf1561, so the history of commits is not immediately apparent (though still likely there somewhere due to the magic of git).
2012-03-05 22:11:36 -07:00
Éric Lemoine
d5da1130b5 Merge pull request #207 from probins/script
Change Protocol/Script registry to object
2012-03-05 13:52:44 -08:00