protected function computePoints(Map $map)
    {
        $points = array();

        foreach ($map->getMarkers() as $marker) {
            if ($marker->hasIcon()) {
                if ($marker->getIcon()->hasAnchor() && !in_array($marker->getIcon()->getAnchor(), $points)) {
                    $points[] = $marker->getIcon()->getAnchor();
                }

                if ($marker->getIcon()->hasOrigin() && !in_array($marker->getIcon()->getOrigin(), $points)) {
                    $points[] = $marker->getIcon()->getOrigin();
                }
            }

            if ($marker->hasShadow()) {
                if ($marker->getShadow()->hasAnchor() && !in_array($marker->getShadow()->getAnchor(), $points)) {
                    $points[] = $marker->getShadow()->getAnchor();
                }

                if ($marker->getShadow()->hasOrigin() && !in_array($marker->getShadow()->getOrigin(), $points)) {
                    $points[] = $marker->getShadow()->getOrigin();
                }
            }
        }

        return $points;
    }
protected function computePoints(Map $map)
    {
        $points = array();

        foreach ($map->getMarkers() as $marker) {
            if ($marker->hasIcon()) {
                if ($marker->getIcon()->hasAnchor() && !in_array($marker->getIcon()->getAnchor(), $points)) {
                    $points[] = $marker->getIcon()->getAnchor();
                }

                if ($marker->getIcon()->hasOrigin() && !in_array($marker->getIcon()->getOrigin(), $points)) {
                    $points[] = $marker->getIcon()->getOrigin();
                }
            }

            if ($marker->hasShadow()) {
                if ($marker->getShadow()->hasAnchor() && !in_array($marker->getShadow()->getAnchor(), $points)) {
                    $points[] = $marker->getShadow()->getAnchor();
                }

                if ($marker->getShadow()->hasOrigin() && !in_array($marker->getShadow()->getOrigin(), $points)) {
                    $points[] = $marker->getShadow()->getOrigin();
                }
            }
        }

        return $points;
    }
protected function computePoints ( Map $ map ) { $ points = array ( ) ; foreach ( $ map -> getMarkers ( ) as $ marker ) { if ( $ marker -> hasIcon ( ) ) { if ( $ marker -> getIcon ( ) -> hasAnchor ( ) && ! in_array ( $ marker -> getIcon ( ) -> getAnchor ( ) , $ points ) ) { $ points [ ] = $ marker -> getIcon ( ) -> getAnchor ( ) ; } if ( $ marker -> getIcon ( ) -> hasOrigin ( ) && ! in_array ( $ marker -> getIcon ( ) -> getOrigin ( ) , $ points ) ) { $ points [ ] = $ marker -> getIcon ( ) -> getOrigin ( ) ; } } if ( $ marker -> hasShadow ( ) ) { if ( $ marker -> getShadow ( ) -> hasAnchor ( ) && ! in_array ( $ marker -> getShadow ( ) -> getAnchor ( ) , $ points ) ) { $ points [ ] = $ marker -> getShadow ( ) -> getAnchor ( ) ; } if ( $ marker -> getShadow ( ) -> hasOrigin ( ) && ! in_array ( $ marker -> getShadow ( ) -> getOrigin ( ) , $ points ) ) { $ points [ ] = $ marker -> getShadow ( ) -> getOrigin ( ) ; } } } return $ points ; }
Computes the points of a map.

@param \Ivory\GoogleMap\Map $map The map.

@return array The computed points.
Computes the points of a map .