This is a personal practice of Leaflet GeoJSON Tile Layer serving by a remote Geoserver (AJAX/JSONP), based on bootstrap-ruby/sinatra-bootstrap. Preparing for the US census data
To start it locally for example combined (calculated) data:
- put untar/unziped shape files under current folder's
data/combinefolder - install geoserver and ensure ENABLE_JSONP is not comment out by editing its configuration file, such as /usr/local/Cellar/geoserver/2.13.2/libexec/webapps/geoserver/WEB-INF/web.xml
- start geoserver by
geoserver /current/folder/ - follow example of geoserver manual to setup and publish shape files with WFS enabled.
- test example call to geoserver.
- bundle install and
bundle exec rackupto start sinatra, enjoy!
