Stéphane Brunner
341c08adee
Add missing requires on Request for UTFGrid
2012-09-11 11:38:24 +02:00
ahocevar
b2210d00a9
Removing no longer needed code.
...
Thanks @elemoine for catching the IE6 reflow in Tile/Image.js.
2012-08-21 13:57:11 +02:00
ahocevar
f0ad48597f
No more percentage based positioning.
...
Client zoom now supports both over- and undersampling.
2012-08-21 13:57:11 +02:00
ahocevar
ff1f99a03f
Don't reuse tile images unless we have a new url to load.
...
Without this change, some browsers don't cache the images. See #454 for a discussion about this issue.
2012-05-25 18:47:57 +02:00
Éric Lemoine
612401a644
fix bug where tiles with gutters are shifted (refs #441 )
2012-04-28 21:23:55 +02:00
ahocevar
fc0b15ad45
Overriding onImageLoad to set the opacity on the correct element.
2012-04-24 08:08:41 -04: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
ahocevar
f32bfa2240
Making backbuffer work again for tiles with frame.
2012-03-19 10:10:40 +01: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
ahocevar
81e7913075
Fixing crossorigin attribute handling.
2012-03-06 23:21:25 +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
Éric Lemoine
3b860ca4d7
Merge pull request #168 from jorix/Docs-issues3
...
Some problems in the documentation
2012-03-06 00:05:52 -08:00
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
Xavier Mamano
bfb379f349
Fix some problems in the documentation.
2012-03-05 11:43:09 +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