# leaflet-map/2.16.2/shortcodes/class.polygon-shortcode.php

Leaflet Map, version 2.16.2. 31 lines.

- Page: https://pluginprobe.com/plugins/leaflet-map/2.16.2/code/shortcodes/class.polygon-shortcode.php
- Raw: https://pluginprobe.com/plugins/leaflet-map/2.16.2/raw/shortcodes/class.polygon-shortcode.php
- Modified: 2019-09-12T14:24:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/leaflet-map/2.16.2/code/shortcodes/class.polygon-shortcode.php#L10-L20`.

```php
<?php
/**
 * Polygon Shortcode
 *
 * Use with [leaflet-polygon ...]
 * 
 * PHP Version 5.5
 * 
 * @category Shortcode
 * @author   Benjamin J DeLong <ben@bozdoz.com>
 */

// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}

require_once LEAFLET_MAP__PLUGIN_DIR . 'shortcodes/class.line-shortcode.php';

/**
 * Leaflet Polygon Shortcode Class
 */
class Leaflet_Polygon_Shortcode extends Leaflet_Line_Shortcode
{
    /**
     * How leaflet renders the src
     * 
     * @var string $type 
     */
    public static $type = 'polygon';
}
```
