You are here

GPX.php in Openlayers 7.3

Source: GPX.

File

src/Plugin/Source/GPX/GPX.php
View source
<?php

/**
 * @file
 * Source: GPX.
 */
namespace Drupal\openlayers\Plugin\Source\GPX;

use Drupal\openlayers\Types\Source;

/**
 * Class GPX.
 *
 * @OpenlayersPlugin(
 *  id = "GPX"
 * )
 */
class GPX extends Source {

  /**
   * {@inheritdoc}
   */
  public function optionsForm(array &$form, array &$form_state) {
    $form['options']['url'] = array(
      '#title' => t('URL'),
      '#type' => 'textfield',
      '#default_value' => $this
        ->getOption('url'),
    );
  }

}

Classes

Namesort descending Description
GPX Class GPX.