Skip to content

Commit db5ae06

Browse files
Merge pull request #28 from NYULibraries/release/1.9.1-basemaps-updates
Release/1.9.2 basemaps updates
2 parents 52ea2c7 + b1f0054 commit db5ae06

File tree

5 files changed

+75
-11
lines changed

5 files changed

+75
-11
lines changed

app/assets/javascripts/basemaps.js

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// basemaps
2+
3+
GeoBlacklight.Basemaps = {
4+
darkMatter: L.tileLayer(
5+
'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{retina}.png', {
6+
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">Carto</a>',
7+
maxZoom: 18,
8+
worldCopyJump: true,
9+
retina: '@2x',
10+
detectRetina: false
11+
}
12+
),
13+
positron: L.tileLayer(
14+
'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{retina}.png', {
15+
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">Carto</a>',
16+
maxZoom: 18,
17+
worldCopyJump: true,
18+
retina: '@2x',
19+
detectRetina: false
20+
}
21+
),
22+
positronLite: L.tileLayer(
23+
'https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{retina}.png', {
24+
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">Carto</a>',
25+
maxZoom: 18,
26+
worldCopyJump: true,
27+
retina: '@2x',
28+
detectRetina: false
29+
}
30+
),
31+
worldAntique: L.tileLayer(
32+
'https://cartocdn_{s}.global.ssl.fastly.net/base-antique/{z}/{x}/{y}{retina}.png', {
33+
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">Carto</a>',
34+
maxZoom: 18,
35+
worldCopyJump: true,
36+
retina: '@2x',
37+
detectRetina: false
38+
}
39+
),
40+
worldEco: L.tileLayer(
41+
'https://cartocdn_{s}.global.ssl.fastly.net/base-eco/{z}/{x}/{y}{retina}.png', {
42+
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">Carto</a>',
43+
maxZoom: 18,
44+
worldCopyJump: true,
45+
retina: '@2x',
46+
detectRetina: false
47+
}
48+
),
49+
flatBlue: L.tileLayer(
50+
'https://cartocdn_{s}.global.ssl.fastly.net/base-flatblue/{z}/{x}/{y}{retina}.png', {
51+
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">Carto</a>',
52+
maxZoom: 18,
53+
worldCopyJump: true,
54+
retina: '@2x',
55+
detectRetina: false
56+
}
57+
),
58+
midnightCommander: L.tileLayer(
59+
'https://cartocdn_{s}.global.ssl.fastly.net/base-midnight/{z}/{x}/{y}{retina}.png', {
60+
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">Carto</a>',
61+
maxZoom: 18,
62+
worldCopyJump: true,
63+
retina: '@2x',
64+
detectRetina: false
65+
}
66+
)
67+
};

app/assets/javascripts/modules/analytics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Blacklight.onLoad(function() {
7878
});
7979

8080
// Log Open in CartoDB Clicks
81-
$(document).on('click', 'li.exports a:contains("Open in CartoDB")', function(e) {
82-
window._gaq.push(['_trackEvent', 'Open in CartoDB', window.location.pathname.replace('/catalog/', '')]);
81+
$(document).on('click', 'li.exports a:contains("Open in Carto")', function(e) {
82+
window._gaq.push(['_trackEvent', 'Open in Carto', window.location.pathname.replace('/catalog/', '')]);
8383
});
8484
});

app/controllers/catalog_controller.rb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class CatalogController < ApplicationController
127127
config.add_show_field Settings.FIELDS.SPATIAL_COVERAGE, label: 'Place(s)', itemprop: 'spatial', link_to_search: true, separator: '; '
128128
config.add_show_field Settings.FIELDS.SUBJECT, label: 'Subject(s)', itemprop: 'keywords', link_to_search: true
129129
config.add_show_field Settings.FIELDS.FILE_FORMAT, label: 'Format(s)', itemprop: 'formats', link_to_search: true
130-
config.add_show_field Settings.FIELDS.TEMPORAL, label: 'Year', itemprop: 'temporal'
130+
config.add_show_field Settings.FIELDS.TEMPORAL, label: 'Year(s)', itemprop: 'temporal'
131131
config.add_show_field Settings.FIELDS.PROVENANCE, label: 'Held by', link_to_search: true
132132

133133
# "fielded" search configuration. Used by pulldown among other places.
@@ -220,13 +220,10 @@ class CatalogController < ApplicationController
220220
config.show.document_actions.delete(:sms)
221221
config.show.document_actions.delete(:citation)
222222

223-
# Configure basemap provider for GeoBlacklight maps (uses https only basemap
223+
# Us this menu to configure basemap provider for GeoBlacklight maps (uses https only basemap
224224
# providers with open licenses)
225-
# Valid basemaps include:
226-
# 'mapquest' http://developer.mapquest.com/web/products/open/map
227-
# 'positron' http://cartodb.com/basemaps/
228-
# 'darkMatter' http://cartodb.com/basemaps/
229-
config.basemap_provider = 'positron'
225+
226+
config.basemap_provider = 'positronLite'
230227

231228

232229
# Configuration for autocomplete suggestor

config/locales/geoblacklight.en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ en:
1010
download_link: '%{download_format}'
1111
export_formats: 'Other Formats'
1212
export_link: 'Download'
13-
export_shapefile_link: 'Generated Shapefile'
13+
export_shapefile_link: 'Derived Shapefile'
1414
show:
1515
attribute: 'Variable'
1616
value: 'Value'

lib/nyugeoblacklight/curated_collections.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def CuratedCollections.collections
1515
def CuratedCollections.recent
1616
[
1717
{title: "2015 Dublin LiDAR", description: "High-density LiDAR datasets of Dublin, from Debra Laefer (NYU) and collaborators", f: {"dct_isPartOf_sm" => ["2015 Dublin LiDAR"]}},
18-
{title: "Mexico Encuesta Intercensal 2015", description: "Layers from the 2015 Mexican Intercensal Survey", f: {"dct_isPartOf_sm" => ["Encuesta Intercensal 2015"]}},
18+
{title: "2004 New York State Tax Parcels", description: "Point data on property ownership and land value", f: {"dct_isPartOf_sm" => ["NYS GIS Clearinghouse"]}},
1919
{title: "Soviet Topographic Maps of the Arabian Peninsula", description: "Raster scans of Soviet military topographic maps produced in the late 1970s", f: { "dc_publisher_s" => ["Omni Resources (Firm)"]}}
2020
]
2121
end

0 commit comments

Comments
 (0)