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

Marker image (Equivalent to marker icon & marker shape)

Markers may define an icon to show in place of the default icon or a shadow to shown in place of the default shadow. Defining an icon or a shadow involves setting a number of properties that define the visual behavior of the marker.

Build your marker image

use Ivory\GoogleMap\Overlays\MarkerImage;

$markerImage = new MarkerImage();

// Configure your marker image options
$markerImage->setPrefixJavascriptVariable('marker_image_');
$markerImage->setUrl('http://maps.gstatic.com/mapfiles/markers/marker.png');
$markerImage->setAnchor(20, 34);
$markerImage->setOrigin(0, 0);
$markerImage->setSize(20, 34, "px", "px");
$markerImage->setScaledSize(20, 34, "px", "px");

Add your marker image to a marker

Now you have configurated your marker image, you need to add it like an icon or a shadow to your marker.

Adds the marker image to a marker as icon

use Ivory\GoogleMap\Overlays\MarkerImage;

$markerImage = new MarkerImage();

// Add your marker image to the marker like an icon
$marker->setIcon($markerImage);

Add your marker image to the marker as shadow

use Ivory\GoogleMap\Overlays\MarkerImage;

$markerImage = new MarkerImage();

// Add your marker image to the marker like a shadow
$marker->setShadow($markerImage);
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