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;
    }
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;
    }
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 ; }
Get marker as geo json feature.

@return Feature
Get marker as geo json feature .