android - Render Open Streetmap map as bitmap of known scale -


how use openstreetmap on android generate map bitmap center point corresponds specific location (like (25.60156, -80.41306)), each pixel of represents area that's approximately 100 meters north south, , approximately 70-100 meters east west?

for purposes of example, assume want map include high-level details country/state outlines, county outlines, , major roads. don't want litter map things city names, minor roads, transit lines, bodies of water, etc.

i've seen hundreds of examples show how embed osm map android app map app, there seems surprisingly little information using osm library generate maps bitmaps use else (like 8192 x 4096 bitmap suitable use opengl es 2.0 texture).

i'm open using google maps, of course... far can tell, google maps doesn't lack api this, it's explicitly forbidden tos map data besides embed verbatim google mapview.

i'm open other ideas, using free public gis data... i've gotten impression "free" gis data somehow encumbered esri , restricted commercial use (possibly via patents, or maybe claiming ownership of data files generated software).

note: i'd prefer fetch map data public server , map-generation locally under android, if that's hopeless task, alternative might generate map bitmaps on web server , serve them needed app's users.

what you're looking idea of "static map" - web service creates bitmaps specific geographic areas , returns image. many companies provide service, , tend have terms permit use images images in html or textures on mobile devices.

here's google maps static implementation , mapbox static maps api. both support custom styling lets remove unnecessary visual features; it's focus of mapbox part of mapbox studio google maps supports styled maps.

full disclosure: work mapbox.

in terms of requesting images @ specific scale measured in meters, table of resolution , scale should going.


Comments