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

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.
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