Skip to content

jwhitehorn/silent_cartographer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A Sinatra based MBTiles server.

Getting Started

Requirements

Silent Cartographer depdends on several other software packages. Fortunately, most of those dependencies are managed for you.

If you don't already have RVM, install that first. Then:

  • Download the latest build of Silent Cartographer from here, or git clone https://github.com/jwhitehorn/silent_cartographer.git
  • cd into silent_cartographer - RVM will prompt you, please read and agree.
  • ruby -v should confirm that you are running Ruby 1.9.2, if not, something is wrong with RVM.
  • Install gems gem install bundler && bundle install

Configuration

Lukily there isn't much to configure, as the MBTile format itself takes care of several of the details. To configure Silent Cartographer, you'll simply need to specify the location of your MBTiles file. By default, the app looks for a file called map.mbtiles in the application's root. You can either copy/rename your own MBTiles to map.mbtiles, or you can edit the config/database.rb configuration file and specify your own path.

Running the app

You are now done setting up the app. To launch it now, or any time in the future, simply rackup! You will be greeted with somthing similar to:

>> Thin web server (v1.4.1 codename Chromeo)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:9292, CTRL+C to stop

In this case, you'd point your web browser to http://localhost:9292 to see your maps.

Scaling

See scaling for more information.

License

Copyright (c) 2012, Jason Whitehorn All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

Sinatra based MBTiles server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages