[OSM-dev] Tile centered on POI... howto?
Toby Murray
toby.murray at gmail.com
Tue Apr 17 10:11:32 BST 2012
On Tue, Apr 17, 2012 at 3:15 AM, Morten Kjeldgaard <mok at bioxray.dk> wrote:
> Hi,
>
> I'd like to present tiles centered on certain POIs for use on a web page.
> Pretty much like it is done in opestreetmap.org's node browser, except I'd
> like a square image.
>
> Is there a smart way to do this, other than downloading the center tile plus
> the 8 surrounding tiles, assembling the 9 tiles into a 768 x 768 image, and
> finally cropping it down to a 256 x 256 tile centered on the POI?
You could use a static map API:
http://wiki.openstreetmap.org/wiki/Static_map_images
If you plan on getting any kind of load I would suggest looking at the
MapQuest Open one since it doesn't depend on limited OSMF servers. It
is also gives you a lot of control over the final product.
Toby
More information about the dev
mailing list