You are here

public function openlayers_simple::render in Openlayers 7.2

Implementation of boxes_content::options_form().

Overrides boxes_box::render

File

plugins/boxes/openlayers_simple.inc, line 36

Class

openlayers_simple
OpenLayers Box

Code

public function render() {
  $title = isset($this->title) ? check_plain($this->title) : NULL;
  $map = openlayers_map_load($this->options['map']);
  return array(
    'delta' => $this->delta,
    // Crucial.
    'title' => $title,
    'subject' => $title,
    'content' => openlayers_render_map($map, $map->name),
  );
}