Tim Schaub
cf30e71b9f
Merge branch 'master' of github.com:openlayers/openlayers into utfgrid
2012-03-06 00:06:15 -07:00
ahocevar
fe63d0aa63
New events: loaderror for Tile, tileerror for Layer.Grid.
2012-03-05 14:20:01 +01:00
Éric Lemoine
9a116b21b9
Revert "protect for in loops with hasOwnProperty"
...
This reverts commit e3cc96dbfb .
2012-03-03 22:35:39 +01:00
Bart van den Eijnden
e3cc96dbfb
protect for in loops with hasOwnProperty
2012-02-29 18:43:55 +01:00
Tim Schaub
4d31a3ed3a
Method for getting both feature id and data.
...
Having to call two methods to get complete feature information (id and data) is cumbersome. The `getFeatureInfo` method returns an object with both feature id and data.
2012-02-28 05:37:28 -07:00
ahocevar
c55a8b554d
Merge pull request #229 from ahocevar/post-blank
...
Using a blankImageUrl that works for IFrames in IE9. r=@elemoine.
2012-02-28 00:23:51 -08:00
tschaub
fd595e6282
Clearer tile method names.
2012-02-27 16:47:11 -07:00
tschaub
89e8a872a5
Making the default UTFGrid resolution 2.
...
According to the latest [spec](https://github.com/mapbox/utfgrid-spec/blob/master/1.2/utfgrid.md ): "By default, UTFGrid operates on a 2x2 grid."
2012-02-27 08:57:22 -07:00
Tim Schaub
551c582ab1
Layer and tile API update.
...
The tile now has responsibility for resolving feature ids and fetching feature data given x, y pixel offsets with getFeatureId and getFeatureData methods. The layer has corresponding getFeatureId and getFeatureData methods that take a map location, lookup the appropriate tile, and delegate to the tile for the rest of the work.
2012-02-26 21:05:12 -07:00
Tim Schaub
faeb691f3a
Tests for UTFGrid tiles.
2012-02-25 23:07:31 -07:00
Tim Schaub
8c95a90052
The parseData method doesn't need to know of XHR.
2012-02-25 20:51:03 -07:00
Tim Schaub
12fa9b54ef
Consistency with tile loading events.
...
Since loadstart is being fired here, it makes sense to fire loadend as well. The isLoading flag also needs to be cleared. Needs tests still.
2012-02-25 20:45:18 -07:00
Tim Schaub
c18f6a23be
Use JSON format for parsing JSON.
...
To get IE7 support, the OpenLayers.Format.JSON parser should be used. This leverages the native JSON.parse method where available. It does add extra weight to UTFGrid builds. However, as of this commit date, we lose large portions of US govt agencies when we exclude IE7.
2012-02-25 20:18:23 -07:00
Tim Schaub
e6f0aa08e5
Cleanup use of Script protocol.
...
I would think there would still be an error thrown here. Will put together a test to determine for sure, but I'd think that the default GeoJSON parser used by the protocol would choke on the UTFGrid json.
2012-02-25 20:09:34 -07:00
Tim Schaub
73e6973ab5
Remove cargo culted image tile bits.
2012-02-25 20:03:40 -07:00
mperry
ede6da8e6f
Merge remote-tracking branch 'upstream/master' into utfgrid
2012-02-25 17:51:56 -08:00
ahocevar
85498cb23f
Removing imageOffset and using getImageSize.
...
This fixes a regression that was introduced with the Tile.Image overhaul. See http://trac.osgeo.org/openlayers/ticket/3625 .
2012-02-21 15:06:32 +01:00
ahocevar
221d7caf70
Using a blankImgUrl that works for IFrames in IE9.
...
See http://trac.osgeo.org/openlayers/ticket/3624 .
2012-02-20 12:01:56 +01:00
Matthew Perry
bdf9e1b99e
Just call read; don't store variable
2012-02-14 11:16:41 -08: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
Matthew Perry
867080a074
Option for loading utfgrid via jsonp
2012-02-13 16:56:35 -08:00
fredj
f8099e9ab1
Unset crossOrigin when setting blankImageUrl to the image.
...
Tested with FF 10, Chrome 16 and 18.
2012-02-10 13:46:13 +01:00
ahocevar
342d624616
New crossOriginKeyword property.
...
Set to 'anonymous' for Layer.OSM and Layer.Bing, and not used by default for other layers.
2012-02-10 12:50:13 +01:00
fredj
b34f272fa7
Optimize the string test
2012-02-09 15:35:35 +01:00
fredj
e9097ce066
More APIdoc for OpenLayers.Tile.Image.getCanvasContext
2012-02-09 15:34:08 +01:00
fredj
b4ac0af5d8
New OpenLayers.Tile.Image.getCanvasContext function
2012-02-09 15:34:00 +01:00
fredj
57ae02f381
Set image.crossOrigin attribute in OpenLayers.Tile.Image
2012-02-09 15:33:54 +01:00
Matthew Perry
fb791e14fa
Update Tile/UTFGrid.js to remove traces of images.
2012-02-06 09:46:57 -08:00
Matthew Perry
8aaaecc9ee
Fix a problem determining zoom levels. Updated some docs.
2012-02-06 09:06:49 -08:00
Matthew Perry
be4db93e9b
Preliminary working implementation.. still lots of slop to clean up
2012-02-05 09:33:32 -08:00
Matthew Perry
92cbac468c
Merge remote-tracking branch 'upstream/master' into utfgrid
2012-02-04 17:03:25 -08:00
Matthew Perry
a6df52ff83
Initial import of UTFGrid support. Needs work.
2012-02-04 12:22:27 -08: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
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
fredj
40806dbe68
Pass the callback scope to getURLasync
2012-01-27 14:50:34 +01:00
fredj
fe202cef14
Change getUrlAsync parameters.
...
Instead of giving the function a bound, a scope, a property to update
and a callback, only give the bound and a callback.
When the url is retrieved by getUrlAsync, simply call the callback
with the url as argument and let the caller manage this.
2012-01-27 13:23:08 +01:00
Éric Lemoine
d3db3011a3
in Tile.Image do the opacity filter setting where it was done before, i.e. right after the img creation
2012-01-10 21:24:09 +01:00
Éric Lemoine
30c5b11d99
Merge branch 'master' into tile-fade-in
...
Conflicts:
examples/fullScreen.js
2012-01-05 09:39:39 +01:00
tschaub
b844a3b11b
Happy New Year!
...
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
Éric Lemoine
fcb9a6cd2c
remove Tile.Image.onTransitionEnd - it is no longer used
2012-01-02 23:20:15 +01:00
Éric Lemoine
eb924c8f77
no longer rely on the transitionend event, unwanted flashes are avoid using a timer
2012-01-02 22:53:53 +01:00
tschaub
b7b0d6b712
Collecting image tile changes in the Image.js.
2012-01-02 11:40:50 -07:00
Éric Lemoine
5edd3d3f84
make Tile.Image compatible with CSS-based tile fade animation
2011-12-31 00:19:19 +01:00
ahocevar
7fbae9f345
Fixing IFrame tile layers.
...
A problem introduced with 5fda8835da can easily be solved by re-adding a check for imgDiv and a strict type check for useIFrame. Thanks @elemoine for pointing out that there could be a problem.
2011-12-22 01:14:04 +01:00
fredj
3cfd21c318
group the img.style changes
2011-12-12 15:05:51 +01:00
fredj
ee37617c21
Only set img.style.position once
2011-12-12 13:48:57 +01:00
fredj
efdd9d0eb2
don't create div for image tile when no gutter is used
2011-11-30 14:19:36 +01:00
ahocevar
4b0e45b369
adding comment that the reproject option is deprecated and getBoundsFromLayer is defined in deprecated.js, as suggested by @elemoine.
2011-11-18 13:48:07 +01:00
Frederic Junod
2900823eb2
Move deprecated Layer.WFS and Tile.WFS into deprecated.js.
2011-11-14 15:28:57 +01:00
Éric Lemoine
c80746b890
Tile.Image.cloneMarkup renamed Tile.Image.createBackBuffer
2011-10-29 12:22:08 +02:00