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

Info box

Info box displays content in a floating window above the map. Basically, it is the same as an info window but through a different implementation. The Ivory Google Map library allows you to easily use this implementation by simply replacing the info window helper & registering a new extension helper.

So, on the map side, nothing change, you can still use an InfoWindow:

use Ivory\GoogleMap\Map;
use Ivory\GoogleMap\Overlays\InfoWindow;

$map = new Map();

$infoWindow = new InfoWindow();
$infoWindow->setPosition(1.1, 2.1);

$map->addInfoWindow($infoWindow);

Now, to render the info window as info box, you need to replace the info window helper by the info box helper & register the info box helper extension:

use Ivory\GoogleMap\Helper\Extension\InfoBoxExtensionHelper;
use Ivory\GoogleMap\Helper\MapHelper;
use Ivory\GoogleMap\Helper\Overlays\InfoBoxHelper;

// Configure your map...

$mapHelper = new MapHelper();
$mapHelper->setInfoWindowHelper(new InfoBoxHelper());
$mapHelper->setExtensionHelper('info_box', new InfoBoxExtensionHelper());

$output = $mapHelper->render($map);

The map output will wrap InfoBox objects instead of the InfoWindow ones.

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