Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • KmlBundle
      • Element
    • ManagerBundle
      • Controller
      • Form
        • DataTransformer
        • Type
    • MonitoringBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
      • Entity
      • EventListener
      • Form
    • PrintBundle
      • Component
      • Controller
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • EventListener
        • Type
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Event
      • Form
        • EventListener
        • Type
    • WmtsBundle
      • Component
        • Exception
      • Controller
      • Entity
      • Form
        • Type
  • None
  • PHP

Classes

  • AboutDialog
  • ActivityIndicator
  • Button
  • CoordinatesDisplay
  • Copyright
  • FeatureInfo
  • GpsPosition
  • Layertree
  • Legend
  • Map
  • Overview
  • PrintClient
  • Ruler
  • ScaleBar
  • ScaleDisplay
  • ScaleSelector
  • SearchRouter
  • SrsSelector
  • ZoomBar
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
  1: <?php
  2: 
  3: namespace Mapbender\CoreBundle\Element;
  4: 
  5: use Mapbender\CoreBundle\Component\Element;
  6: 
  7: /**
  8:  * Map's overview element
  9:  *
 10:  * @author Paul Schmidt
 11:  */
 12: class Overview extends Element
 13: {
 14: 
 15:     /**
 16:      * @inheritdoc
 17:      */
 18:     static public function getClassTitle()
 19:     {
 20:         return "Overview";
 21:     }
 22: 
 23:     /**
 24:      * @inheritdoc
 25:      */
 26:     static public function getClassDescription()
 27:     {
 28:         return "Renders a small overview map";
 29:     }
 30: 
 31:     /**
 32:      * @inheritdoc
 33:      */
 34:     static public function getClassTags()
 35:     {
 36:         return array('Overview', "Map's overview");
 37:     }
 38: 
 39:     /**
 40:      * @inheritdoc
 41:      */
 42:     public static function getDefaultConfiguration()
 43:     {
 44:         return array(
 45:             'title' => 'Overview',
 46:             'tooltip' => "Overview",
 47:             'layerset' => null,
 48:             'target' => null,
 49:             'width' => 200,
 50:             'height' => 100,
 51:             'anchor' => 'right-top',
 52:             'position' => array('0px', '0px'),
 53:             'maximized' => true,
 54:             'fixed' => true);
 55:     }
 56: 
 57:     /**
 58:      * @inheritdoc
 59:      */
 60:     public function getWidgetName()
 61:     {
 62:         return 'mapbender.mbOverview';
 63:     }
 64: 
 65:     /**
 66:      * @inheritdoc
 67:      */
 68:     public static function getType()
 69:     {
 70:         return 'Mapbender\CoreBundle\Element\Type\OverviewAdminType';
 71:     }
 72: 
 73:     /**
 74:      * @inheritdoc
 75:      */
 76:     public function getAssets()
 77:     {
 78:         return array(
 79:             'js' => array('mapbender.element.overview.js'),
 80:             //TODO: Split up
 81:             'css' => array('mapbender.element.overview.css'));
 82:     }
 83: 
 84:     /**
 85:      * @inheritdoc
 86:      */
 87:     public function render()
 88:     {
 89:         return $this->container->get('templating')
 90:                         ->render('MapbenderCoreBundle:Element:overview.html.twig',
 91:                                  array(
 92:                             'id' => $this->getId(),
 93:                             "title" => $this->getTitle(),
 94:                             'configuration' => $this->getConfiguration()));
 95:     }
 96: 
 97:     /**
 98:      * @inheritdoc
 99:      */
100:     public static function getFormTemplate()
101:     {
102:         return 'MapbenderManagerBundle:Element:overview.html.twig';
103:     }
104: }
105: 
106: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0