public function toGeoJsonFeature()
    {
        $feature = new Feature($this, $this->getId());
        $options = $this->getOptions();

        if ($this->getIcon()) {
            $feature->setProperty('icon', $this->getIcon()->getId());
            unset($options['icon']);
        }

        $feature->setProperty('options', $options);

        return $feature;
    }