Weave 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

Polyline

The Polyline class defines a linear overlay of connected line segments on the map. A Polyline object consists of an array of coordinates, and creates a series of line segments that connect those locations in an ordered sequence.

Build your polyline

use Ivory\GoogleMap\Overlays\Polyline;

$polyline = new Polyline();

// Configure your polyline options
$polyline->setPrefixJavascriptVariable('polyline_');

$polyline->setOption('geodesic', true);
$polyline->setOption('strokeColor', '#ffffff');
$polyline->setOptions(array(
    'geodesic'    => true,
    'strokeColor' => '#ffffff',
));

Add coordinate to your polyline

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

use Ivory\GoogleMap\Overlays\Polyline;

$polyline = new Polyline();

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

Add your polyline to the map

use Ivory\GoogleMap\Overlays\Polyline;

$polyline = new Polyline();

// Add your polyline to the map
$map->addPolyline($polyline);
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.
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin