Deprecated: Return type of YDataTable::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/bdavid/prod/georef/yamldoc/ydclasses/ydata.inc.php on line 428

Deprecated: Return type of YamlDataTable::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/bdavid/prod/georef/yamldoc/ydclasses/yamldata.inc.php on line 295
ydc map.inc.php

Fichier map.inc.php

File: map.inc.php - sous-classe de documents pour l'affichage d'une carte Leaflet

doc


journal


Warning: Array to string conversion in /home/bdavid/prod/georef/yamldoc/ydclasses.php on line 86
Array

classe Map : affichage d'une carte Leaflet

La carte peut être affichée par appel de son URI suivie de /display
Chaque couche définie dans la carte génère un objet d'une sous-classe de LeafletLayer en fonction de son type.
Le fichier map-default.yaml est utilisé pour définir une carte par défaut.
Cette carte par défaut contient 3 couches de base et 0 calques (overlays).

Voir la carte geodata/testmap.yaml comme exemple et spécification.

La carte peut aussi être généré dynamiquement par un autre document, par un FeatureDataset. Voir comme exemple id.php/geodata/route500/map