Fix broken map on frontpage
The mapbox's freely available warden map tiles was discontinued as a product, and not accessible anymore. This patch upgrades the leaflet_mapbox module to 1.3 and sets initial mapbox variables. The service requires a token stored in leaflet_mapbox_token variable. Change-Id: Ibe6e2859c247a24cb41b78cdb39a94a1aeb498b2
This commit is contained in:
parent
3465c81195
commit
9ccc63bc31
@ -526,7 +526,7 @@ projects[leaflet][version] = "1.1"
|
||||
projects[leaflet][type] = "module"
|
||||
projects[leaflet][subdir] = "contrib"
|
||||
|
||||
projects[leaflet_mapbox][version] = "1.2"
|
||||
projects[leaflet_mapbox][version] = "1.3"
|
||||
projects[leaflet_mapbox][type] = "module"
|
||||
projects[leaflet_mapbox][subdir] = "contrib"
|
||||
|
||||
|
20
modules/groups/groups_directory/groups_directory.install
Normal file
20
modules/groups/groups_directory/groups_directory.install
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implements hook_instal()
|
||||
*
|
||||
* Set initial leaflet mapbox variables.
|
||||
*/
|
||||
function groups_directory_install() {
|
||||
groups_directory_update_7301();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set leaflet_mapbox 1.4 variables
|
||||
*
|
||||
* The v4 mapbox api require mapbox_label, mapbox_code settings.
|
||||
*/
|
||||
function groups_directory_update_7301() {
|
||||
variable_set('leaflet_mapbox_label', 'leaflet-mapbox');
|
||||
variable_set('leaflet_mapbox_code', 'mapbox.light');
|
||||
}
|
@ -106,7 +106,7 @@ function groups_directory_views_default_views() {
|
||||
$handler->display->display_options['style_options']['name_field'] = 'title';
|
||||
$handler->display->display_options['style_options']['description_field'] = '#rendered_entity';
|
||||
$handler->display->display_options['style_options']['view_mode'] = 'teaser';
|
||||
$handler->display->display_options['style_options']['map'] = 'mapbox-warden';
|
||||
$handler->display->display_options['style_options']['map'] = 'leaflet-mapbox';
|
||||
/* Field: Content: Title */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implements hook_instal()
|
||||
* Implements hook_install()
|
||||
*
|
||||
*/
|
||||
function groups_groups_install() {
|
||||
|
Loading…
Reference in New Issue
Block a user