We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "regions" code here fulfills requests from the front page map (and other types of requests):
mapknitter/app/controllers/maps_controller.rb
Lines 136 to 152 in 4756a3c
It's accessed in JSON via:
https://mapknitter.org/map/region/Gulf-Coast.json?minlon=16.017661392688755&minlat=12.539611262767895&maxlon=158.22469264268878&maxlat=67.19809660495382
(for example)
Actually, Gulf-Coast is not needed, it can be any name:
Gulf-Coast
https://mapknitter.org/map/region/region.json?minlon=16.01&minlat=12.53&maxlon=158.22&maxlat=67.19
Let's do 2 things:
Rails.cache.fetch("some-unique-cache-key", expires_in: 1.day) do # code to be cached wrapped here end
number of map code would be:
.paginate(page: params[:page], per_page: 24)
cc @ebarry
The text was updated successfully, but these errors were encountered:
There could be potential for trimming the results for efficiency too, but let's think about that later!
{"id":67,"name":"qalandia","lat":"31.8704553147","lon":"35.2206727512","version":1,"password":"","styles":"VERY_LONG_STRING","created_at":"2010-06-25T10:36:58.000Z","updated_at":"2014-11-13T19:22:11.000Z","description":null,"author":"anonymous","zoom":"16.0","location":"Qalandia","static_data":"","vectors":false,"tiles":"google","email":"","archived":false,"tile_url":"","tile_layer":"","license":"copyright","user_id":0,"anon_annotatable":false,"slug":"qalandia","image_urls":["https://s3.amazonaws.com/grassrootsmapping/warpables/625/kafr_aqb.png"]}
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The "regions" code here fulfills requests from the front page map (and other types of requests):
mapknitter/app/controllers/maps_controller.rb
Lines 136 to 152 in 4756a3c
It's accessed in JSON via:
https://mapknitter.org/map/region/Gulf-Coast.json?minlon=16.017661392688755&minlat=12.539611262767895&maxlon=158.22469264268878&maxlat=67.19809660495382
(for example)
Actually,
Gulf-Coast
is not needed, it can be any name:https://mapknitter.org/map/region/region.json?minlon=16.01&minlat=12.53&maxlon=158.22&maxlat=67.19
Let's do 2 things:
number of map code would be:
cc @ebarry
The text was updated successfully, but these errors were encountered: