aqila-mapas 0.4.5 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8878e6c12c3d84b3e024092d066a15604794ac46aa1013063699e66087cdd91b
4
- data.tar.gz: 06dbb542727a82b0b7770246399bc3991a237ef777534548cffb2e20f0e19129
3
+ metadata.gz: d6fce2f7cd80a0ad57fa45f9135295600e04bd639c4359e86c00b75afe05f522
4
+ data.tar.gz: e4030db8d53c17a6b32bd36742584596f9dbe9be48355d0e24fe493dc80ca1cd
5
5
  SHA512:
6
- metadata.gz: 20a988dc16dbb648602a33666687ff098f0c2ad9fe8cc7bf02393b0d93bf782fbf7c7fc23e65370695d528b892d1adb1362e242255c4cee1ab84fc020836a0e8
7
- data.tar.gz: 24bafa96f8fa18267df07efe09aa62a51e767e191782b673fc71e92fafed69037474ffa0372e64653044ae405292526c1d8376d10fe2a6538f9e08beeec29b73
6
+ metadata.gz: '08591b8107f70c8e2f66700783c56b41fd90e771359b73f0b5dfbb52ac814ab1b56a85602bf7698f595ffb9d0ae43e3449e47d3b2891de964380ad9e43f8dc63'
7
+ data.tar.gz: 5220c696138f3dcf555eb414916684a709d48ed7d68bcd744c3430403e570551f2e68d3194c4c5677703251a3bedfd1ee2b4e9ffdb898a2a60e08ab4105500ab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aqila-mapas (0.4.5)
4
+ aqila-mapas (0.4.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aqila
4
4
  module Mapas
5
- VERSION = '0.4.5'
5
+ VERSION = '0.4.7'
6
6
  end
7
7
  end
@@ -13,7 +13,7 @@ class Map::DownloadTilesService
13
13
  'http://c.tile.openstreetmap.org'
14
14
  ].freeze
15
15
  MAP_BOX_SERVER = 'https://api.mapbox.com/styles/v1/mapbox/satellite-v9/tiles/256'
16
- MAP_BOX_TOKEN = 'pk.eyJ1IjoiYWdybzEtaW5vdmFjYW8iLCJhIjoiY2lqdmRub3MyMDVyNXVjbTVwOXF2bnVvMSJ9.M6MRl61WC_fKEv6B6y72Ug'
16
+ MAP_BOX_TOKEN = 'pk.eyJ1IjoiaW5vdmFjYW8tYWdybzEiLCJhIjoiY2xneHhwdXZ0MDN5OTNpcXF3dTd0dHJwOCJ9.kZoathkPpmDuuc1nDROauA'
17
17
 
18
18
  def initialize(options = {})
19
19
  @zoom_min = options[:zoom] || options[:zoom_min]
@@ -61,8 +61,10 @@ class Map::DownloadTilesService
61
61
  FileUtils.mkdir_p(dir)
62
62
 
63
63
  url = if @server
64
+ Rails.logger.info "Baixando tiles do server: #{@server}/#{zoom}/#{points.first}/#{points.second}"
64
65
  "#{@server}/#{zoom}/#{points.first}/#{points.second}.png"
65
66
  else
67
+ Rails.logger.info "Baixando tiles MapBox: #{MAP_BOX_SERVER}/#{zoom}/#{points.first}/#{points.second}/?access_token=#{MAP_BOX_TOKEN}"
66
68
  "#{MAP_BOX_SERVER}/#{zoom}/#{points.first}/#{points.second}/?access_token=#{MAP_BOX_TOKEN}"
67
69
  end
68
70
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aqila-mapas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - lucasferronato
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-07 00:00:00.000000000 Z
11
+ date: 2023-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler