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.
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.
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");
Now you have configurated your marker image, you need to add it like an icon or a shadow to your marker.
use Ivory\GoogleMap\Overlays\MarkerImage;
$markerImage = new MarkerImage();
// Add your marker image to the marker like an icon
$marker->setIcon($markerImage);
use Ivory\GoogleMap\Overlays\MarkerImage;
$markerImage = new MarkerImage();
// Add your marker image to the marker like a shadow
$marker->setShadow($markerImage);
How can I help you explore Laravel packages today?