A simple Java server that serves up OSM Sqlite database files. This tool will serve up map tiles stored in a osmdroid sqlite database created by MOBAC.
This tool is not designed for a high volume, production scale systems. It's most appropriate for testing, development and disconnected (from the internet) environments where you needed to serve up map tiles quickly and don't want to generate tiles using the Open Street Map database and associated tooling. This tool is not meant to be internet facing.
Primarily for those want to test osmdroid on a network that can't reach the internet.
Preparing your tile databases
Fire up MOBAC and create an OsmDroid sqlite database. Use 256x256pixel tiles.
Add in whatever OsmDroid style Sqlite database files that you have using the example. A very small example database using the USGS Topographic maps is provided.
Start it up
java -jar target/osmdroid-server-jdk-<version>-jar-with-dependencies.jar (optional port, default 80)
../gradlew run <port>
Point browser to: http://localhost:port/, tile sources can be changed using the drop down menu.
Web server deployment
The tile server is also packaged as a WAR file. I haven't tested it, so I probably won't work.
Pull requests are encouraged and accepted
- flexible plugin system to enable server tiles from virtually any sqlite based table schema
- support other database servers (via JDBC connections)
Example map data set
"Map services and data available from U.S. Geological Survey, National Geospatial Program." Please go to http://www.usgs.gov/visual-id/credit_usgs.html for further information and details regarding the USGS Visual Identity System.
This bit of code: Apache Software Foundation 2.0
OpenLayers: BSD 2 Clause
Apache libraries Apache 2.0 License