Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Google Map Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Pan control

The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available.

Build your pan control

use Ivory\GoogleMap\Controls\ControlPosition;
use Ivory\GoogleMap\Controls\PanControl;

$panControl = new PanControl();

// Configure your pan control
$panControl->setControlPosition(ControlPosition::TOP_LEFT);

Configure the pan control position

For configurating the pan control position, the better way is to follow the oriented object way. For that, the Ivory\GoogleMap\Controls\ControlPosition is here. It allows you to access all constants which describe control position. If you don't want to use this class, you can directly use the constant value.

use Ivory\GoogleMap\Controls\ControlPosition;
use Ivory\GoogleMap\Controls\PanControl;

$panControl = new PanControl();

// Sets your control position
$panControl->setControlPosition(ControlPosition::TOP_LEFT);
$panControl->setControlPosition('top_left');

$panControl->setControlPosition(ControlPosition::TOP_CENTER);
$panControl->setControlPosition('top_center');

$panControl->setControlPosition(ControlPosition::TOP_RIGHT);
$panControl->setControlPosition('top_right');

$panControl->setControlPosition(ControlPosition::LEFT_TOP);
$panControl->setControlPosition('left_top');

$panControl->setControlPosition(ControlPosition::LEFT_CENTER);
$panControl->setControlPosition('left_center');

$panControl->setControlPosition(ControlPosition::LEFT_BOTTOM);
$panControl->setControlPosition('left_bottom');

$panControl->setControlPosition(ControlPosition::RIGHT_TOP);
$panControl->setControlPosition('right_top');

$panControl->setControlPosition(ControlPosition::RIGHT_CENTER);
$panControl->setControlPosition('right_center');

$panControl->setControlPosition(ControlPosition::RIGHT_BOTTOM);
$panControl->setControlPosition('right_bottom');

$panControl->setControlPosition(ControlPosition::BOTTOM_LEFT);
$panControl->setControlPosition('bottom_left');

$panControl->setControlPosition(ControlPosition::BOTTOM_CENTER);
$panControl->setControlPosition('bottom_center');

$panControl->setControlPosition(ControlPosition::BOTTOM_RIGHT);
$panControl->setControlPosition('bottom_right');

Add your pan control to the map

use Ivory\GoogleMap\Controls\ControlPosition;
use Ivory\GoogleMap\Controls\PanControl;

$panControl = new PanControl();

// Add your pan control to the map
$map->setPanControl($panControl);
$map->setPanControl(ControlPosition::TOP_LEFT);
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky