sites map

This commit is contained in:
Bachir Soussi Chiadmi 2024-08-28 19:30:33 +02:00
parent 92c9819fdb
commit 4f1c218996
12 changed files with 740 additions and 4 deletions

View File

@ -20,8 +20,11 @@
"drupal/core-composer-scaffold": "^10.2",
"drupal/core-project-message": "^10.2",
"drupal/core-recommended": "^10.2",
"drupal/geofield": "^1.60",
"drupal/image_delta_formatter": "^1.2",
"drupal/image_field_caption": "^2.0",
"drupal/leaflet": "^10.2",
"drupal/leaflet_more_maps": "^2.2",
"drupal/linked_field": "^1.5",
"drupal/manage_display": "^3.0",
"drupal/matomo": "^1.23",

250
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "e8b3c553a92e6d3283d8e7a0a0a7d159",
"content-hash": "e636d8065f593dcf1268ea5aa1ecdd2d",
"packages": [
{
"name": "asm89/stack-cors",
@ -4249,6 +4249,68 @@
"issues": "http://drupal.org/project/issues/formatter_suite"
}
},
{
"name": "drupal/geofield",
"version": "1.60.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/geofield.git",
"reference": "8.x-1.60"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/geofield-8.x-1.60.zip",
"reference": "8.x-1.60",
"shasum": "ffb1891148b343208e7a190c8cc606a339c74ee1"
},
"require": {
"drupal/core": "^9 || ^10 || ^11",
"itamair/geophp": "^1.6"
},
"require-dev": {
"drupal/diff": "^1.3",
"drupal/feeds": "^3.0@beta"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.60",
"datestamp": "1722078200",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "Italo Mairo",
"homepage": "https://www.drupal.org/u/itamair",
"role": "Drupal 8+ Maintainer"
},
{
"name": "Brandon Morrison",
"homepage": "https://www.drupal.org/u/brandonian",
"role": "Drupal 7 Maintainer"
},
{
"name": "Pablo López",
"homepage": "https://www.drupal.org/u/plopesc",
"role": "Drupal 7 Maintainer"
}
],
"description": "Stores geographic and location data (points, lines, and polygons).",
"homepage": "https://www.drupal.org/project/geofield",
"support": {
"source": "https://git.drupalcode.org/project/geofield",
"issues": "https://www.drupal.org/project/issues/geofield",
"irc": "irc://irc.freenode.org/drupal-contribute"
}
},
{
"name": "drupal/honeypot",
"version": "2.1.3",
@ -4990,6 +5052,146 @@
"issues": "https://www.drupal.org/project/issues/jquery_ui_touch_punch"
}
},
{
"name": "drupal/leaflet",
"version": "10.2.25",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/leaflet.git",
"reference": "10.2.25"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/leaflet-10.2.25.zip",
"reference": "10.2.25",
"shasum": "06aff8c46ca30873d6accc452348bcf6f4e46348"
},
"require": {
"drupal/core": "^9.3 || ^10 || ^11",
"drupal/geofield": "^1.31"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "10.2.25",
"datestamp": "1724410606",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "Italo Mairo",
"homepage": "https://www.drupal.org/u/itamair",
"role": "Maintainer"
},
{
"name": "Peter Vanhee (pvhee)",
"homepage": "https://www.drupal.org/u/pvhee",
"role": "Maintainer"
},
{
"name": "Rik de Boer (RdeBoer)",
"homepage": "https://www.drupal.org/u/rdeboer",
"role": "Maintainer"
},
{
"name": "Gabriel Carleton-Barnes (gcb)",
"homepage": "https://www.drupal.org/u/gcb",
"role": "Maintainer"
},
{
"name": "Lev Tsypin (levelos)",
"homepage": "https://www.drupal.org/u/levelos",
"role": "Maintainer"
},
{
"name": "Sean Larkin (seanberto)",
"homepage": "https://www.drupal.org/u/seanberto",
"role": "Maintainer"
}
],
"description": "Integration with the Leaflet map scripting library.",
"homepage": "https://www.drupal.org/project/leaflet",
"support": {
"source": "https://git.drupalcode.org/project/leaflet",
"issues": "https://www.drupal.org/project/issues/leaflet"
}
},
{
"name": "drupal/leaflet_more_maps",
"version": "2.2.2",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/leaflet_more_maps.git",
"reference": "2.2.2"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/leaflet_more_maps-2.2.2.zip",
"reference": "2.2.2",
"shasum": "40e34fd0e930a9497f0506c895d17a4261943281"
},
"require": {
"drupal/core": "^8.8 || ^9 || ^10 || ^11",
"drupal/leaflet": "^2.1.0 || ^10.0"
},
"require-dev": {
"drupal/leaflet": "*"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "2.2.2",
"datestamp": "1723673168",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
},
"branch-alias": {
"dev-8.x-1.x": "1.x-dev"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "berramou",
"homepage": "https://www.drupal.org/user/3535998"
},
{
"name": "itamair",
"homepage": "https://www.drupal.org/user/1179076"
},
{
"name": "japerry",
"homepage": "https://www.drupal.org/user/45640"
},
{
"name": "rachel_norfolk",
"homepage": "https://www.drupal.org/user/66273"
},
{
"name": "RdeBoer",
"homepage": "https://www.drupal.org/user/404007"
}
],
"description": "Adds a swag of map styles to Leaflet, e.g Thunderforest, Esri, Stamen, Google.",
"homepage": "https://www.drupal.org/project/leaflet_more_maps",
"support": {
"source": "https://git.drupalcode.org/project/leaflet_more_maps",
"issues": "https://www.drupal.org/project/issues/leaflet_more_maps"
}
},
{
"name": "drupal/link_attributes",
"version": "1.14.0",
@ -8181,6 +8383,52 @@
],
"time": "2023-12-03T20:05:35+00:00"
},
{
"name": "itamair/geophp",
"version": "1.6",
"source": {
"type": "git",
"url": "https://github.com/itamair/geoPHP.git",
"reference": "f210e37ab3d4706b7e8cfe3183fec2f5be8a85e6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/itamair/geoPHP/zipball/f210e37ab3d4706b7e8cfe3183fec2f5be8a85e6",
"reference": "f210e37ab3d4706b7e8cfe3183fec2f5be8a85e6",
"shasum": ""
},
"require-dev": {
"phpunit/phpunit": "4.1.* || 9.5.*"
},
"type": "library",
"autoload": {
"classmap": [
"geoPHP.inc"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "Italo Mairo",
"homepage": "https://www.linkedin.com/in/italomairo/",
"role": "Maintanier of this Library Repo"
},
{
"name": "Patrick Hayes",
"homepage": "https://www.linkedin.com/in/patrickdhayes/",
"role": "Maintanier of original Repositary/Library (https://github.com/phayes/geoPHP)"
}
],
"description": "GeoPHP is a open-source native PHP library for doing geometry operations. It is written entirely in PHP and can therefore run on shared hosts. It can read and write a wide variety of formats: WKT (including EWKT), WKB (including EWKB), GeoJSON, KML, GPX, GeoRSS). It works with all Simple-Feature geometries (Point, LineString, Polygon, GeometryCollection etc.) and can be used to get centroids, bounding-boxes, area, and a wide variety of other useful information.",
"homepage": "https://github.com/itamair/geoPHP",
"support": {
"source": "https://github.com/itamair/geoPHP/tree/1.6"
},
"time": "2023-12-23T23:28:59+00:00"
},
{
"name": "kint-php/kint",
"version": "3.3",

View File

@ -6,6 +6,7 @@ dependencies:
- field.field.node.site.field_collectivite_s_epci
- field.field.node.site.field_departement_s
- field.field.node.site.field_documents
- field.field.node.site.field_geofield
- field.field.node.site.field_liens_site
- field.field.node.site.field_mots_clefs
- field.field.node.site.field_nom_de_la_commune_nb_d_hab
@ -20,6 +21,7 @@ dependencies:
module:
- field_group
- file
- leaflet
- link
- paragraphs
third_party_settings:
@ -30,6 +32,7 @@ third_party_settings:
- group_contenus
- group_mots_clefs
- group_annexe
- group_geofield
label: Tabs
region: content
parent_name: ''
@ -134,6 +137,22 @@ third_party_settings:
formatter: closed
description: ''
required_fields: true
group_geofield:
children:
- field_geofield
label: Geofield
region: content
parent_name: group_tabs
weight: 28
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
formatter: closed
description: ''
required_fields: true
id: node.site.default
targetEntityType: node
bundle: site
@ -168,6 +187,71 @@ content:
settings:
progress_indicator: throbber
third_party_settings: { }
field_geofield:
type: leaflet_widget_default
weight: 28
region: content
settings:
map:
leaflet_map: osm-de
height: 400
auto_center: 0
map_position:
force: false
center:
lat: 46.751944
lon: 2.416667
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
scroll_zoom_enabled: 1
input:
show: false
readonly: true
toolbar:
position: topright
marker: defaultMarker
drawPolyline: false
drawRectangle: false
drawPolygon: false
drawCircle: false
drawText: false
editMode: false
dragMode: false
cutPolygon: false
removalMode: false
rotateMode: false
reset_map:
control: false
options: '{"position":"topleft","title":"Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
locate:
control: false
options: '{"position":"topright","setView":"untilPanOrZoom","returnToPrevBounds":true,"keepCurrentZoomLevel":true,"strings":{"title":"Locate my position"}}'
automatic: false
geocoder:
control: false
settings:
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
geometry_validation: 0
feature_properties:
values: ''
third_party_settings: { }
field_liens_site:
type: link_default
weight: 24

View File

@ -6,6 +6,7 @@ dependencies:
- field.field.node.site.field_collectivite_s_epci
- field.field.node.site.field_departement_s
- field.field.node.site.field_documents
- field.field.node.site.field_geofield
- field.field.node.site.field_liens_site
- field.field.node.site.field_mots_clefs
- field.field.node.site.field_nom_de_la_commune_nb_d_hab
@ -20,6 +21,7 @@ dependencies:
module:
- entity_reference_revisions
- file
- geofield
- link
- manage_display
id: node.site.default
@ -50,6 +52,15 @@ content:
third_party_settings: { }
weight: 111
region: content
field_geofield:
type: geofield_default
label: above
settings:
output_format: wkt
output_escape: true
third_party_settings: { }
weight: 115
region: content
field_liens_site:
type: link
label: above

View File

@ -7,6 +7,7 @@ dependencies:
- field.field.node.site.field_collectivite_s_epci
- field.field.node.site.field_departement_s
- field.field.node.site.field_documents
- field.field.node.site.field_geofield
- field.field.node.site.field_liens_site
- field.field.node.site.field_mots_clefs
- field.field.node.site.field_nom_de_la_commune_nb_d_hab
@ -44,6 +45,7 @@ hidden:
field_collectivite_s_epci: true
field_departement_s: true
field_documents: true
field_geofield: true
field_liens_site: true
field_mots_clefs: true
field_nom_de_la_commune_nb_d_hab: true

View File

@ -52,6 +52,7 @@ module:
filter: 0
filter_perms: 0
formatter_suite: 0
geofield: 0
help: 0
honeypot: 0
image: 0
@ -64,6 +65,9 @@ module:
jquery_ui_touch_punch: 0
language: 0
layout_discovery: 0
leaflet: 0
leaflet_more_maps: 0
leaflet_views: 0
link: 0
link_attributes: 0
linkit: 0

View File

@ -0,0 +1,21 @@
uuid: ecc5aa84-8f69-400b-b753-68a59db8780b
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_geofield
- node.type.site
module:
- geofield
id: node.site.field_geofield
field_name: field_geofield
entity_type: node
bundle: site
label: geofield
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: geofield

View File

@ -0,0 +1,20 @@
uuid: 72ed3521-e8b5-4275-8009-52965fd26001
langcode: fr
status: true
dependencies:
module:
- geofield
- node
id: node.field_geofield
field_name: field_geofield
entity_type: node
type: geofield
settings:
backend: geofield_backend_default
module: geofield
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,16 @@
uuid: 1017be4a-671b-439c-bb3d-dd54143bf44b
langcode: fr
status: true
dependencies: { }
_core:
default_config_hash: qeXmbpcOBZ_DUk5IscywhUBtP66NYnpVwP-HrtMT7CQ
name: geofield_map_default_icon_style
label: 'GeofieldMap Default Icon Style (34x34)'
effects:
5d91fbd4-b0f7-43e0-b7a4-21b19cec068c:
uuid: 5d91fbd4-b0f7-43e0-b7a4-21b19cec068c
id: image_resize
weight: 1
data:
width: 34
height: 34

View File

@ -0,0 +1 @@
label: 'GeofieldMap Default Icon Style (34x34)'

View File

@ -100,7 +100,7 @@ variant_settings:
use_description_as_link_text: true
third_party_settings: { }
region: first
weight: -10
weight: -3
uuid: 0f521934-a0b6-49c7-9dd0-b984c8d80ef3
css_classes:
- ''
@ -125,7 +125,7 @@ variant_settings:
target: _blank
third_party_settings: { }
region: first
weight: -9
weight: -2
uuid: caf72351-9011-41f0-9bf1-d12eb70903c7
css_classes:
- ''
@ -202,6 +202,22 @@ variant_settings:
- ''
html_id: ''
css_styles: ''
9c0f77a5-efea-4e81-99c4-2199c1d0d07d:
id: 'views_block:site-block_2'
label: ''
label_display: '0'
provider: views
context_mapping: { }
views_label: ''
items_per_page: none
exposed: { }
region: first
weight: -4
uuid: 9c0f77a5-efea-4e81-99c4-2199c1d0d07d
css_classes:
- ''
html_id: ''
css_styles: ''
page_title: ''
layout: layout_threecol_25_50_25
layout_settings:

View File

@ -5,13 +5,17 @@ dependencies:
config:
- field.storage.node.field_collectivite_s_epci
- field.storage.node.field_departement_s
- field.storage.node.field_geofield
- field.storage.node.field_nom_de_la_commune_nb_d_hab
- field.storage.node.field_nom_du_qpv_nb_d_hab
- field.storage.node.field_porteur_s_de_site
- field.storage.node.field_programme_de_l_etat
- field.storage.node.field_region
- field.storage.node.field_sous_titre
- node.type.site
module:
- geofield
- leaflet_views
- node
- user
id: site
@ -473,7 +477,7 @@ display:
type: some
options:
offset: 0
items_per_page: 1
items_per_page: 0
exposed_form:
type: basic
options:
@ -634,3 +638,309 @@ display:
- 'config:field.storage.node.field_porteur_s_de_site'
- 'config:field.storage.node.field_programme_de_l_etat'
- 'config:field.storage.node.field_region'
block_2:
id: block_2
display_title: 'Sites Map Bloc'
display_plugin: block
position: 2
display_options:
fields:
field_geofield:
id: field_geofield
table: node__field_geofield
field: field_geofield
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: true
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: geofield_default
settings:
output_format: wkt
output_escape: true
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
field_sous_titre:
id: field_sous_titre
table: node__field_sous_titre
field: field_sous_titre
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: true
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
title:
id: title
table: node_field_data
field: title
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: title
plugin_id: field
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: true
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
arguments: { }
style:
type: leaflet_map
options:
grouping: { }
data_source:
field_geofield: field_geofield
entity_source: __base_table
name_field: ''
leaflet_tooltip:
value: title
options: '{"permanent":false,"direction":"center"}'
leaflet_popup:
value: field_sous_titre
options: '{"maxWidth":"300","minWidth":"50","autoPan":true}'
view_mode: full
leaflet_map: esri-world_physical_map
height: '400'
height_unit: px
hide_empty_map: false
disable_wheel: true
gesture_handling: false
fitbounds_options: '{"padding":[0,0]}'
reset_map:
control: false
options: '{"position":"topleft","title":"Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
locate:
control: false
options: '{"position":"topright","setView":"untilPanOrZoom","returnToPrevBounds":true,"keepCurrentZoomLevel":true,"strings":{"title":"Locate my position"}}'
automatic: false
map_position:
force: false
center:
lat: 0.0
lon: 0.0
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
weight: ''
icon:
iconType: marker
iconUrl: ''
shadowUrl: ''
className: ''
iconSize:
x: ''
'y': ''
iconAnchor:
x: ''
'y': ''
shadowSize:
x: ''
'y': ''
shadowAnchor:
x: ''
'y': ''
popupAnchor:
x: ''
'y': ''
html: '<div></div>'
html_class: leaflet-map-divicon
circle_marker_options: '{"radius":100,"color":"red","fillColor":"#f03","fillOpacity":0.5}'
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
map_lazy_load:
lazy_load: false
feature_properties:
values: ''
row:
type: fields
options: { }
defaults:
style: false
row: false
fields: false
arguments: false
display_description: ''
display_extenders:
matomo:
enabled: false
keyword_gets: ''
keyword_behavior: first
keyword_concat_separator: ' '
category_behavior: none
category_gets: ''
category_concat_separator: ' '
category_fallback: ''
category_facets: { }
category_facets_concat_separator: ', '
simple_sitemap_display_extender: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags:
- 'config:field.storage.node.field_geofield'
- 'config:field.storage.node.field_sous_titre'