DigitalCarleton / antirubbersheeter

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

Home Page:https://antirubbersheeter.moacir.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://antirubbersheeter.moacir.com

License:GNU General Public License v3.0


Languages

Language:HTML 51.3%Language:Ruby 24.4%Language:JavaScript 24.2%