You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2009-08-10 16:11:00

phe
Member
Registered: 2009-08-10
Posts: 3

Creating url to staticmap in jpg-format

Hi,

is it possible to create a url to a map with openstreetmap?

I´m thinking of s.th. like the staticmap of googlemaps:

http://maps.google.com/staticmap?center … ze=400x400

I´m not interested in alle the function of zooming and so on. I just want a static map, depending on lat and lon i set in url.


Thanks an regards.

Offline

#2 2009-08-10 17:27:16

DuiNui
Member
From: Chiang Mai, Thailand.
Registered: 2009-08-04
Posts: 41

Offline

#3 2009-08-10 19:47:11

JRA
Member
Registered: 2007-12-17
Posts: 677

Re: Creating url to staticmap in jpg-format

To get also a pushpin pointer use mlat= and mlon= with openstreetmap requests instead of lat and lon.

Offline

#4 2009-08-11 09:22:28

phe
Member
Registered: 2009-08-10
Posts: 3

Re: Creating url to staticmap in jpg-format

Hi,

thanks, but i´ve known these opportunities, yet.

So, the problem is, that all these solutions link finally to an app. What i need is to create dynamically an url to a real picture of a map. JPG woould be nice.

The staticmap-function with a url like this "http://maps.google.com/staticmap?center=43.1,12.3&zoom=2&size=400x400 & google-developer-key & .jpg" creates a jpg-picture.

It would be nice, if someone has an idea how to manage this with openstreetmap.

Regards.

Offline

#5 2009-08-11 10:59:52

JRA
Member
Registered: 2007-12-17
Posts: 677

Re: Creating url to staticmap in jpg-format

I guess you would like to get static maps from some external service instead of setting up your own?  Or just exporting image with OSM Export and placing the image on your own web site? I do not know any free alternative but If you are ready to pay for the service you may check the WMS alternative from Geofabrik http://www.geofabrik.de/data/wms.html .

Offline

#6 2009-08-11 11:16:47

phe
Member
Registered: 2009-08-10
Posts: 3

Re: Creating url to staticmap in jpg-format

Hmm, i don´t really want static maps. I want to create a jpg-map via url. The url will depend on values created by an external application. So the created jpg is theoretically dynamic.


I see, it wouldn´t be as easy as using an url like:  "http:\\www.openstreetmap.org/?lat=14.76&lon15.34253&zoom=9.jpg" and i have to use an external service for this.


Thanks and regards.

Offline

Board footer

Powered by FluxBB