Module: GeoConcerns::Processors::Rendering
- Extended by:
- ActiveSupport::Concern
- Included in:
- Vector::Base
- Defined in:
- app/processors/geo_concerns/processors/rendering.rb
Class Method Summary collapse
-
.simple_tiles_map(in_path, options) ⇒ SimplerTiles::Map
Builds a simple tiles map from a shapefile.
Class Method Details
.simple_tiles_map(in_path, options) ⇒ SimplerTiles::Map
Builds a simple tiles map from a shapefile.
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'app/processors/geo_concerns/processors/rendering.rb', line 23 def simple_tiles_map(in_path, ) (in_path, ) size = rendering_size() SimplerTiles::Map.new do |m| m.srs = 'EPSG:4326' m.bgcolor = SimplerTiles.config.bg_color m.width = size[0] m.height = size[1] m.set_bounds(*simple_tiles_bounds()) add_shapefile_layer(in_path, m) end end |