Calculating boundingbox

If I have the center and zoom-level of a tile, how do I calculate the extents of the tile In other words, what are the extents of a tile I know this changes because of the mercator-projection.

The new tilesource spec returns a tileContext which only holds the three values mentioned above, which I think is far from enough to create a dynamic generated layer from a different datasource based on long/lat. Especially if you have t to perform on-the-fly reprojection to Mercator. Is it possible to extract the Mercator-coordinates, and translate the zoom-value to a tile-size based on these units



Answer this question

Calculating boundingbox

  • GoDaddy

    You may find the article on rolling your own tile server at viavirtualearth useful:
    http://viavirtualearth.com/VVE/Articles/RollYourOwnTileServer.ashx
    John.


  • JimIngleton

    Very cool.
    So am i assuming that means you got SharpMap to serve dynamic tiles into VE Or at least produce tiles for VE
    John


  • Tonito01

    I have now.
    Thanks for sharing. I'm keen to have a play with your SharpMap. Its good to see some GIS guys playing with VE. Thanks.
    John.


  • jeRKer

    Ehm didn't you notice the "download source" link at the bottom I also blogged about it here: http://www.sharpgis.net
  • Cory P

    Cool cool.
    Any chance you will be sharing the solution on a web site somewhere. Hint, hint
    I'm sure the SharpMap guys would be interested as would I and others using the new layers in VE.
    John.

  • Alexander Ekzarov

    Thanks for the link. I finally hacked it and ended up with this: http://showcase.sharpgis.net/ve.


  • Bert van Uitert

    Yup its all fully dynamic (except IE caches the tiles on the client, so tiles you have already loaded earlier won't be updated if the data from SharpMap changes)
  • Calculating boundingbox