Tim Schaub
84e36dd573
Avoid touching the geolocation object until needed
...
IE9 leaks when `navigator.geolocation` is accessed (see #461 ). The goal of this change is to avoid that leak in builds that include the Geolocate control but do not use it.
2013-02-04 15:46:45 -07:00
Bart van den Eijnden
d7f013ddbd
when cloning a layer that is loading, make sure numLoadingTiles is reset to 0 on the clone
2013-01-16 16:26:51 +01:00
ahocevar
2a7547c36c
Merge pull request #836 from ahocevar/replacing
...
No .olTileReplacing class for singleTile layers. r=@bartvde
2013-01-16 02:48:26 -08:00
ahocevar
fde7c5cc76
After #829 fallThrough needs to be true for this test
2013-01-15 13:41:26 +01:00
ahocevar
2cd14dfbfd
No .olTileReplacing class for singleTile layers
...
This fixes a regression for singleTile layers with transitionEffect set to
'resize', where the .olTileReplacing class was not removed from the tile.
2013-01-15 13:08:48 +01:00
Bart van den Eijnden
443c715f51
Merge pull request #626 from mpriour/zeropad
...
Consolidate numeric zero padding functions (r=@bartvde)
2013-01-09 00:26:17 -08:00
Matt Priour
3b56053849
Use BaseTypes zeropad function in ArcGISCache tests
2013-01-08 14:00:35 -06:00
ahocevar
f0db21f9c9
Fixing tests
2013-01-07 18:16:23 +01:00
ahocevar
c8564838bc
When the resolution does not change, remove backbuffer tile by tile
...
This change introduces a new 'replace' mode for tile transitions: when the
resolution does not change, which happens when mergeNewParams is called,
the tile will be marked with the .olTileReplace class. If this class sets
the tile's imgDiv display to 'none', the backbuffer for the tile will
immediately be removed when the tile is loaded.
2013-01-07 15:42:34 +01: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
Bart van den Eijnden
1e1ce54e5b
add tests and finish off the functionality for switching between singleTile true and false
2013-01-04 15:10:48 +01:00
Bart van den Eijnden
bec34f2d3d
Merge pull request #814 from eykamp/wcsdev
...
Add WCS GetCapabilities parsing for WCS 1.0.0 and 1.1.0 (r=@bartvde)
2013-01-02 08:40:34 -08:00
Christopher Eykamp
f9bb64505b
Add final LF
2013-01-02 17:12:51 +01:00
Christopher Eykamp
54c5656df5
Add final LF
2013-01-02 17:08:57 +01:00
Christopher Eykamp
f06931b1b7
Update source of sample XML
2013-01-02 14:32:02 +01:00
Christopher Eykamp
b15c751808
Reuse GML pos reader -- something looks not quite right here, but it does work
2013-01-02 14:21:30 +01:00
Christopher Eykamp
008c7d582e
Update test to reflect changes in last commit
2013-01-02 12:51:52 +01:00
Stéphane Brunner
0915fb72a2
Add RESTful compatibility support
2012-12-31 15:35:38 +01:00
Tobias Bieniek
06bd07ff8d
EncodedPolyline: Added write() method
2012-12-28 20:24:57 +01:00
Tobias Bieniek
510d42b12f
EncodedPolyline: Added encode() method
...
The write() method will follow in the next commit.
2012-12-28 01:31:24 +01:00
Tobias Bieniek
8651e05e75
EncodedPolyline: Allow setting geometryType to "point
2012-12-27 23:19:44 +01:00
Tobias Bieniek
c118d9884d
EncodedPolyline: Extracted universal decode(encoded, dims) method
2012-12-27 23:09:08 +01:00
Tobias Bieniek
aedafc0336
EncodedPolyline: Added geometryType attribute
...
This makes it possible to read polygons or multipoints too. Since the
encoded format is just a list of points the reader needs to be told what
Feature to create from the encoded list.
The example code is edited to reflect that API extension.
2012-12-27 23:09:08 +01:00
Christopher Eykamp
be7c55f432
Added full suite of wcs 1.1.0 tests, all are passing
2012-12-27 14:28:46 +01:00
Christopher Eykamp
b6c2c26580
WCS parsing working properly, but needs more tests; moved errorProperty down to parser, where it arguably belongs, and where it has to live to work with WCS. Also removed null error property on versionedOGC.
2012-12-27 13:29:02 +01:00
Tobias Bieniek
63a9567858
Format: Added EncodedPolyline class
...
This class is able to convert an encoded polyline string into a LineString embedded in a Vector Feature.
See https://developers.google.com/maps/documentation/utilities/polylinealgorithm for more information.
2012-12-26 18:25:04 +01:00
Christopher Eykamp
8ff05cdeac
WCS 1.1.0 parsing correctlyy; error property still not correctly set so parsing reports errors.
2012-12-24 18:19:42 +01:00
ahocevar
4b2e80fa36
Merge pull request #805 from mosesonline/unselectAllFix
...
unselectAll on removing layer fix
2012-12-24 06:17:04 -08:00
ahocevar
07e039b566
Merge pull request #803 from ahocevar/tween-framerate
...
Tween: skip frames when minimum frame rate is not reached. r=@bartvde
2012-12-24 06:11:11 -08:00
Bart van den Eijnden
2dfc23e217
Merge pull request #806 from eykamp/master
...
Identify and fix bug with WFS 1.1.0 (r=@bartvde,@ahocevar)
2012-12-24 05:35:14 -08:00
ahocevar
a02e08ad2a
New beforeload event and slightly changed loading sequence
...
Having the TileManager remove an image from the DOM, then setting the
cached image, and then having to position it felt a bit awkward. With the
new beforeload event, the setImage method and putting renderTile before
positionTile, providing the cached image feels way more natural.
2012-12-23 17:00:46 +01:00
ahocevar
64df7e3d04
Remove images from dom when replacing them with cached images
2012-12-23 17:00:46 +01:00
ahocevar
ecbedf5536
Updating tests
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
ahocevar
9609bb1449
Adding destroy method, as suggested by @bartvde
2012-12-23 17:00:45 +01:00
ahocevar
80fa251649
New TileManager
...
This removes all tile queueing/loading specific code from Layer.Grid
and creates a new class that manages tile loading and caching.
2012-12-23 17:00:45 +01:00
ahocevar
2ee362a79b
New tile image cache and tile queue improvements
...
We now reuse tile images by maintaining a cache of image elements with a
simplified LRU expiry policy (by order, not by timestamp). The tile queue
is bypassed for images that are available in the cache, so they can be
rendered immediately. And the tile queue itself loads more than just one
image at a time now (2 per layer url).
2012-12-23 16:57:24 +01:00
ahocevar
9759902dac
Fixing API; addressing @mpriour's doc comment
...
Previously, minFrameRate could not be set as option with the start method.
The tests failed to catch this flaw. Now both the start method and the
tests are fixed.
2012-12-21 21:24:04 +01:00
Christopher Eykamp
d0986de775
WCS 1.0.0 parsing now passing all tests
2012-12-21 18:51:39 +01:00
Christopher Eykamp
5c07ae47bb
WCS testing more-or-less working, many tests failing, as expected
2012-12-21 13:15:01 +01:00
ahocevar
86db8fabc6
Merge pull request #807 from ahocevar/units
...
WMTS Example misaligning with OSM base layer. r=@sbrunner
2012-12-20 14:35:57 -08:00
ahocevar
fc64b2c5f8
Fixing tests properly, as suggested by @sbrunner
2012-12-20 16:30:58 +01:00
ahocevar
f5d7f794c9
Some tweaks to make tests pass again
2012-12-19 23:13:11 +01:00
ahocevar
893966dfae
'm' and 'Meters' in OpenLayers.INCHES_PER_UNIT are not the same
...
OpenLayers.INCHES_PER_UNIT.m should equal
OpenLayers.INCHES_PER_UNIT.Meters, just like OpenLayers.INCHES_PER_UNIT.km
should equal OpenLayers.Inches_PER_UNIT.Kilometers. This confusion probably
comes from mixing International inches with US Survey inches when compiling
the unit conversion list (1 meter is 39.37007874 International inches, but
39.37 US Survey inches. It may not be obvious, but 'inches'/'Inch' in
OpenLayers means US Survey inch, and 'IInch' means International inch).
This change also fixes offsets caused by incorrect resolution calculations in
OpenLayers.Format.WMTSCapabilities.
2012-12-19 22:23:45 +01:00
Christopher Eykamp
6c5119455d
Basic WCS testing in place. Tests are basically meaningless at this point.
2012-12-19 18:11:14 +01:00
Christopher Eykamp
2c6b8aefcf
Improve added error tests
2012-12-19 10:49:16 +01:00
Christopher Eykamp
a2c161be08
Revert error message change
2012-12-19 10:45:25 +01:00
Christopher Eykamp
428335fd0d
Even more sensible error message
2012-12-19 10:32:19 +01:00
Christopher Eykamp
7790a0a9b6
More sensible error message
2012-12-19 10:31:42 +01:00
mosesonline
0263b2b5e1
[Change] renamed test and added print of error
2012-12-18 09:47:33 +01:00