mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-03 22:47:07 -05:00
replaced cloudmade maps with mapbox
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
places_base_path = "/places";
|
||||
things_to_map = location.pathname + '.json';
|
||||
cloudmade_key = "<%= Growstuff::Application.config.cloudmade_key %>";
|
||||
cloudmade_url = "http://{s}.tile.cloudmade.com/" + cloudmade_key + "/73038/256/{z}/{x}/{y}.png";
|
||||
mapbox_map_id = "<%= Growstuff::Application.config.mapbox_map_id %>";
|
||||
base_url = "https://c.tiles.mapbox.com/v3/" + mapbox_map_id + "/{z}/{x}/{y}.png";
|
||||
nominatim_base_url = 'http://nominatim.openstreetmap.org/search/';
|
||||
nominatim_user_agent_email = "<%= Growstuff::Application.config.user_agent_email %>";
|
||||
|
||||
@@ -26,8 +26,8 @@ if (location.pathname === places_base_path) { //places index page
|
||||
}
|
||||
|
||||
function showMap(map) {
|
||||
L.tileLayer(cloudmade_url, {
|
||||
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors under <a href="http://www.openstreetmap.org/copyright">ODbL</a> | Map imagery © <a href="http://cloudmade.com">Cloudmade</a>',
|
||||
L.tileLayer(base_url, {
|
||||
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors under <a href="http://www.openstreetmap.org/copyright">ODbL</a> | Map imagery © <a href="http://mapbox.com">Mapbox</a>',
|
||||
maxZoom: 18
|
||||
}).addTo(map);
|
||||
markers = new L.MarkerClusterGroup({showCoverageOnHover: false});
|
||||
|
||||
@@ -89,7 +89,6 @@ module Growstuff
|
||||
Gibbon::API.timeout = 10
|
||||
Gibbon::API.throws_exceptions = false
|
||||
config.newsletter_list_id = ENV['GROWSTUFF_MAILCHIMP_NEWSLETTER_ID']
|
||||
config.cloudmade_key = '29a2d9e3cb3d429490a8f338b2388b1d'
|
||||
|
||||
# This is Growstuff's global Cloudmade key. If you fork Growstuff for
|
||||
# another project/website not run by the folks at http://growstuff.org/,
|
||||
|
||||
@@ -54,6 +54,8 @@ Growstuff::Application.configure do
|
||||
config.host = 'localhost:8080'
|
||||
config.analytics_code = ''
|
||||
|
||||
config.mapbox_map_id = 'growstuff.i3n2il6a'
|
||||
|
||||
config.after_initialize do
|
||||
ActiveMerchant::Billing::Base.mode = :test
|
||||
paypal_options = {
|
||||
|
||||
@@ -86,6 +86,8 @@ Growstuff::Application.configure do
|
||||
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/100594260ns.gif" /></p></noscript>
|
||||
eos
|
||||
|
||||
config.mapbox_map_id = 'growstuff.i3n2c4ie'
|
||||
|
||||
config.after_initialize do
|
||||
ActiveMerchant::Billing::Base.mode = :production
|
||||
paypal_options = {
|
||||
|
||||
@@ -82,6 +82,8 @@ Growstuff::Application.configure do
|
||||
config.host = 'dev.growstuff.org'
|
||||
config.analytics_code = ''
|
||||
|
||||
config.mapbox_map_id = 'growstuff.i3n2hao7'
|
||||
|
||||
config.after_initialize do
|
||||
ActiveMerchant::Billing::Base.mode = :test
|
||||
paypal_options = {
|
||||
|
||||
Reference in New Issue
Block a user