[OpenLayers-Users] Getting tile URL from event parameters
protos
kildimo at gmail.com
Fri Aug 21 09:07:53 EDT 2009
Never mind - I figured it out.
For anyone else that might need it :
var px = new OpenLayers.Pixel(event.clientX, event.clientY);
var lonlat = map.getLonLatFromViewPortPx(px);
var bbox = map.Layer.getTileBounds(px);
Where map is an instance of your OpenLayers.Map
protos wrote:
>
> Hi,
>
> I need to get the URL for a tile that has been clicked on - specifically
> the bbox of the tile. Is there a way to get the bbox / url of a tile from
> any of the event parameters ? Was looking at clientX / clientY but I
> haven't had any success yet ..........
>
> Thanks in advance for any help.
>
> Colm
>
>
--
View this message in context: http://n2.nabble.com/Getting-tile-URL-from-event-parameters-tp3487285p3489169.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list