Sha256: 85ceb3a4e5e157c8aa9cb48d4bf3643481645b5402df638679153f0793bef87e
Contents?: true
Size: 616 Bytes
Versions: 8
Compression:
Stored size: 616 Bytes
Contents
# frozen_string_literal: true class Map::GlebaTilesService ZOOM_MIN = 1 ZOOM_MAX = 15 OUTPUT_DIR = 'public/map_tiles' def initialize(gleba) @gleba = gleba end def download_all_tiles download_service.download end def download_service @download_service ||= Map::DownloadTilesService.new({ boundary_ne: kml_service.point_more_north_east, boundary_sw: kml_service.point_more_south_west, zoom_min: ZOOM_MIN, zoom_max: ZOOM_MAX, output_directory: OUTPUT_DIR }) end def kml_service @kml_service ||= Map::KmlService.new(@gleba.arquivo_kml) end end
Version data entries
8 entries across 8 versions & 1 rubygems