[OSM-newbies] Converting lat/lon to pixel within a tile
Vishwa
rnvishwa at gmail.com
Wed Apr 30 11:25:55 BST 2008
i am doing this using C#.Net to create a image out of tiles, and i have to
center the image to the given image
i know the zoom level, and the center coordianates, and the size of the 3x3
grid. how to center align the map when the center can be anywhere within the
256x256 center tile?
thanks
vishwa
> On Wed, Apr 30, 2008 at 1:15 PM, Iván Sánchez Ortega <
> ivan at sanchezortega.es> wrote:
>
> > El Miércoles, 30 de Abril de 2008, Vishwa escribió:
> > > In other words, how to know the pixel (x,y) *within the center tile*
> > for a
> > > given lon,lat value.
> >
> > If you're using javascript, please keep in mind that there are
> > OpenLayers
> > functions for this.
> >
> > --
> > ----------------------------------
> > Iván Sánchez Ortega <ivan at sanchezortega.es>
> >
> > "Anything that is too stupid to be spoken is sung."
> > - Voltaire (1694-1778) [poor guy, never knew about rap]
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/newbies/attachments/20080430/f608388c/attachment.html>
More information about the newbies
mailing list