Ejemplo n.º 1
0
 /**
  * Build map custom options.
  *
  * @param Map      $map   The map being built.
  * @param MapModel $model The map model.
  *
  * @return void
  */
 protected function buildCustomOptions(Map $map, MapModel $model)
 {
     if ($model->options) {
         $map->setOptions(json_decode($model->options, true));
     }
     $map->setOption('dynamicLoad', (bool) $model->dynamicLoad);
 }
Ejemplo n.º 2
0
 /**
  * Build map custom options.
  *
  * @param Map      $map   The map being built.
  * @param MapModel $model The map model.
  *
  * @return void
  */
 protected function buildCustomOptions(Map $map, MapModel $model)
 {
     if ($model->options) {
         $options = json_decode($model->options, true);
         if (is_array($options)) {
             $map->setOptions($options);
         }
     }
     $map->setOption('dynamicLoad', (bool) $model->dynamicLoad);
 }