public function Base::setWeight in Openlayers 7.3
Set the weight of an object.
Parameters
int $weight: The weight of the object.
Overrides ObjectInterface::setWeight
7 calls to Base::setWeight()
- Base::init in src/
Types/ Base.php - Initializes the object.
- Cluster::optionsToObjects in src/
Plugin/ Source/ Cluster/ Cluster.php - Return a flat array containing Openlayers Objects from the options array.
- GeofieldWidget::optionsToObjects in modules/
openlayers_geofield/ src/ Plugin/ Component/ GeofieldWidget/ GeofieldWidget.php - Return a flat array containing Openlayers Objects from the options array.
- Random::optionsToObjects in modules/
openlayers_library/ src/ Plugin/ Source/ Random/ Random.php - Return a flat array containing Openlayers Objects from the options array.
- Random::optionsToObjects in modules/
openlayers_library/ src/ Plugin/ Style/ Random/ Random.php - Return a flat array containing Openlayers Objects from the options array.
File
- src/
Types/ Base.php, line 535 - Class Object.
Class
- Base
- Class Base.
Namespace
Drupal\openlayers\TypesCode
public function setWeight($weight) {
$this->configuration['weight'] = floatval($weight);
}