arcasolutions/google-map
Laravel package providing Google Maps integration for your app, with helpers to generate map views and include the required scripts. Useful for quickly embedding maps and configuring markers or map options within Laravel projects.
A Rectangle is similar to a Polygon in that you can define custom colors, weights, and opacities for the edge of the rectangle (the "stroke") and custom colors and opacities for the area within the enclosed region (the "fill"). Unlike a Polygon, you do not define paths for a Rectangle; instead, a rectangle has one additional property which defines its shape : the bound.
use Ivory\GoogleMap\Overlays\Rectangle;
$rectangle = new Rectangle();
// Configure your rectangle options
$rectangle->setPrefixJavascriptVariable('rectangle_');
$rectangle->setBound(-1, -1, 1, 1, true, true);
$rectangle->setOption('clickable', false);
$rectangle->setOption('strokeColor', '#ffffff');
$rectangle->setOptions(array(
'clickable' => false,
'strokeColor' => '#ffffff',
));
use Ivory\GoogleMap\Overlays\Rectangle;
$rectangle = new Rectangle();
// Add your rectangle to the map
$map->addRectangle($rectangle);
How can I help you explore Laravel packages today?