Skip to content
A web application letting you make visualisations on Leaflet maps that don’t rely on Web Mercator.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
template
views
.env.example
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
app.rb
config.ru
imgur.rb
tiler.rb

README.md

antirubbersheeter

A web application letting you make visualisations on Leaflet maps that don’t rely on Web Mercator.

See the About page for more about the rationale. The workflow here is:

  1. Upload an image (that gets pushed to Imgur)

  2. Add a list of comma-separated place names.

  3. Begin the geocoder.

  4. Click on the map for each place.

  5. Copy the resulting JSON file that gets displayed.

  6. Use it for your own important ends.

If you want to avoid using Imgur / uploading / etc.:

  • Clone this repo.

  • Run bundle install

  • Copy the image you want to use into this repo’s public/ directory.

  • Edit the get 'map' section of app.rb so that it looks something like this:

get '/map' do
	@imgururl = "your-image.jpg"
	@width = 2560 # or whatever the width of the image is
	@height = 1200 # same
	@places = "List, Of, Places, We, Want, To Geocode"
	slim :map, layout: :layout
  # redirect '/'
end
  • Fire up puma with pumactl -F puma.rb start

  • Navigate your browser to http://localhost:9292/map and start your geocoder.

You can’t perform that action at this time.