# leaflet-map/2.17.2/shortcodes/class.gpx-shortcode.php

Leaflet Map, version 2.17.2. 38 lines.

- Page: https://pluginprobe.com/plugins/leaflet-map/2.17.2/code/shortcodes/class.gpx-shortcode.php
- Raw: https://pluginprobe.com/plugins/leaflet-map/2.17.2/raw/shortcodes/class.gpx-shortcode.php
- Modified: 2019-08-01T03:40:52+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.17.2/code/shortcodes/class.gpx-shortcode.php#L10-L20`.

```php
<?php
/**
 * GPX Shortcode
 *
 * Use with [leaflet-gpx src="..."]
 *
 * 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.geojson-shortcode.php';

/**
 * Leaflet GPX Shortcode
 */
class Leaflet_Gpx_Shortcode extends Leaflet_Geojson_Shortcode
{
    /**
     * How leaflet renders the src
     * 
     * @var string $type
     */
    public static $type = 'gpx';

    /**
     * Default src
     * 
     * @var string $default_src
     */
    public static $default_src = '';
}
```
