OpenLayers OpenLayers

Ticket #482 (closed feature: fixed)

Opened 1 year ago

Last modified 9 months ago

get tile bounds from viewport pixels

Reported by: tschaub Assigned to: tschaub
Priority: minor Milestone: 2.5 Release
Component: general Version:
Keywords: Cc:
State:

Description

In case anybody wants to know the tile bounds given a viewport pixel location, the following patch could be used.

Attachments

tile_bounds.patch (1.5 kB) - added by tschaub on 01/25/07 22:10:04.
calculate tile bounds given a viewport pixel location
kamap_tile_bounds.patch (1.8 kB) - added by tschaub on 01/25/07 23:16:14.
and the same for ka-map layers
gettilebounds.patch (5.4 kB) - added by crschmidt on 08/28/07 08:59:02.

Change History

01/25/07 22:10:04 changed by tschaub

  • attachment tile_bounds.patch added.

calculate tile bounds given a viewport pixel location

01/25/07 23:16:14 changed by tschaub

  • attachment kamap_tile_bounds.patch added.

and the same for ka-map layers

03/09/07 17:21:19 changed by sderle

  • keywords set to review.
  • milestone set to 2.4 Release.

do we really need this?

03/12/07 11:55:05 changed by tschaub

Doesn't bother me to ditch it. I just put it here in response to this thread.

03/19/07 13:45:43 changed by sderle

  • milestone changed from 2.4 Release to 2.5 Release.

all right. every time we add something to the API we have to then support backwards compatibility with it. :-) I say YAGNI. I'll move this ticket to 2.5 and we can revisit it then.

06/17/07 09:25:54 changed by crschmidt

  • keywords deleted.

This is a feature we have seen requests for several times, and OSM could use it in some of their applications. The code looks fine, but I'd like to see some tests -- Tim, can you add tests, and make this one patch, if you care? For now, dropping it to review-.

Anyone else can feel free to grab this if Tim doesn't want it.

07/14/07 12:00:57 changed by crschmidt

  • keywords set to needstests.

08/28/07 08:59:02 changed by crschmidt

  • attachment gettilebounds.patch added.

08/28/07 08:59:21 changed by crschmidt

  • keywords changed from needstests to review.

Now, with tests!

08/28/07 19:15:54 changed by tschaub

  • keywords changed from review to commit.

Passes. Please commit.

08/28/07 19:24:37 changed by tschaub

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.

in w/ r4088

08/28/07 19:30:24 changed by tschaub

(In [4089]) Correcting the ndoc typo I made in r4088. Now layer.getTilesBounds and layer.getTileBounds are properly documented (see #482).