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

Polygon

Polygon objects are similar to polyline objects in that they consist of a series of coordinates in an ordered sequence. However, instead of being open-ended, polygons are designed to define regions within a closed loop.

Build your polygon

use Ivory\GoogleMap\Overlays\Polygon;

$polygon = new Polygon();

// Configure your polygon options
$polygon->setPrefixJavascriptVariable('polygon_');

$polygon->setOption('fillColor', '#000000');
$polygon->setOption('fillOpacity', 0.5);
$polygon->setOptions(array(
    'fillColor'   => '#000000',
    'fillOpacity' => 0.5,
));

Add coordinate to your polygon

Like describe in the introduction, a polygon object consists of an array of coordinates. So, you need to add coordinate to your polygon.

use Ivory\GoogleMap\Overlays\Polygon;

$polygon = new Polygon();

// Add coordinates to your polygon
$polygon->addCoordinate(0, 0, true);
$polygon->addCoordinate(1, 1, true);

Add your polygon to the map

use Ivory\GoogleMap\Overlays\Polygon;

$polygon = new Polygon();

// Add your polygon to the map
$map->addPolygon($polygon);
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