converted geofields to paragarphs, updated SiteMap.php
This commit is contained in:
parent
be90064f2a
commit
d912155cd0
@ -11,7 +11,6 @@ dependencies:
|
|||||||
- field.field.node.projet.field_diaporama
|
- field.field.node.projet.field_diaporama
|
||||||
- field.field.node.projet.field_intro
|
- field.field.node.projet.field_intro
|
||||||
- field.field.node.projet.field_legende_carte
|
- field.field.node.projet.field_legende_carte
|
||||||
- field.field.node.projet.field_libelles_carte
|
|
||||||
- field.field.node.projet.field_liens
|
- field.field.node.projet.field_liens
|
||||||
- field.field.node.projet.field_localisation_textuel
|
- field.field.node.projet.field_localisation_textuel
|
||||||
- field.field.node.projet.field_pieces_jointes
|
- field.field.node.projet.field_pieces_jointes
|
||||||
@ -27,7 +26,6 @@ dependencies:
|
|||||||
- field_group
|
- field_group
|
||||||
- file
|
- file
|
||||||
- image
|
- image
|
||||||
- leaflet
|
|
||||||
- link
|
- link
|
||||||
- paragraphs
|
- paragraphs
|
||||||
- path
|
- path
|
||||||
@ -46,7 +44,7 @@ third_party_settings:
|
|||||||
label: Tabs
|
label: Tabs
|
||||||
region: content
|
region: content
|
||||||
parent_name: ''
|
parent_name: ''
|
||||||
weight: 3
|
weight: 1
|
||||||
format_type: tabs
|
format_type: tabs
|
||||||
format_settings:
|
format_settings:
|
||||||
classes: ''
|
classes: ''
|
||||||
@ -59,10 +57,10 @@ third_party_settings:
|
|||||||
children:
|
children:
|
||||||
- field_sous_titre
|
- field_sous_titre
|
||||||
- field_localisation_textuel
|
- field_localisation_textuel
|
||||||
|
- field_intro
|
||||||
- field_texte
|
- field_texte
|
||||||
- field_chiffres_clefs
|
- field_chiffres_clefs
|
||||||
- field_chronologie
|
- field_chronologie
|
||||||
- field_intro
|
|
||||||
label: Contenus
|
label: Contenus
|
||||||
region: content
|
region: content
|
||||||
parent_name: group_tabs
|
parent_name: group_tabs
|
||||||
@ -78,9 +76,8 @@ third_party_settings:
|
|||||||
required_fields: true
|
required_fields: true
|
||||||
group_carte:
|
group_carte:
|
||||||
children:
|
children:
|
||||||
- field_carte
|
|
||||||
- field_libelles_carte
|
|
||||||
- field_legende_carte
|
- field_legende_carte
|
||||||
|
- field_carte
|
||||||
label: carte
|
label: carte
|
||||||
region: content
|
region: content
|
||||||
parent_name: group_tabs
|
parent_name: group_tabs
|
||||||
@ -136,7 +133,7 @@ third_party_settings:
|
|||||||
label: Details
|
label: Details
|
||||||
region: content
|
region: content
|
||||||
parent_name: ''
|
parent_name: ''
|
||||||
weight: 4
|
weight: 2
|
||||||
format_type: details_sidebar
|
format_type: details_sidebar
|
||||||
format_settings:
|
format_settings:
|
||||||
classes: ''
|
classes: ''
|
||||||
@ -212,69 +209,22 @@ content:
|
|||||||
placeholder: ''
|
placeholder: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
field_carte:
|
field_carte:
|
||||||
type: leaflet_widget_default
|
type: paragraphs
|
||||||
weight: 3
|
weight: 4
|
||||||
region: content
|
region: content
|
||||||
settings:
|
settings:
|
||||||
map:
|
title: Paragraphe
|
||||||
leaflet_map: 'OSM Mapnik'
|
title_plural: Paragraphs
|
||||||
height: 400
|
edit_mode: open
|
||||||
auto_center: 1
|
closed_mode: summary
|
||||||
map_position:
|
autocollapse: none
|
||||||
force: true
|
closed_mode_threshold: 0
|
||||||
center:
|
add_mode: dropdown
|
||||||
lat: 46.751944
|
form_display_mode: default
|
||||||
lon: 2.416667
|
default_paragraph_type: ''
|
||||||
zoomControlPosition: topleft
|
features:
|
||||||
zoom: 5
|
collapse_edit_all: collapse_edit_all
|
||||||
minZoom: 1
|
duplicate: duplicate
|
||||||
maxZoom: 18
|
|
||||||
zoomFiner: 0
|
|
||||||
scroll_zoom_enabled: 1
|
|
||||||
input:
|
|
||||||
show: true
|
|
||||||
readonly: false
|
|
||||||
toolbar:
|
|
||||||
position: topright
|
|
||||||
marker: defaultMarker
|
|
||||||
drawPolyline: true
|
|
||||||
drawRectangle: true
|
|
||||||
drawPolygon: true
|
|
||||||
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: { }
|
third_party_settings: { }
|
||||||
field_chiffres_clefs:
|
field_chiffres_clefs:
|
||||||
type: paragraphs
|
type: paragraphs
|
||||||
@ -348,26 +298,12 @@ content:
|
|||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
field_legende_carte:
|
field_legende_carte:
|
||||||
type: text_textarea
|
type: text_textarea
|
||||||
weight: 32
|
weight: 3
|
||||||
region: content
|
region: content
|
||||||
settings:
|
settings:
|
||||||
rows: 5
|
rows: 5
|
||||||
placeholder: ''
|
placeholder: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
field_libelles_carte:
|
|
||||||
type: string_textfield
|
|
||||||
weight: 4
|
|
||||||
region: content
|
|
||||||
settings:
|
|
||||||
size: 60
|
|
||||||
placeholder: 'Un libellé par repère ou zone'
|
|
||||||
third_party_settings:
|
|
||||||
maxlength:
|
|
||||||
maxlength_js: null
|
|
||||||
maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
|
|
||||||
maxlength_js_enforce: false
|
|
||||||
advanced_text_formatter:
|
|
||||||
show_token_tree: 0
|
|
||||||
field_liens:
|
field_liens:
|
||||||
type: link_default
|
type: link_default
|
||||||
weight: 5
|
weight: 5
|
||||||
|
@ -0,0 +1,99 @@
|
|||||||
|
uuid: c23cab46-cadb-4b78-a0f1-48212974f8a5
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.field.paragraph.geofield_projet.field_carte
|
||||||
|
- field.field.paragraph.geofield_projet.field_libele
|
||||||
|
- field.field.paragraph.geofield_projet.field_principal
|
||||||
|
- paragraphs.paragraphs_type.geofield_projet
|
||||||
|
module:
|
||||||
|
- leaflet
|
||||||
|
id: paragraph.geofield_projet.default
|
||||||
|
targetEntityType: paragraph
|
||||||
|
bundle: geofield_projet
|
||||||
|
mode: default
|
||||||
|
content:
|
||||||
|
field_carte:
|
||||||
|
type: leaflet_widget_default
|
||||||
|
weight: 1
|
||||||
|
region: content
|
||||||
|
settings:
|
||||||
|
map:
|
||||||
|
leaflet_map: 'OSM Mapnik'
|
||||||
|
height: 400
|
||||||
|
auto_center: 1
|
||||||
|
map_position:
|
||||||
|
force: false
|
||||||
|
center:
|
||||||
|
lat: 0.0
|
||||||
|
lon: 0.0
|
||||||
|
zoomControlPosition: topleft
|
||||||
|
zoom: 5
|
||||||
|
minZoom: 1
|
||||||
|
maxZoom: 18
|
||||||
|
zoomFiner: 0
|
||||||
|
scroll_zoom_enabled: 1
|
||||||
|
input:
|
||||||
|
show: true
|
||||||
|
readonly: false
|
||||||
|
toolbar:
|
||||||
|
position: topright
|
||||||
|
marker: defaultMarker
|
||||||
|
drawPolyline: true
|
||||||
|
drawRectangle: true
|
||||||
|
drawPolygon: true
|
||||||
|
drawCircle: false
|
||||||
|
drawText: false
|
||||||
|
editMode: true
|
||||||
|
dragMode: true
|
||||||
|
cutPolygon: false
|
||||||
|
removalMode: true
|
||||||
|
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: false
|
||||||
|
feature_properties:
|
||||||
|
values: ''
|
||||||
|
third_party_settings: { }
|
||||||
|
field_libele:
|
||||||
|
type: string_textfield
|
||||||
|
weight: 2
|
||||||
|
region: content
|
||||||
|
settings:
|
||||||
|
size: 60
|
||||||
|
placeholder: ''
|
||||||
|
third_party_settings: { }
|
||||||
|
field_principal:
|
||||||
|
type: boolean_checkbox
|
||||||
|
weight: 0
|
||||||
|
region: content
|
||||||
|
settings:
|
||||||
|
display_label: true
|
||||||
|
third_party_settings: { }
|
||||||
|
hidden:
|
||||||
|
created: true
|
||||||
|
status: true
|
@ -11,7 +11,6 @@ dependencies:
|
|||||||
- field.field.node.projet.field_diaporama
|
- field.field.node.projet.field_diaporama
|
||||||
- field.field.node.projet.field_intro
|
- field.field.node.projet.field_intro
|
||||||
- field.field.node.projet.field_legende_carte
|
- field.field.node.projet.field_legende_carte
|
||||||
- field.field.node.projet.field_libelles_carte
|
|
||||||
- field.field.node.projet.field_liens
|
- field.field.node.projet.field_liens
|
||||||
- field.field.node.projet.field_localisation_textuel
|
- field.field.node.projet.field_localisation_textuel
|
||||||
- field.field.node.projet.field_pieces_jointes
|
- field.field.node.projet.field_pieces_jointes
|
||||||
@ -25,7 +24,6 @@ dependencies:
|
|||||||
module:
|
module:
|
||||||
- entity_reference_revisions
|
- entity_reference_revisions
|
||||||
- file
|
- file
|
||||||
- geofield
|
|
||||||
- image
|
- image
|
||||||
- link
|
- link
|
||||||
- text
|
- text
|
||||||
@ -44,13 +42,13 @@ content:
|
|||||||
weight: 14
|
weight: 14
|
||||||
region: content
|
region: content
|
||||||
field_carte:
|
field_carte:
|
||||||
type: geofield_default
|
type: entity_reference_revisions_entity_view
|
||||||
label: above
|
label: above
|
||||||
settings:
|
settings:
|
||||||
output_format: wkt
|
view_mode: default
|
||||||
output_escape: true
|
link: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 11
|
weight: 20
|
||||||
region: content
|
region: content
|
||||||
field_chiffres_clefs:
|
field_chiffres_clefs:
|
||||||
type: entity_reference_revisions_entity_view
|
type: entity_reference_revisions_entity_view
|
||||||
@ -104,14 +102,6 @@ content:
|
|||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 19
|
weight: 19
|
||||||
region: content
|
region: content
|
||||||
field_libelles_carte:
|
|
||||||
type: string
|
|
||||||
label: above
|
|
||||||
settings:
|
|
||||||
link_to_entity: false
|
|
||||||
third_party_settings: { }
|
|
||||||
weight: 12
|
|
||||||
region: content
|
|
||||||
field_liens:
|
field_liens:
|
||||||
type: link
|
type: link
|
||||||
label: hidden
|
label: hidden
|
||||||
|
@ -12,7 +12,6 @@ dependencies:
|
|||||||
- field.field.node.projet.field_diaporama
|
- field.field.node.projet.field_diaporama
|
||||||
- field.field.node.projet.field_intro
|
- field.field.node.projet.field_intro
|
||||||
- field.field.node.projet.field_legende_carte
|
- field.field.node.projet.field_legende_carte
|
||||||
- field.field.node.projet.field_libelles_carte
|
|
||||||
- field.field.node.projet.field_liens
|
- field.field.node.projet.field_liens
|
||||||
- field.field.node.projet.field_localisation_textuel
|
- field.field.node.projet.field_localisation_textuel
|
||||||
- field.field.node.projet.field_pieces_jointes
|
- field.field.node.projet.field_pieces_jointes
|
||||||
@ -28,7 +27,6 @@ dependencies:
|
|||||||
- entity_reference_revisions
|
- entity_reference_revisions
|
||||||
- file
|
- file
|
||||||
- image_field_caption
|
- image_field_caption
|
||||||
- leaflet
|
|
||||||
- link
|
- link
|
||||||
- text
|
- text
|
||||||
- user
|
- user
|
||||||
@ -37,100 +35,6 @@ targetEntityType: node
|
|||||||
bundle: projet
|
bundle: projet
|
||||||
mode: full
|
mode: full
|
||||||
content:
|
content:
|
||||||
field_carte:
|
|
||||||
type: leaflet_formatter_default
|
|
||||||
label: visually_hidden
|
|
||||||
settings:
|
|
||||||
multiple_map: false
|
|
||||||
leaflet_map: 'OSM Mapnik'
|
|
||||||
height: 400
|
|
||||||
height_unit: px
|
|
||||||
hide_empty_map: false
|
|
||||||
disable_wheel: false
|
|
||||||
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
|
|
||||||
leaflet_tooltip:
|
|
||||||
value: ''
|
|
||||||
options: '{"permanent":false,"direction":"center"}'
|
|
||||||
popup: false
|
|
||||||
popup_content: ''
|
|
||||||
leaflet_popup:
|
|
||||||
control: '0'
|
|
||||||
content: '[node:field_libelles_carte]'
|
|
||||||
options: '{"maxWidth":"300","minWidth":"50","autoPan":true}'
|
|
||||||
map_position:
|
|
||||||
force: false
|
|
||||||
center:
|
|
||||||
lat: 0.0
|
|
||||||
lon: 0.0
|
|
||||||
zoomControlPosition: topleft
|
|
||||||
zoom: 5
|
|
||||||
minZoom: 1
|
|
||||||
maxZoom: 18
|
|
||||||
zoomFiner: 0
|
|
||||||
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}'
|
|
||||||
leaflet_markercluster:
|
|
||||||
control: false
|
|
||||||
options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds": false}'
|
|
||||||
excluded: ''
|
|
||||||
include_path: 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"}'
|
|
||||||
feature_properties:
|
|
||||||
values: ''
|
|
||||||
geocoder:
|
|
||||||
control: false
|
|
||||||
settings:
|
|
||||||
autocomplete:
|
|
||||||
placeholder: 'Search Address'
|
|
||||||
title: 'Search an Address on the Map'
|
|
||||||
position: topright
|
|
||||||
input_size: 20
|
|
||||||
providers: { }
|
|
||||||
min_terms: 4
|
|
||||||
delay: 800
|
|
||||||
zoom: 16
|
|
||||||
popup: false
|
|
||||||
options: ''
|
|
||||||
map_lazy_load:
|
|
||||||
lazy_load: false
|
|
||||||
third_party_settings: { }
|
|
||||||
weight: 7
|
|
||||||
region: content
|
|
||||||
field_chiffres_clefs:
|
field_chiffres_clefs:
|
||||||
type: entity_reference_revisions_entity_view
|
type: entity_reference_revisions_entity_view
|
||||||
label: visually_hidden
|
label: visually_hidden
|
||||||
@ -183,14 +87,6 @@ content:
|
|||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 9
|
weight: 9
|
||||||
region: content
|
region: content
|
||||||
field_libelles_carte:
|
|
||||||
type: string
|
|
||||||
label: above
|
|
||||||
settings:
|
|
||||||
link_to_entity: false
|
|
||||||
third_party_settings: { }
|
|
||||||
weight: 8
|
|
||||||
region: content
|
|
||||||
field_liens:
|
field_liens:
|
||||||
type: link
|
type: link
|
||||||
label: visually_hidden
|
label: visually_hidden
|
||||||
@ -254,6 +150,7 @@ content:
|
|||||||
region: content
|
region: content
|
||||||
hidden:
|
hidden:
|
||||||
field_actualites_liees: true
|
field_actualites_liees: true
|
||||||
|
field_carte: true
|
||||||
field_poids: true
|
field_poids: true
|
||||||
field_session: true
|
field_session: true
|
||||||
langcode: true
|
langcode: true
|
||||||
|
@ -12,7 +12,6 @@ dependencies:
|
|||||||
- field.field.node.projet.field_diaporama
|
- field.field.node.projet.field_diaporama
|
||||||
- field.field.node.projet.field_intro
|
- field.field.node.projet.field_intro
|
||||||
- field.field.node.projet.field_legende_carte
|
- field.field.node.projet.field_legende_carte
|
||||||
- field.field.node.projet.field_libelles_carte
|
|
||||||
- field.field.node.projet.field_liens
|
- field.field.node.projet.field_liens
|
||||||
- field.field.node.projet.field_localisation_textuel
|
- field.field.node.projet.field_localisation_textuel
|
||||||
- field.field.node.projet.field_pieces_jointes
|
- field.field.node.projet.field_pieces_jointes
|
||||||
@ -52,7 +51,6 @@ hidden:
|
|||||||
field_diaporama: true
|
field_diaporama: true
|
||||||
field_intro: true
|
field_intro: true
|
||||||
field_legende_carte: true
|
field_legende_carte: true
|
||||||
field_libelles_carte: true
|
|
||||||
field_liens: true
|
field_liens: true
|
||||||
field_localisation_textuel: true
|
field_localisation_textuel: true
|
||||||
field_pieces_jointes: true
|
field_pieces_jointes: true
|
||||||
|
@ -12,7 +12,6 @@ dependencies:
|
|||||||
- field.field.node.projet.field_diaporama
|
- field.field.node.projet.field_diaporama
|
||||||
- field.field.node.projet.field_intro
|
- field.field.node.projet.field_intro
|
||||||
- field.field.node.projet.field_legende_carte
|
- field.field.node.projet.field_legende_carte
|
||||||
- field.field.node.projet.field_libelles_carte
|
|
||||||
- field.field.node.projet.field_liens
|
- field.field.node.projet.field_liens
|
||||||
- field.field.node.projet.field_localisation_textuel
|
- field.field.node.projet.field_localisation_textuel
|
||||||
- field.field.node.projet.field_pieces_jointes
|
- field.field.node.projet.field_pieces_jointes
|
||||||
@ -77,7 +76,6 @@ hidden:
|
|||||||
field_collectif_du_projet: true
|
field_collectif_du_projet: true
|
||||||
field_intro: true
|
field_intro: true
|
||||||
field_legende_carte: true
|
field_legende_carte: true
|
||||||
field_libelles_carte: true
|
|
||||||
field_liens: true
|
field_liens: true
|
||||||
field_pieces_jointes: true
|
field_pieces_jointes: true
|
||||||
field_poids: true
|
field_poids: true
|
||||||
|
@ -0,0 +1,124 @@
|
|||||||
|
uuid: 6e0e14d8-dc29-4d65-9f7f-5f510d33ce93
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.field.paragraph.geofield_projet.field_carte
|
||||||
|
- field.field.paragraph.geofield_projet.field_libele
|
||||||
|
- field.field.paragraph.geofield_projet.field_principal
|
||||||
|
- paragraphs.paragraphs_type.geofield_projet
|
||||||
|
module:
|
||||||
|
- leaflet
|
||||||
|
id: paragraph.geofield_projet.default
|
||||||
|
targetEntityType: paragraph
|
||||||
|
bundle: geofield_projet
|
||||||
|
mode: default
|
||||||
|
content:
|
||||||
|
field_carte:
|
||||||
|
type: leaflet_formatter_default
|
||||||
|
label: hidden
|
||||||
|
settings:
|
||||||
|
multiple_map: false
|
||||||
|
leaflet_map: 'OSM Mapnik'
|
||||||
|
height: 400
|
||||||
|
height_unit: px
|
||||||
|
hide_empty_map: false
|
||||||
|
disable_wheel: false
|
||||||
|
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
|
||||||
|
leaflet_tooltip:
|
||||||
|
value: ''
|
||||||
|
options: '{"permanent":false,"direction":"center"}'
|
||||||
|
popup: false
|
||||||
|
popup_content: ''
|
||||||
|
leaflet_popup:
|
||||||
|
control: ''
|
||||||
|
content: ''
|
||||||
|
options: '{"maxWidth":"300","minWidth":"50", "autoPan": true}'
|
||||||
|
value: ''
|
||||||
|
view_mode: full
|
||||||
|
map_position:
|
||||||
|
force: false
|
||||||
|
center:
|
||||||
|
lat: 0.0
|
||||||
|
lon: 0.0
|
||||||
|
zoomControlPosition: topleft
|
||||||
|
zoom: 5
|
||||||
|
minZoom: 1
|
||||||
|
maxZoom: 18
|
||||||
|
zoomFiner: 0
|
||||||
|
weight: '0'
|
||||||
|
icon:
|
||||||
|
iconType: marker
|
||||||
|
iconUrl: ''
|
||||||
|
shadowUrl: ''
|
||||||
|
className: ''
|
||||||
|
iconSize:
|
||||||
|
x: null
|
||||||
|
'y': null
|
||||||
|
iconAnchor:
|
||||||
|
x: null
|
||||||
|
'y': null
|
||||||
|
shadowSize:
|
||||||
|
x: null
|
||||||
|
'y': null
|
||||||
|
shadowAnchor:
|
||||||
|
x: null
|
||||||
|
'y': null
|
||||||
|
popupAnchor:
|
||||||
|
x: null
|
||||||
|
'y': null
|
||||||
|
html: '<div></div>'
|
||||||
|
html_class: leaflet-map-divicon
|
||||||
|
circle_marker_options: '{"radius": 100, "color": "red", "fillColor": "#f03", "fillOpacity": 0.5}'
|
||||||
|
leaflet_markercluster:
|
||||||
|
control: false
|
||||||
|
options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds": false}'
|
||||||
|
excluded: ''
|
||||||
|
include_path: 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"}'
|
||||||
|
feature_properties:
|
||||||
|
values: ''
|
||||||
|
geocoder:
|
||||||
|
control: false
|
||||||
|
settings:
|
||||||
|
autocomplete:
|
||||||
|
placeholder: 'Search Address'
|
||||||
|
title: 'Search an Address on the Map'
|
||||||
|
position: topright
|
||||||
|
input_size: 20
|
||||||
|
providers: { }
|
||||||
|
min_terms: 4
|
||||||
|
delay: 800
|
||||||
|
zoom: 16
|
||||||
|
popup: false
|
||||||
|
options: ''
|
||||||
|
map_lazy_load:
|
||||||
|
lazy_load: false
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 0
|
||||||
|
region: content
|
||||||
|
field_libele:
|
||||||
|
type: string
|
||||||
|
label: hidden
|
||||||
|
settings:
|
||||||
|
link_to_entity: false
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 1
|
||||||
|
region: content
|
||||||
|
hidden:
|
||||||
|
field_principal: true
|
||||||
|
search_api_excerpt: true
|
@ -1,12 +1,13 @@
|
|||||||
uuid: ef45349c-ea3f-4769-92fe-dd544c52ce0f
|
uuid: ef45c217-f669-4116-8b44-97bd898619cf
|
||||||
langcode: fr
|
langcode: fr
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.storage.node.field_carte
|
- field.storage.node.field_carte
|
||||||
- node.type.projet
|
- node.type.projet
|
||||||
|
- paragraphs.paragraphs_type.geofield_projet
|
||||||
module:
|
module:
|
||||||
- geofield
|
- entity_reference_revisions
|
||||||
id: node.projet.field_carte
|
id: node.projet.field_carte
|
||||||
field_name: field_carte
|
field_name: field_carte
|
||||||
entity_type: node
|
entity_type: node
|
||||||
@ -17,5 +18,29 @@ required: false
|
|||||||
translatable: false
|
translatable: false
|
||||||
default_value: { }
|
default_value: { }
|
||||||
default_value_callback: ''
|
default_value_callback: ''
|
||||||
settings: { }
|
settings:
|
||||||
field_type: geofield
|
handler: 'default:paragraph'
|
||||||
|
handler_settings:
|
||||||
|
target_bundles:
|
||||||
|
geofield_projet: geofield_projet
|
||||||
|
negate: 0
|
||||||
|
target_bundles_drag_drop:
|
||||||
|
chiffre_clef:
|
||||||
|
weight: 8
|
||||||
|
enabled: false
|
||||||
|
chronologie:
|
||||||
|
weight: 9
|
||||||
|
enabled: false
|
||||||
|
collectif_projet:
|
||||||
|
weight: 10
|
||||||
|
enabled: false
|
||||||
|
geofield_projet:
|
||||||
|
weight: 7
|
||||||
|
enabled: true
|
||||||
|
intertitre_texte:
|
||||||
|
weight: 11
|
||||||
|
enabled: false
|
||||||
|
membre_equipe:
|
||||||
|
weight: 12
|
||||||
|
enabled: false
|
||||||
|
field_type: entity_reference_revisions
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
uuid: 62b4f37c-e8b3-4084-a17e-525f51421f11
|
|
||||||
langcode: fr
|
|
||||||
status: true
|
|
||||||
dependencies:
|
|
||||||
config:
|
|
||||||
- field.storage.node.field_libelles_carte
|
|
||||||
- node.type.projet
|
|
||||||
id: node.projet.field_libelles_carte
|
|
||||||
field_name: field_libelles_carte
|
|
||||||
entity_type: node
|
|
||||||
bundle: projet
|
|
||||||
label: libelles_carte
|
|
||||||
description: ''
|
|
||||||
required: false
|
|
||||||
translatable: false
|
|
||||||
default_value: { }
|
|
||||||
default_value_callback: ''
|
|
||||||
settings: { }
|
|
||||||
field_type: string
|
|
@ -0,0 +1,21 @@
|
|||||||
|
uuid: 61590666-a4d6-46f7-87a6-9232dad72908
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.paragraph.field_carte
|
||||||
|
- paragraphs.paragraphs_type.geofield_projet
|
||||||
|
module:
|
||||||
|
- geofield
|
||||||
|
id: paragraph.geofield_projet.field_carte
|
||||||
|
field_name: field_carte
|
||||||
|
entity_type: paragraph
|
||||||
|
bundle: geofield_projet
|
||||||
|
label: Carte
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings: { }
|
||||||
|
field_type: geofield
|
@ -0,0 +1,19 @@
|
|||||||
|
uuid: a7bd1c91-48b4-4f7f-8d51-7bd563a6c81e
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.paragraph.field_libele
|
||||||
|
- paragraphs.paragraphs_type.geofield_projet
|
||||||
|
id: paragraph.geofield_projet.field_libele
|
||||||
|
field_name: field_libele
|
||||||
|
entity_type: paragraph
|
||||||
|
bundle: geofield_projet
|
||||||
|
label: Libélé
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings: { }
|
||||||
|
field_type: string
|
@ -0,0 +1,23 @@
|
|||||||
|
uuid: 75e5c9a2-a9af-4ac0-b98a-e30623a3f940
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.paragraph.field_principal
|
||||||
|
- paragraphs.paragraphs_type.geofield_projet
|
||||||
|
id: paragraph.geofield_projet.field_principal
|
||||||
|
field_name: field_principal
|
||||||
|
entity_type: paragraph
|
||||||
|
bundle: geofield_projet
|
||||||
|
label: Principal
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value:
|
||||||
|
-
|
||||||
|
value: 0
|
||||||
|
default_value_callback: ''
|
||||||
|
settings:
|
||||||
|
on_label: oui
|
||||||
|
off_label: non
|
||||||
|
field_type: boolean
|
@ -1,17 +1,18 @@
|
|||||||
uuid: b67c3939-1668-44af-9284-04aa909b60be
|
uuid: 8d023e8b-b8ba-4de5-a688-b9c39647d78f
|
||||||
langcode: fr
|
langcode: fr
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
module:
|
module:
|
||||||
- geofield
|
- entity_reference_revisions
|
||||||
- node
|
- node
|
||||||
|
- paragraphs
|
||||||
id: node.field_carte
|
id: node.field_carte
|
||||||
field_name: field_carte
|
field_name: field_carte
|
||||||
entity_type: node
|
entity_type: node
|
||||||
type: geofield
|
type: entity_reference_revisions
|
||||||
settings:
|
settings:
|
||||||
backend: geofield_backend_default
|
target_type: paragraph
|
||||||
module: geofield
|
module: entity_reference_revisions
|
||||||
locked: false
|
locked: false
|
||||||
cardinality: -1
|
cardinality: -1
|
||||||
translatable: true
|
translatable: true
|
||||||
|
20
config/sync/field.storage.paragraph.field_carte.yml
Normal file
20
config/sync/field.storage.paragraph.field_carte.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
uuid: f964953a-8d0b-4519-80e1-a7c0f1993f7d
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- geofield
|
||||||
|
- paragraphs
|
||||||
|
id: paragraph.field_carte
|
||||||
|
field_name: field_carte
|
||||||
|
entity_type: paragraph
|
||||||
|
type: geofield
|
||||||
|
settings:
|
||||||
|
backend: geofield_backend_default
|
||||||
|
module: geofield
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
@ -1,12 +1,12 @@
|
|||||||
uuid: fbdd3f5f-1614-4c89-bfae-983cdea74493
|
uuid: 1e47a81a-0d7c-41a8-8f4c-5ee00a4d5d3a
|
||||||
langcode: fr
|
langcode: fr
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
module:
|
module:
|
||||||
- node
|
- paragraphs
|
||||||
id: node.field_libelles_carte
|
id: paragraph.field_libele
|
||||||
field_name: field_libelles_carte
|
field_name: field_libele
|
||||||
entity_type: node
|
entity_type: paragraph
|
||||||
type: string
|
type: string
|
||||||
settings:
|
settings:
|
||||||
max_length: 255
|
max_length: 255
|
||||||
@ -14,7 +14,7 @@ settings:
|
|||||||
is_ascii: false
|
is_ascii: false
|
||||||
module: core
|
module: core
|
||||||
locked: false
|
locked: false
|
||||||
cardinality: -1
|
cardinality: 1
|
||||||
translatable: true
|
translatable: true
|
||||||
indexes: { }
|
indexes: { }
|
||||||
persist_with_no_fields: false
|
persist_with_no_fields: false
|
18
config/sync/field.storage.paragraph.field_principal.yml
Normal file
18
config/sync/field.storage.paragraph.field_principal.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
uuid: 32ff69db-9da5-4d96-913d-b66b72b064c4
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- paragraphs
|
||||||
|
id: paragraph.field_principal
|
||||||
|
field_name: field_principal
|
||||||
|
entity_type: paragraph
|
||||||
|
type: boolean
|
||||||
|
settings: { }
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
10
config/sync/paragraphs.paragraphs_type.geofield_projet.yml
Normal file
10
config/sync/paragraphs.paragraphs_type.geofield_projet.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
uuid: 1d2b719d-2cd0-4376-8c6f-13fb3c392f27
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: geofield_projet
|
||||||
|
label: 'geofield projet'
|
||||||
|
icon_uuid: null
|
||||||
|
icon_default: null
|
||||||
|
description: ''
|
||||||
|
behavior_plugins: { }
|
@ -7,6 +7,7 @@ use Drupal\Core\Block\Attribute\Block;
|
|||||||
// use Drupal\Core\StringTranslation\TranslatableMarkup;
|
// use Drupal\Core\StringTranslation\TranslatableMarkup;
|
||||||
use Drupal\Core\Link;
|
use Drupal\Core\Link;
|
||||||
use Drupal\Core\Render\Markup;
|
use Drupal\Core\Render\Markup;
|
||||||
|
use Drupal\paragraphs\Entity\Paragraph;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a 'Sites Map' Block.
|
* Provides a 'Sites Map' Block.
|
||||||
@ -32,6 +33,17 @@ class SitesMap extends BlockBase {
|
|||||||
$sites_paths = "";
|
$sites_paths = "";
|
||||||
|
|
||||||
foreach($allSites as $index => $site){
|
foreach($allSites as $index => $site){
|
||||||
|
|
||||||
|
// Check if the node has the paragraph field and it's not empty.
|
||||||
|
if ($site->hasField('field_carte') && !$site->get('field_carte')->isEmpty()) {
|
||||||
|
// Iterate through the referenced paragraph entities.
|
||||||
|
foreach ($site->get('field_carte')->referencedEntities() as $carte_paragraph) {
|
||||||
|
if ($carte_paragraph instanceof Paragraph) {
|
||||||
|
$geofield = $carte_paragraph->get('field_carte');
|
||||||
|
$principal = $carte_paragraph->get('field_principal')->value;
|
||||||
|
|
||||||
|
if ($geofield && $principal) {
|
||||||
|
|
||||||
$title = $site->get('title')->getString();
|
$title = $site->get('title')->getString();
|
||||||
$subtitle = $site->get('field_sous_titre')->getString();
|
$subtitle = $site->get('field_sous_titre')->getString();
|
||||||
$place = $site->get('field_localisation_textuel')->getString();
|
$place = $site->get('field_localisation_textuel')->getString();
|
||||||
@ -40,7 +52,6 @@ class SitesMap extends BlockBase {
|
|||||||
$site_link_object = Link::createFromRoute("voir le site", 'entity.node.canonical', ['node' => $site->id()], $link_options);
|
$site_link_object = Link::createFromRoute("voir le site", 'entity.node.canonical', ['node' => $site->id()], $link_options);
|
||||||
$href = $site_link_object->getUrl()->toString();
|
$href = $site_link_object->getUrl()->toString();
|
||||||
|
|
||||||
$geofield = $site->get('field_carte')->get(0);
|
|
||||||
$lon = $geofield->lon;
|
$lon = $geofield->lon;
|
||||||
$lat = $geofield->lat;
|
$lat = $geofield->lat;
|
||||||
|
|
||||||
@ -51,6 +62,17 @@ class SitesMap extends BlockBase {
|
|||||||
[$index, $lon, $lat, $href, $title, $place],
|
[$index, $lon, $lat, $href, $title, $place],
|
||||||
$svg_template
|
$svg_template
|
||||||
);
|
);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$return = [
|
$return = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user