September 12, 2010, 3:33pm
i am very new to osm.
I would like to add a map to my website only with the borders of country or states, e.g.
Background: I like to make a quiz website, with questions like “Where is Houston?”
So i need a map with borders only, and on click, i need latitude and longitude.
Is this possible with osm?
Thanks for your answers.
September 13, 2010, 9:45pm
Technically this possible with OSM, but the borders within OSM have a lot of detail. There are other free datasets with simpler borders that are probably better suited for your application. (sorry I don’t have a link handy)
September 14, 2010, 9:24am
ok, thanks for your reply.
so i should better look for another map?
what do you mean with: the borders are technically? Wouldn’t it be possiple to hide all data except the borders between countries?
September 14, 2010, 10:25am
Depending on your level of involvement / expertise, there are several different ways how to do this.
describes some of the options available.
For one you can set up your own tile server (e.g.
http://weait.com/content/build-your-own-openstreetmap-server ) and then customize the style sheets to drop everything but the borders. (in this case you might also need to tweak the osm2pgsql style, as otherwise you end importing all of the unneeded data)
I don’t currently know of a set of shape files that extract only the border as is available for the costlines ( like
Alternatively, you might be able to use the style-editor of
September 17, 2010, 5:18am
Or you could use XAPI to extract just the boundary=administrative ways, then filter out the admin_levels that you’re not interested in.
January 1, 2011, 12:50am
Could be done with osmfilter. Example:
bzcat lim.bz2 r.osm.bz2 r.osm.bz2 r.osm.bz2 wr.osm.bz2 lim.bz2 a.osm.bz2 | ./osmfilter -k"admin_level=7" >new.osm