/** * Creates a rotate control helper. * * @param \Ivory\GoogleMap\Helper\Controls\ControlPositionHelper $controlPositionHelper The control position helper. */ public function __construct(ControlPositionHelper $controlPositionHelper = null) { parent::__construct(); if ($controlPositionHelper === null) { $controlPositionHelper = new ControlPositionHelper(); } $this->setControlPositionHelper($controlPositionHelper); }
/** * Creates a default marker cluster helper. * * @param \Ivory\GoogleMap\Helper\Overlays\MarkerHelper $markerHelper The marker helper. */ public function __construct(MarkerHelper $markerHelper = null) { parent::__construct(); if ($markerHelper === null) { $markerHelper = new MarkerHelper(); } $this->setMarkerHelper($markerHelper); }
/** * Creates an encoded polyline helper. * * @param \Ivory\GoogleMap\Helper\Geometry\EncodingHelper $encodingHelper The encoding helper. */ public function __construct(EncodingHelper $encodingHelper = null) { parent::__construct(); if ($encodingHelper === null) { $encodingHelper = new EncodingHelper(); } $this->setEncodingHelper($encodingHelper); }
/** * Creates a marker helper. * * @param \Ivory\GoogleMap\Helper\Overlays\AnimationHelper $animationHelper The animation helper. */ public function __construct(AnimationHelper $animationHelper = null) { parent::__construct(); if ($animationHelper === null) { $animationHelper = new AnimationHelper(); } $this->setAnimationHelper($animationHelper); }
/** * Create a zoom control helper. * * @param \Ivory\GoogleMap\Helper\Controls\ControlPositionHelper $controlPositionHelper The control position * helper. * @param \Ivory\GoogleMap\Helper\Controls\ZoomControlStyleHelper $zoomControlStyleHelper The zoom control style * helper. */ public function __construct(ControlPositionHelper $controlPositionHelper = null, ZoomControlStyleHelper $zoomControlStyleHelper = null) { parent::__construct(); if ($controlPositionHelper === null) { $controlPositionHelper = new ControlPositionHelper(); } if ($zoomControlStyleHelper === null) { $zoomControlStyleHelper = new ZoomControlStyleHelper(); } $this->setControlPositionHelper($controlPositionHelper); $this->setZoomControlStyleHelper($zoomControlStyleHelper); }
/** * Construct a scale control helper. * * @param \Ivory\GoogleMap\Helper\Controls\ControlPositionHelper $controlPositionHelper The control position * helper. * @param \Ivory\GoogleMap\Helper\Controls\ScaleControleStyleHelper $scaleControlStyleHelper The scale control * style helper. */ public function __construct(ControlPositionHelper $controlPositionHelper = null, ScaleControlStyleHelper $scaleControlStyleHelper = null) { parent::__construct(); if ($controlPositionHelper === null) { $controlPositionHelper = new ControlPositionHelper(); } if ($scaleControlStyleHelper === null) { $scaleControlStyleHelper = new ScaleControlStyleHelper(); } $this->setControlPositionHelper($controlPositionHelper); $this->setScaleControlStyleHelper($scaleControlStyleHelper); }
/** * Construct a map type control helper. * * @param \Ivory\GoogleMap\Helper\MapTypeIdHelper $mapTypeIdHelper The map type ID helper. * @param \Ivory\GoogleMap\Helper\Controls\ControlPositionHelper $controlPositionHelper The control position helper. * @param \Ivory\GoogleMap\Helper\Controls\MapTypeControleStyleHelper $mapTypeControlStyleHelper The map type control style helper. */ public function __construct(MapTypeIdHelper $mapTypeIdHelper = null, ControlPositionHelper $controlPositionHelper = null, MapTypeControlStyleHelper $mapTypeControlStyleHelper = null) { parent::__construct(); if ($mapTypeIdHelper === null) { $mapTypeIdHelper = new MapTypeIdHelper(); } if ($controlPositionHelper === null) { $controlPositionHelper = new ControlPositionHelper(); } if ($mapTypeControlStyleHelper === null) { $mapTypeControlStyleHelper = new MapTypeControlStyleHelper(); } $this->setMapTypeIdHelper($mapTypeIdHelper); $this->setControlPositionHelper($controlPositionHelper); $this->setMapTypeControlStyleHelper($mapTypeControlStyleHelper); }
/** * Creates an autocomplete helper. * * @param \Ivory\GoogleMap\Helper\ApiHelper $apiHelper The API helper. * @param \Ivory\GoogleMap\Helper\Base\CoordinateHelper $coordinateHelper The coordinate helper. * @param \Ivory\GoogleMap\Helper\Base\BoundHelper $boundHelper The bound helper. */ public function __construct(ApiHelper $apiHelper = null, CoordinateHelper $coordinateHelper = null, BoundHelper $boundHelper = null) { parent::__construct(); if ($apiHelper === null) { $apiHelper = new ApiHelper(); } if ($coordinateHelper === null) { $coordinateHelper = new CoordinateHelper(); } if ($boundHelper === null) { $boundHelper = new BoundHelper(); } $this->setApiHelper($apiHelper); $this->setCoordinateHelper($coordinateHelper); $this->setBoundHelper($boundHelper); }
/** * Creates a map helper. * * @param \Ivory\GoogleMap\Helper\Base\CoordinateHelper $coordinateHelper The coordinate helper. * @param \Ivory\GoogleMap\Helper\Base\BoundHelper $boundHelper The bound helper. * @param \Ivory\GoogleMap\Helper\Base\PointHelper $pointHelper The point helper. * @param \Ivory\GoogleMap\Helper\Base\SizeHelper $sizeHelper The size helper. * @param \Ivory\GoogleMap\Helper\MapTypeIdHelper $mapTypeIdHelper The map type id helper. * @param \Ivory\GoogleMap\Helper\Controls\MapTypeControlHelper $mapTypeControlHelper The map type control helper. * @param \Ivory\GoogleMap\Helper\Controls\OverviewMapControlHelper $overviewMapControlHelper The overview map control helper. * @param \Ivory\GoogleMap\Helper\Controls\PanControlHelper $panControlHelper The pan control helper. * @param \Ivory\GoogleMap\Helper\Controls\RotateControlHelper $rotateControlHelper The rotate control helper. * @param \Ivory\GoogleMap\Helper\Controls\ScaleControlHelper $scaleControlHelper The scale control helper. * @param \Ivory\GoogleMap\Helper\Controls\StreetViewControlHelper $streetViewControlHelper The street view control helper. * @param \Ivory\GoogleMap\Helper\Controls\ZoomControlHelper $zoomControlHelper The zoom control helper. * @param \Ivory\GoogleMap\Helper\Overlays\MarkerClusterHelperInterface $markerClusterHelper The marker cluster helper. * @param \Ivory\GoogleMap\Helper\Overlays\MarkerImageHelper $markerImageHelper The marker image helper. * @param \Ivory\GoogleMap\Helper\Overlays\MarkerShapeHelper $markerShapeHelper The marker shape helper. * @param \Ivory\GoogleMap\Helper\Overlays\InfoWindowHelper $infoWindowHelper The info window helper. * @param \Ivory\GoogleMap\Helper\Overlays\PolylineHelper $polylineHelper The polyline helper. * @param \Ivory\GoogleMap\Helper\Overlays\EncodedPolylineHelper $encodedPolylineHelper The encoded polyline helper. * @param \Ivory\GoogleMap\Helper\Overlays\PolygonHelper $polygonHelper The polygon helper. * @param \Ivory\GoogleMap\Helper\Overlays\RectangleHelper $rectangleHelper The rectangle helper. * @param \Ivory\GoogleMap\Helper\Overlays\CircleHelper $circleHelper The circle helper. * @param \Ivory\GoogleMap\Helper\Overlays\GroundOverlayHelper $groundOverlayHelper The ground overlay helper. * @param \Ivory\GoogleMap\Helper\Layers\KMLLayerHelper $kmlLayerHelper The KML layer helper. * @param \Ivory\GoogleMap\Helper\Events\EventManagerHelper $eventManagerHelper The event manager helper. * @param array $extensionHelpers The extension helpers. */ public function __construct(CoordinateHelper $coordinateHelper = null, BoundHelper $boundHelper = null, PointHelper $pointHelper = null, SizeHelper $sizeHelper = null, MapTypeIdHelper $mapTypeIdHelper = null, MapTypeControlHelper $mapTypeControlHelper = null, OverviewMapControlHelper $overviewMapControlHelper = null, PanControlHelper $panControlHelper = null, RotateControlHelper $rotateControlHelper = null, ScaleControlHelper $scaleControlHelper = null, StreetViewControlHelper $streetViewControlHelper = null, ZoomControlHelper $zoomControlHelper = null, MarkerClusterHelperInterface $markerClusterHelper = null, MarkerImageHelper $markerImageHelper = null, MarkerShapeHelper $markerShapeHelper = null, InfoWindowHelper $infoWindowHelper = null, PolylineHelper $polylineHelper = null, EncodedPolylineHelper $encodedPolylineHelper = null, PolygonHelper $polygonHelper = null, RectangleHelper $rectangleHelper = null, CircleHelper $circleHelper = null, GroundOverlayHelper $groundOverlayHelper = null, KMLLayerHelper $kmlLayerHelper = null, EventManagerHelper $eventManagerHelper = null, array $extensionHelpers = array()) { parent::__construct(); if ($coordinateHelper === null) { $coordinateHelper = new CoordinateHelper(); } if ($boundHelper === null) { $boundHelper = new BoundHelper(); } if ($pointHelper === null) { $pointHelper = new PointHelper(); } if ($sizeHelper === null) { $sizeHelper = new SizeHelper(); } if ($mapTypeIdHelper === null) { $mapTypeIdHelper = new MapTypeIdHelper(); } if ($mapTypeControlHelper === null) { $mapTypeControlHelper = new MapTypeControlHelper(); } if ($overviewMapControlHelper === null) { $overviewMapControlHelper = new OverviewMapControlHelper(); } if ($panControlHelper === null) { $panControlHelper = new PanControlHelper(); } if ($rotateControlHelper === null) { $rotateControlHelper = new RotateControlHelper(); } if ($scaleControlHelper === null) { $scaleControlHelper = new ScaleControlHelper(); } if ($streetViewControlHelper === null) { $streetViewControlHelper = new StreetViewControlHelper(); } if ($zoomControlHelper === null) { $zoomControlHelper = new ZoomControlHelper(); } if ($markerClusterHelper === null) { $markerClusterHelper = new MarkerClusterHelper(); } if ($markerImageHelper === null) { $markerImageHelper = new MarkerImageHelper(); } if ($markerShapeHelper === null) { $markerShapeHelper = new MarkerShapeHelper(); } if ($infoWindowHelper === null) { $infoWindowHelper = new InfoWindowHelper(); } if ($polylineHelper === null) { $polylineHelper = new PolylineHelper(); } if ($encodedPolylineHelper === null) { $encodedPolylineHelper = new EncodedPolylineHelper(); } if ($polygonHelper === null) { $polygonHelper = new PolygonHelper(); } if ($rectangleHelper === null) { $rectangleHelper = new RectangleHelper(); } if ($circleHelper === null) { $circleHelper = new CircleHelper(); } if ($groundOverlayHelper === null) { $groundOverlayHelper = new GroundOverlayHelper(); } if ($kmlLayerHelper === null) { $kmlLayerHelper = new KMLLayerHelper(); } if ($eventManagerHelper === null) { $eventManagerHelper = new EventManagerHelper(); } if (empty($extensionHelpers)) { $extensionHelpers['core'] = new CoreExtensionHelper(); } $this->setCoordinateHelper($coordinateHelper); $this->setBoundHelper($boundHelper); $this->setPointHelper($pointHelper); $this->setSizeHelper($sizeHelper); $this->setMapTypeIdHelper($mapTypeIdHelper); $this->setMapTypeControlHelper($mapTypeControlHelper); $this->setOverviewMapControlHelper($overviewMapControlHelper); $this->setPanControlHelper($panControlHelper); $this->setRotateControlHelper($rotateControlHelper); $this->setScaleControlHelper($scaleControlHelper); $this->setStreetViewControlHelper($streetViewControlHelper); $this->setZoomControlHelper($zoomControlHelper); $this->setMarkerClusterHelper($markerClusterHelper); $this->setMarkerImageHelper($markerImageHelper); $this->setMarkerShapeHelper($markerShapeHelper); $this->setInfoWindowHelper($infoWindowHelper); $this->setPolylineHelper($polylineHelper); $this->setEncodedPolylineHelper($encodedPolylineHelper); $this->setPolygonHelper($polygonHelper); $this->setRectangleHelper($rectangleHelper); $this->setCircleHelper($circleHelper); $this->setGroundOverlayHelper($groundOverlayHelper); $this->setKmlLayerHelper($kmlLayerHelper); $this->setEventManagerHelper($eventManagerHelper); $this->setExtensionHelpers($extensionHelpers); }
public function testInitialState() { $this->assertInstanceOf('Ivory\\JsonBuilder\\JsonBuilder', $this->helper->getJsonBuilder()); }