Framework openMairie - version 4.10

om_map extends om_base
in package

Définition de la classe 'om_map'.

Table of Contents

$advs_id  : mixed
paramètre
$affichageZones  : array<string|int, mixed>
Gestion de l'affichage
$cart_type  : array<string|int, mixed>
gestion des paniers
$cg_champ  : array<string|int, mixed>
champs geom
$cg_champ_idx  : array<string|int, mixed>
champs geom
$cg_geometrie  : array<string|int, mixed>
champs geom
$cg_lib_geometrie  : array<string|int, mixed>
champs geom
$cg_maj  : array<string|int, mixed>
champs geom
$cg_obj_class  : array<string|int, mixed>
champs geom
$cg_table  : array<string|int, mixed>
champs geom
$defBaseProjection  : mixed
Projection base
$defDisplayProjection  : mixed
Projection display
$edit_toolbar  : array<string|int, mixed>
Tableau de la barre du menu d'édition menu (id html, false)
$etendue  : mixed
paramètre
$fl_m_baselayer  : array<string|int, mixed>
champs flux
$fl_m_filter  : array<string|int, mixed>
champs flux
$fl_m_maxzoomlevel  : array<string|int, mixed>
champs flux
$fl_m_ol_map  : array<string|int, mixed>
champs flux
$fl_m_pa_attribut  : array<string|int, mixed>
champs flux
$fl_m_pa_encaps  : array<string|int, mixed>
champs flux
$fl_m_pa_layer  : array<string|int, mixed>
champs flux
$fl_m_pa_nom  : array<string|int, mixed>
champs flux
$fl_m_pa_sql  : array<string|int, mixed>
champs flux
$fl_m_pa_type_geometrie  : array<string|int, mixed>
champs flux
$fl_m_panier  : array<string|int, mixed>
champs flux
$fl_m_singletile  : array<string|int, mixed>
champs flux
$fl_m_sql_filter  : array<string|int, mixed>
champs flux
$fl_m_visibility  : array<string|int, mixed>
champs flux
$fl_om_sig_map_flux  : array<string|int, mixed>
champs flux
$fl_w_attribution  : array<string|int, mixed>
champs flux
$fl_w_cache_gfi_chemin  : array<string|int, mixed>
champs flux
$fl_w_cache_gfi_couches  : array<string|int, mixed>
champs flux
$fl_w_cache_type  : array<string|int, mixed>
champs flux
$fl_w_chemin  : array<string|int, mixed>
champs flux
$fl_w_couches  : array<string|int, mixed>
champs flux
$fl_w_id  : array<string|int, mixed>
champs flux
$fl_w_libelle  : array<string|int, mixed>
champs flux
$form_champ_maj  : array<string|int, mixed>
Actions disponibles sur la mise à jour d'un champ geom.
$idx  : mixed
paramètre
$idx_sel  : mixed
paramètre
$img_click  : string
paramètres de style pour la couche marqueur multiplicateur hauteur et largeur image cliquee
$img_consult  : string
paramètres de style pour la couche marqueur
$img_consult_hover  : string
paramètres de style pour la couche marqueur
$img_h  : int
paramètres de style pour la couche marqueur
$img_maj  : string
paramètres de style pour la couche marqueur
$img_maj_hover  : string
paramètres de style pour la couche marqueur
$img_w  : int
paramètres de style pour la couche marqueur
$obj  : mixed
paramètre
$om_sig_map  : mixed
om_sig_map
$onglet  : mixed
paramètre
$pebl_cle_bing  : mixed
champ pour fonds de carte externes (Bing)
$pebl_cle_google  : mixed
champ pour fonds de carte externes (Google)
$pebl_http_google  : mixed
champ pour fonds de carte externes (Google)
$pebl_zoom_bing  : mixed
champ pour fonds de carte externes (Bing)
$pebl_zoom_bing_maj  : mixed
champ pour fonds de carte externes (Bing)
$pebl_zoom_osm  : mixed
champ pour fonds de carte externes (OSM)
$pebl_zoom_osm_maj  : mixed
champ pour fonds de carte externes (OSM)
$pebl_zoom_sa  : mixed
champ pour fonds de carte externes (OSM, Bing, Google)
$pebl_zoom_sat_maj  : mixed
champ pour fonds de carte externes (Google)
$popup  : mixed
paramètre
$premier  : mixed
paramètre
$recordFields  : array<string|int, mixed>
listes des champs retour (même index que comp)
$recordMode  : mixed
1 (par défaut): via form_sig; 2 retour des valeurs dans des champs fournis dans le tableau recordFields
$recordMultiComp  : mixed
Gestion de l'enregistrement true: enregistrement de l'ensemble des champs géométriques ; false: enregistrement un par un des champs géométriques (par défaut)
$reqmo  : mixed
paramètre
$seli  : mixed
paramètre
$sm_fond_bing  : mixed
om_sig_map
$sm_fond_default  : mixed
om_sig_map
$sm_fond_osm  : mixed
om_sig_map
$sm_fond_sat  : mixed
om_sig_map
$sm_layer_info  : mixed
om_sig_map
$sm_om_sql  : mixed
om_sig_map
$sm_om_sql_idx  : mixed
om_sig_map
$sm_point_centrage  : mixed
om_sig_map
$sm_point_centrage_x  : mixed
om_sig_map
$sm_point_centrage_y  : mixed
om_sig_map
$sm_projection_externe  : mixed
om_sig_map
$sm_restrict_extent  : mixed
om_sig_map
$sm_retour  : mixed
om_sig_map
$sm_sld_data  : mixed
om_sig_map
$sm_sld_marqueur  : mixed
om_sig_map
$sm_source_flux  : mixed
om_sig_map
$sm_titre  : mixed
om_sig_map
$sm_url  : mixed
om_sig_map
$sm_zoom  : mixed
om_sig_map
$sql_lst_idx  : mixed
paramètre
$style  : mixed
paramètre
$tricol  : mixed
paramètre
$type_utilisation  : mixed
paramètre
$valide  : mixed
paramètre
$f  : null|application
Instance de la classe 'application'.
__construct()  : mixed
Constructeur.
__destruct()  : mixed
Destructeur.
beforePrepareForm()  : string
Fonction pour surcharge de prepareForm: execute ou non le prepareForm en fonction du return 'chaine vide ok".
computeFilters()  : mixed
calcul des filtres pour les flux de type WMS (fl_m_filter)
getComputeGeom()  : mixed
Calcul la géométrie validé dans l'interface
getGeoJsonCart()  : mixed
Génère un tableau GeoJson correspondant au panier $cart (n de flux) avec la liste des enregistrement $lst.
getGeoJsonDatas()  : mixed
Génère un tableau GeoJson correspondant aux données idx/Reqmo/Recherche.
getGeoJsonMarkers()  : mixed
Génère un tableau GeoJson correspondant aux données idx/Reqmo/Recherche
getSelectRestrict()  : mixed
Génère un tableau (idx, sql_lst_idx) correspondant aux données idx/Reqmo/Recherche.
prepareCanevas()  : void
Préparation du canevas html: pilote les autres fonctions prepareCanevas.
prepareCanevasEdit()  : void
Préparation du canevas html: fonctions d'éditions
prepareCanevasGetfeatures()  : void
Préparation du canevas html: getFeature
prepareCanevasInfos()  : void
Préparation du canevas html: Informations
prepareCanevasLayers()  : void
Préparation du canevas html: Menu des couches
prepareCanevasMenu()  : void
Préparation du canevas html: menu avec regroupement (au moins une valeur à 1)
prepareCanevasNavigation()  : void
Préparation du canevas html: navigation
prepareCanevasPrint()  : void
Préparation du canevas html: Impressions
prepareCanevasTitre()  : void
Préparation du canevas html: Titre
prepareCanevasTools()  : void
Préparation du canevas html: boite à outils
prepareForm()  : mixed
Préparation du canevas html: pilote les autres fonctions prepareCanevas.
prepareFormAfterUpdate()  : string
Fonction pour surcharge dans prepareForm: après l'exécution des requètes de modification des champs géométriques et avant le commit retourner t si ok, sinon retourner le message à afficher.
prepareFormBeforeUpdate()  : string
Fonction pour surcharge dans prepareForm: avant l'exécution des requètes de modification des champs géométriques retourner t si ok, sinon retourner le message à afficher.
prepareFormSpecific()  : string
Point d'entrée pour surcharge de la méthode om_map::prepareForm().
prepareJS()  : void
Ecrit les propriétés de l'instance dans la page html pour JavaScript
recupOmSigflux()  : void
Récupération du paramétrage des flux associés à l'objet dans les tables om_sig_map_flux et om_sig_map_flux
recupOmSigMap()  : mixed
Récupération du paramétrage de l'objet dans les tables om_sig_map et om_sig_map_comp. Préalable à toute utilisation de la classe.
setCanevas()  : mixed
Paramétrage des zones du canevas
setParamsExternalBaseLayer()  : void
Initialisation des propriétés relatives aux fonds de carte externe, ajout des librairies associées si nécessaire.
addToLog()  : void
Ajout d'un message au système de logs.
init_om_application()  : bool
Initialisation de la classe 'application'.

Properties

$affichageZones

Gestion de l'affichage

public array<string|int, mixed> $affichageZones = array()

$cart_type

gestion des paniers

public array<string|int, mixed> $cart_type = array("point" => \false, "linestring" => \false, "polygon" => \false)

$cg_champ

champs geom

public array<string|int, mixed> $cg_champ = array()

$cg_champ_idx

champs geom

public array<string|int, mixed> $cg_champ_idx = array()

$cg_geometrie

champs geom

public array<string|int, mixed> $cg_geometrie = array()

$cg_lib_geometrie

champs geom

public array<string|int, mixed> $cg_lib_geometrie = array()

$cg_maj

champs geom

public array<string|int, mixed> $cg_maj = array()

$cg_obj_class

champs geom

public array<string|int, mixed> $cg_obj_class = array()

$cg_table

champs geom

public array<string|int, mixed> $cg_table = array()

$defBaseProjection

Projection base

public mixed $defBaseProjection

$defDisplayProjection

Projection display

public mixed $defDisplayProjection

$edit_toolbar

Tableau de la barre du menu d'édition menu (id html, false)

public array<string|int, mixed> $edit_toolbar = array("#map-edit-nav" => \false, "#map-edit-draw-point" => \false, "#map-edit-draw-line" => \false, "#map-edit-draw-polygon" => \false, "#map-edit-draw-regular" => \false, "#map-edit-draw-regular-nb" => \false, "#map-edit-draw-modify" => \false, "#map-edit-draw-select" => \false, "#map-edit-draw-erase" => \false, "#map-edit-cart" => \false, "#map-edit-get-cart" => \false, "#map-edit-draw-record" => \false, "#map-edit-draw-delete" => \false, "#map-edit-draw-close" => \false)

$fl_m_baselayer

champs flux

public array<string|int, mixed> $fl_m_baselayer = array()

$fl_m_filter

champs flux

public array<string|int, mixed> $fl_m_filter = array()

$fl_m_maxzoomlevel

champs flux

public array<string|int, mixed> $fl_m_maxzoomlevel = array()

$fl_m_ol_map

champs flux

public array<string|int, mixed> $fl_m_ol_map = array()

$fl_m_pa_attribut

champs flux

public array<string|int, mixed> $fl_m_pa_attribut = array()

$fl_m_pa_encaps

champs flux

public array<string|int, mixed> $fl_m_pa_encaps = array()

$fl_m_pa_layer

champs flux

public array<string|int, mixed> $fl_m_pa_layer = array()

$fl_m_pa_nom

champs flux

public array<string|int, mixed> $fl_m_pa_nom = array()

$fl_m_pa_sql

champs flux

public array<string|int, mixed> $fl_m_pa_sql = array()

$fl_m_pa_type_geometrie

champs flux

public array<string|int, mixed> $fl_m_pa_type_geometrie = array()

$fl_m_panier

champs flux

public array<string|int, mixed> $fl_m_panier = array()

$fl_m_singletile

champs flux

public array<string|int, mixed> $fl_m_singletile = array()

$fl_m_sql_filter

champs flux

public array<string|int, mixed> $fl_m_sql_filter = array()

$fl_m_visibility

champs flux

public array<string|int, mixed> $fl_m_visibility = array()

$fl_om_sig_map_flux

champs flux

public array<string|int, mixed> $fl_om_sig_map_flux = array()

$fl_w_attribution

champs flux

public array<string|int, mixed> $fl_w_attribution = array()

$fl_w_cache_gfi_chemin

champs flux

public array<string|int, mixed> $fl_w_cache_gfi_chemin = array()

$fl_w_cache_gfi_couches

champs flux

public array<string|int, mixed> $fl_w_cache_gfi_couches = array()

$fl_w_cache_type

champs flux

public array<string|int, mixed> $fl_w_cache_type = array()

$fl_w_chemin

champs flux

public array<string|int, mixed> $fl_w_chemin = array()

$fl_w_couches

champs flux

public array<string|int, mixed> $fl_w_couches = array()

$fl_w_id

champs flux

public array<string|int, mixed> $fl_w_id = array()

$fl_w_libelle

champs flux

public array<string|int, mixed> $fl_w_libelle = array()

$form_champ_maj

Actions disponibles sur la mise à jour d'un champ geom.

public array<string|int, mixed> $form_champ_maj = array("1" => "Modifier", "2" => "Supprimer")

$img_click

paramètres de style pour la couche marqueur multiplicateur hauteur et largeur image cliquee

public string $img_click = "1.3"

$img_consult

paramètres de style pour la couche marqueur

public string $img_consult = "../lib/om-assets/img/punaise_point.png"

$img_consult_hover

paramètres de style pour la couche marqueur

public string $img_consult_hover = "../lib/om-assets/img/punaise_point_hover.png"

$img_h

paramètres de style pour la couche marqueur

public int $img_h = 32

$img_maj

paramètres de style pour la couche marqueur

public string $img_maj = "../lib/om-assets/img/punaise_sig.png"

$img_maj_hover

paramètres de style pour la couche marqueur

public string $img_maj_hover = "../lib/om-assets/img/punaise_hover.png"

$img_w

paramètres de style pour la couche marqueur

public int $img_w = 14

$pebl_cle_bing

champ pour fonds de carte externes (Bing)

public mixed $pebl_cle_bing

$pebl_cle_google

champ pour fonds de carte externes (Google)

public mixed $pebl_cle_google

$pebl_http_google

champ pour fonds de carte externes (Google)

public mixed $pebl_http_google

$pebl_zoom_bing

champ pour fonds de carte externes (Bing)

public mixed $pebl_zoom_bing

$pebl_zoom_bing_maj

champ pour fonds de carte externes (Bing)

public mixed $pebl_zoom_bing_maj

$pebl_zoom_osm

champ pour fonds de carte externes (OSM)

public mixed $pebl_zoom_osm

$pebl_zoom_osm_maj

champ pour fonds de carte externes (OSM)

public mixed $pebl_zoom_osm_maj

$pebl_zoom_sa

champ pour fonds de carte externes (OSM, Bing, Google)

public mixed $pebl_zoom_sa

$pebl_zoom_sat_maj

champ pour fonds de carte externes (Google)

public mixed $pebl_zoom_sat_maj

$recordFields

listes des champs retour (même index que comp)

public array<string|int, mixed> $recordFields = array()

$recordMode

1 (par défaut): via form_sig; 2 retour des valeurs dans des champs fournis dans le tableau recordFields

public mixed $recordMode

$recordMultiComp

Gestion de l'enregistrement true: enregistrement de l'ensemble des champs géométriques ; false: enregistrement un par un des champs géométriques (par défaut)

public mixed $recordMultiComp

$sm_fond_default

om_sig_map

public mixed $sm_fond_default

$sm_point_centrage

om_sig_map

public mixed $sm_point_centrage

$sm_point_centrage_x

om_sig_map

public mixed $sm_point_centrage_x

$sm_point_centrage_y

om_sig_map

public mixed $sm_point_centrage_y

$sm_projection_externe

om_sig_map

public mixed $sm_projection_externe

$sm_restrict_extent

om_sig_map

public mixed $sm_restrict_extent

$sm_sld_marqueur

om_sig_map

public mixed $sm_sld_marqueur

$sm_source_flux

om_sig_map

public mixed $sm_source_flux

$type_utilisation

paramètre

public mixed $type_utilisation = ''

$f

Instance de la classe 'application'.

protected null|application $f = \null

Methods

__construct()

Constructeur.

public __construct(string $obj, array<string|int, mixed> $options) : mixed
Parameters
$obj : string
$options : array<string|int, mixed>
Return values
mixed

__destruct()

Destructeur.

public __destruct() : mixed
Return values
mixed

beforePrepareForm()

Fonction pour surcharge de prepareForm: execute ou non le prepareForm en fonction du return 'chaine vide ok".

public beforePrepareForm(int $min, int $max, int $validation, mixed $geojson) : string
Parameters
$min : int
$max : int
$validation : int
$geojson : mixed
Return values
string

computeFilters()

calcul des filtres pour les flux de type WMS (fl_m_filter)

public computeFilters(mixed $idx) : mixed
Parameters
$idx : mixed
Return values
mixed

getComputeGeom()

Calcul la géométrie validé dans l'interface

public getComputeGeom(mixed $seli, mixed $geojson) : mixed
Parameters
$seli : mixed
$geojson : mixed
Return values
mixed

getGeoJsonCart()

Génère un tableau GeoJson correspondant au panier $cart (n de flux) avec la liste des enregistrement $lst.

public getGeoJsonCart(mixed $cart, mixed $lst) : mixed
Parameters
$cart : mixed
$lst : mixed
Return values
mixed

getGeoJsonDatas()

Génère un tableau GeoJson correspondant aux données idx/Reqmo/Recherche.

public getGeoJsonDatas(string $idx, string $seli) : mixed
Parameters
$idx : string
$seli : string
Return values
mixed

getGeoJsonMarkers()

Génère un tableau GeoJson correspondant aux données idx/Reqmo/Recherche

public getGeoJsonMarkers(mixed $idx) : mixed
Parameters
$idx : mixed
Return values
mixed

getSelectRestrict()

Génère un tableau (idx, sql_lst_idx) correspondant aux données idx/Reqmo/Recherche.

public getSelectRestrict(mixed $idx, mixed $seli) : mixed
Parameters
$idx : mixed
$seli : mixed
Return values
mixed

prepareCanevas()

Préparation du canevas html: pilote les autres fonctions prepareCanevas.

public prepareCanevas() : void
Return values
void

prepareCanevasEdit()

Préparation du canevas html: fonctions d'éditions

public prepareCanevasEdit() : void
Return values
void

prepareCanevasGetfeatures()

Préparation du canevas html: getFeature

public prepareCanevasGetfeatures() : void
Return values
void

prepareCanevasInfos()

Préparation du canevas html: Informations

public prepareCanevasInfos() : void
Return values
void

prepareCanevasLayers()

Préparation du canevas html: Menu des couches

public prepareCanevasLayers() : void
Return values
void

prepareCanevasMenu()

Préparation du canevas html: menu avec regroupement (au moins une valeur à 1)

public prepareCanevasMenu() : void
Return values
void

prepareCanevasNavigation()

Préparation du canevas html: navigation

public prepareCanevasNavigation() : void
Return values
void

prepareCanevasPrint()

Préparation du canevas html: Impressions

public prepareCanevasPrint() : void
Return values
void

prepareCanevasTitre()

Préparation du canevas html: Titre

public prepareCanevasTitre() : void
Return values
void

prepareCanevasTools()

Préparation du canevas html: boite à outils

public prepareCanevasTools() : void
Return values
void

prepareForm()

Préparation du canevas html: pilote les autres fonctions prepareCanevas.

public prepareForm(int $min, int $max, int $validation, mixed $geojson) : mixed

..

Parameters
$min : int
$max : int
$validation : int
$geojson : mixed
Return values
mixed

prepareFormAfterUpdate()

Fonction pour surcharge dans prepareForm: après l'exécution des requètes de modification des champs géométriques et avant le commit retourner t si ok, sinon retourner le message à afficher.

public prepareFormAfterUpdate(int $min, int $max, int $validation, mixed $geojson) : string
Parameters
$min : int
$max : int
$validation : int
$geojson : mixed
Return values
string

prepareFormBeforeUpdate()

Fonction pour surcharge dans prepareForm: avant l'exécution des requètes de modification des champs géométriques retourner t si ok, sinon retourner le message à afficher.

public prepareFormBeforeUpdate(int $min, int $max, int $validation, mixed $geojson) : string
Parameters
$min : int
$max : int
$validation : int
$geojson : mixed
Return values
string

prepareFormSpecific()

Point d'entrée pour surcharge de la méthode om_map::prepareForm().

public prepareFormSpecific(int $min, int $max, int $validation, mixed $geojson) : string
Parameters
$min : int
$max : int
$validation : int
$geojson : mixed
Return values
string

prepareJS()

Ecrit les propriétés de l'instance dans la page html pour JavaScript

public prepareJS() : void
Return values
void

recupOmSigflux()

Récupération du paramétrage des flux associés à l'objet dans les tables om_sig_map_flux et om_sig_map_flux

public recupOmSigflux() : void
Return values
void

recupOmSigMap()

Récupération du paramétrage de l'objet dans les tables om_sig_map et om_sig_map_comp. Préalable à toute utilisation de la classe.

public recupOmSigMap() : mixed
Return values
mixed

setCanevas()

Paramétrage des zones du canevas

public setCanevas(mixed $zone, mixed $val) : mixed
Parameters
$zone : mixed
$val : mixed
Return values
mixed

setParamsExternalBaseLayer()

Initialisation des propriétés relatives aux fonds de carte externe, ajout des librairies associées si nécessaire.

public setParamsExternalBaseLayer() : void
Return values
void

addToLog()

Ajout d'un message au système de logs.

protected addToLog(string $message[, int $type = DEBUG_MODE ]) : void

Cette méthode permet de logger un message.

Parameters
$message : string

Message à logger.

$type : int = DEBUG_MODE

Niveau de log du message.

Return values
void

init_om_application()

Initialisation de la classe 'application'.

protected init_om_application() : bool

Cette méthode permet de vérifier que l'attribut f de la classe contient bien la ressource utils du framework et si ce n'est pas le cas de la récupérer.

Return values
bool

Search results